{
  "openapi": "3.1.1",
  "info": {
    "title": "Blog API",
    "description": "Blog posts written with AI for your websites, translated through your translation memory, with SEO, reviews, scheduling and webhooks.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Websites"
    },
    {
      "name": "Posts"
    },
    {
      "name": "Translations"
    },
    {
      "name": "Translation memory sync"
    },
    {
      "name": "AI actions"
    },
    {
      "name": "Hero images"
    },
    {
      "name": "Reviews"
    },
    {
      "name": "Versions"
    },
    {
      "name": "SEO"
    },
    {
      "name": "Internal links"
    },
    {
      "name": "Checks"
    },
    {
      "name": "Audio"
    },
    {
      "name": "Autopilot"
    },
    {
      "name": "Topics"
    },
    {
      "name": "Calendar"
    },
    {
      "name": "Analytics"
    },
    {
      "name": "Webhooks"
    }
  ],
  "paths": {
    "/v1/galaxy/blog/analytics/sites/{siteId}/insights": {
      "get": {
        "operationId": "get-insights",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The latest synced data, and what stands out in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteInsightsDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get insights",
        "tags": [
          "Analytics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.analytics:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What the website's latest Google Analytics 4 and Search Console data says: its top pages and top search queries over 28 days, the striking-distance queries (positions 4 to 20 with 20 or more impressions: a post or a refresh can lift them), and the low click-through ones (top 10, 100 or more impressions, CTR under 2%: their title and description need work). Connect Google and choose the properties in the Universe app; the data then syncs every day. `ga4` and `gsc` are null until their property has been synced.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/analytics/sites/{siteId}/performance": {
      "get": {
        "operationId": "get-post-performance",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Each published post, with its trend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SitePerformanceDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get post performance",
        "tags": [
          "Analytics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.analytics:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "How each published post of the website is doing: its clicks, impressions and position in search, and its sessions, against the sync at least 6 days earlier, with a `trend` (`down`, `flat`, `up` or `new`; down or up means a change of 20% or more). Posts are matched by the path of their `publishedUrl`, so only posts with one appear, and only those the analytics know about; falling ones come first. Each lists the queries it ranks for on page 2 or below: Refresh from analytics rewrites the post to answer them.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/audio/posts/{postId}": {
      "get": {
        "operationId": "list-recordings",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The recordings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogRecordingDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List recordings",
        "tags": [
          "Audio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The recordings of a post, one per visible language, oldest first. Per-language assignments apply to recording lists, reads, writes and quotes, as they do to translations. A finished one has a `url` to play it and a `downloadUrl`, both valid for one hour.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "record-a-post",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAudioDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The recording, charged and `generating`. Poll Get a recording until it is `done` or `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogRecordingDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `Choose a voice (or set a default voice for the website in Settings).`: no `voice`, and the website has no default.\n- `That translation is not finished yet.`\n- `There is no text to read yet.`: the post (or the translation) has no text.\n- `This text is <n> characters; a recording takes at most 100,000. Shorten the post or record it from the Text-to-Speech page.`\n- `This text-to-speech provider is not enabled for your organization.`\n- `This voice is not available to your organization. Pick a voice from the voice library.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was started, and an earlier recording of the language is kept.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `translationId` is not a translation of the post (`Translation not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`A recording in this language is already being made.` Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The text was blocked by content moderation (`This text can’t be turned into speech: it was flagged as <category>. Nothing was charged.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 422,
                      "message": "Unprocessable Entity"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Record a post",
        "tags": [
          "Audio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the recording starts, at the Text-to-Speech rate: the text is split into speech cards and each is charged per second of speech, estimated from its length and language (see Price a recording). When the audio is ready, each card is adjusted to its real length, never more than twice its estimate. Refunded in full if it fails. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Text to speech | Synthesizing speech in the video playground. Charged per second of generated audio. | 120 credits per minute |",
            "position": "after-description"
          }
        ],
        "description": "Have a post, or one of its finished translations (`translationId`), read aloud: its title, then its text. Send a `voice` from the voice catalog, or leave it out to use the website's default voice. A post has one recording per language: recording a language again replaces the earlier recording of it. The call returns at once with the recording `generating`: poll Get a recording every 10–30 seconds until `status` is `done` (then `url` plays it) or `failed`, or listen for the `audio.done` webhook event. The finished file is also saved to your organization's assets, in `blog/audio`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/audio/posts/{postId}/charges": {
      "get": {
        "operationId": "price-a-recording",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          },
          {
            "name": "translationId",
            "required": false,
            "in": "query",
            "description": "Price a recording of this translation instead of the post itself.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The items to send to Get a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogChargesDto"
                }
              }
            }
          },
          "400": {
            "description": "- `That translation is not finished yet.`\n- `There is no text to read yet.`: the post (or the translation) has no text.\n- `This text is <n> characters; a recording takes at most 100,000. Shorten the post or record it from the Text-to-Speech page.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `translationId` is not a translation of the post (`Translation not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price a recording",
        "tags": [
          "Audio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What Record a post charges when it starts, for the post or for one of its translations (`translationId`), as items for Get a quote. Nothing is charged. There is one item per speech card, under `translate_photo.playground_video` · `text_to_speech`, with the estimated seconds of speech as its `quantity`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/audio/recordings/{id}": {
      "get": {
        "operationId": "get-a-recording",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Recording ID (`id` from Record a post or List recordings).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The recording.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogRecordingDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No recording with this ID in your organization (`Recording not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a recording",
        "tags": [
          "Audio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One recording. Poll it after Record a post, every 10–30 seconds, until `status` is `done` or `failed`. Once `done`, `url` plays the audio and `downloadUrl` downloads it; both links are valid for one hour, so get the recording again for fresh ones.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/autopilot/charges": {
      "post": {
        "operationId": "price-an-autopilot-run",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutopilotChargesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The items to send to Get a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogChargesDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price an Autopilot run",
        "tags": [
          "Autopilot"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What Start an Autopilot run charges when it starts, as items for Get a quote. Nothing is charged. Send the `targetTopics` you will start the run with: the one item is `blog.autopilot` · `analyze`, 1,200 words plus 330 words per topic.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/autopilot/runs": {
      "get": {
        "operationId": "list-autopilot-runs",
        "parameters": [
          {
            "name": "siteId",
            "required": false,
            "in": "query",
            "description": "Only the runs of this website.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "How many of the latest runs to return, from 1 to 100.",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "type": "number",
              "examples": [
                20
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The runs, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutopilotRunDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List Autopilot runs",
        "tags": [
          "Autopilot"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The latest Autopilot runs of your organization, newest first, with their status, progress and what they cost. Narrow them to one website with `siteId`.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "start-an-autopilot-run",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartAutopilotRunDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The run, charged and `queued`. Poll Get an Autopilot run until it finishes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutopilotRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was charged:\n\n- `An Autopilot run is already in progress for this website. Wait for it to finish or cancel it first.`\n- `At most 3 Autopilot runs can be in progress at once.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The worker could not be reached. Please try again in a moment.`: the run could not be started. It is left `failed` and its charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Start an Autopilot run",
        "tags": [
          "Autopilot"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the run starts, as one charge for the whole run: an estimate of 1,200 words for the plan plus 330 words for each topic in `targetTopics`. When the run succeeds, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if the run fails on our side. Cancelling the run keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Autopilot topic research | Auditing a sitemap and generating keyword clusters and topic suggestions. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Audit a website and plan what to write next. The run reads the website's sitemap and pages, sums up what the website is about and for whom, groups what it could rank for into keyword clusters (each with the gap it fills), and writes `targetTopics` topic suggestions, each with a keyword, an outline and a length, into the website's backlog. The call returns at once with the run `queued`: poll Get an Autopilot run every 30–60 seconds until `status` is `succeeded`, `failed` or `cancelled`, or listen for the `autopilot.finished` webhook event. Then write the topics from List topics with Write a post. One run per website at a time, and at most 3 in your organization. Price it first with Price an Autopilot run.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/autopilot/runs/{id}": {
      "get": {
        "operationId": "get-an-autopilot-run",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Autopilot run ID (`id` from Start an Autopilot run or List Autopilot runs).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The run and its clusters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutopilotRunDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No Autopilot run with this ID in your organization (`Autopilot run <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an Autopilot run",
        "tags": [
          "Autopilot"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One Autopilot run, with its keyword clusters. Poll it after Start an Autopilot run, every 30–60 seconds, until `status` is `succeeded`, `failed` (with the reason in `error`) or `cancelled`. `progress` counts the pages read and the topics written as it goes, and `summary` holds what it learned about the website once planning is done.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/autopilot/runs/{id}/pages": {
      "get": {
        "operationId": "list-audited-pages",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Autopilot run ID (`id` from Start an Autopilot run or List Autopilot runs).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Pages per page of the list, from 1 to 2,000.",
            "schema": {
              "minimum": 1,
              "maximum": 2000,
              "default": 200,
              "type": "number",
              "examples": [
                200
              ]
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "How many pages to skip.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number",
              "examples": [
                0
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the inventory, with the total.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SitemapPageListDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No Autopilot run with this ID in your organization (`Autopilot run <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List audited pages",
        "tags": [
          "Autopilot"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The website's pages a run found in its sitemap, articles first, then by path: each with its title and meta description when the run read it. Page through them with `limit` and `offset`.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/autopilot/topics": {
      "get": {
        "operationId": "list-topics",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "query",
            "description": "The website whose topics to list.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "runId",
            "required": false,
            "in": "query",
            "description": "Only the topics of this Autopilot run.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
              ]
            }
          },
          {
            "name": "clusterId",
            "required": false,
            "in": "query",
            "description": "Only the topics of this keyword cluster (`id` of a cluster in Get an Autopilot run).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "4e5f6071-8293-4a4b-b5c6-d7e8f9012345"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only topics with this status. Without it, every topic except the dismissed ones.",
            "schema": {
              "type": "string",
              "enum": [
                "suggested",
                "in_progress",
                "written",
                "dismissed"
              ]
            }
          },
          {
            "name": "intent",
            "required": false,
            "in": "query",
            "description": "Only topics with this search intent.",
            "schema": {
              "type": "string",
              "enum": [
                "informational",
                "commercial",
                "transactional",
                "navigational"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only topics whose title or target keyword contains this text, ignoring case.",
            "schema": {
              "type": "string",
              "examples": [
                "tractor"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Topics per page of the list, from 1 to 500.",
            "schema": {
              "minimum": 1,
              "maximum": 500,
              "default": 50,
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "How many topics to skip.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number",
              "examples": [
                0
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of topics, with the total.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTopicListDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List topics",
        "tags": [
          "Topics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A website's backlog of topics, highest `opportunity` first: suggestions from Autopilot runs, follow-ups suggested under finished posts, and topics you added. Dismissed topics are left out unless you ask for `status=dismissed`. Filter by run, cluster, status or intent, or search titles and keywords; page with `limit` and `offset`. Write a topic with Write a post and its `topicId`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-a-topic",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTopicDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The topic.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTopicDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add a topic",
        "tags": [
          "Topics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add a topic of your own to a website's backlog, with `source: manual` and an `opportunity` of 50. Write it with Write a post and its `topicId`, or put it on the calendar with Add a calendar entry.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/autopilot/topics/{id}": {
      "get": {
        "operationId": "get-a-topic",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Topic ID (`id` from List topics).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The topic.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTopicDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No topic with this ID in your organization (`Topic <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a topic",
        "tags": [
          "Topics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One topic, with its keywords, outline, suggested length and the post written from it, if any.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "dismiss-or-restore-a-topic",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Topic ID (`id` from List topics).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTopicDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The topic.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTopicDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `A topic that has been written cannot be dismissed.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No topic with this ID in your organization (`Topic <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Dismiss or restore a topic",
        "tags": [
          "Topics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.autopilot:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Hide a topic from the backlog with `status: dismissed`, or put it back with `status: suggested`. A topic that has been written cannot be dismissed.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/calendar/entries": {
      "get": {
        "operationId": "list-calendar-entries",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "query",
            "description": "The website whose calendar to list.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "from",
            "required": false,
            "in": "query",
            "description": "First day to include, `YYYY-MM-DD`.",
            "schema": {
              "type": "string",
              "examples": [
                "2026-10-01"
              ]
            }
          },
          {
            "name": "to",
            "required": false,
            "in": "query",
            "description": "Last day to include, `YYYY-MM-DD`.",
            "schema": {
              "type": "string",
              "examples": [
                "2026-10-31"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only entries with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "planned",
                "generating",
                "written",
                "skipped",
                "failed"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The entries, by date.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CalendarEntryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List calendar entries",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A website's calendar, by date: up to 500 entries, narrowed with `from`, `to` and `status`. An entry follows its post: `generating` while the draft is written, then `written`, or `failed` with the reason. Each written entry carries a summary of its post.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-a-calendar-entry",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEntryDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `Give the entry a title or a topic.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`). Or `topicId` is not a topic of that website (`Topic not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add a calendar entry",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Put a post on the calendar for a day: a backlog topic (`topicId`), or a title with an optional brief and keyword. The entry is `planned`. In `auto` mode the cadence writes it on its day; otherwise write it with Write an entry now.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/calendar/entries/{id}": {
      "patch": {
        "operationId": "update-a-calendar-entry",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Calendar entry ID (`id` from List calendar entries or Add a calendar entry).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEntryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No calendar entry with this ID in your organization (`Calendar entry not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `This entry has already been written.`: it is `generating` or `written`.\n- `This calendar entry changed. Reload it before editing.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a calendar entry",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Move an entry to another day, change its title, brief or keyword, skip it (`status: skipped`), or put it back (`status: planned`). An entry that is being written or is written cannot change.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/calendar/entries/{id}/generate": {
      "post": {
        "operationId": "write-an-entry-now",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Calendar entry ID (`id` from List calendar entries or Add a calendar entry).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateEntryDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The entry, `generating`, with its `postId`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged:\n\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).\n- A refusal of Write a post, such as `Choose a supported source language in the post or website settings.`: the entry is left `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created, and the entry is left `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No calendar entry with this ID in your organization (`Calendar entry not found`). Or its website or topic is gone (`Site <id> not found`, `Topic <id> not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was charged:\n\n- `This entry has already been written.`: it is `generating` or `written`.\n- `This entry is no longer available for generation.`: it changed at the same time.\n- `This topic already has a post.`: the topic is being written elsewhere; the entry is left `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Write an entry now",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:update` and `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the post starts, exactly like Write a post: the draft at its length (`targetWordCount`, else the cadence's, else the topic's suggestion, else 1,500 words), its SEO pack and its follow-up topics, and a hero image with `generateHeroImage`. Each is settled when it finishes and refunded if it fails on our side.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Blog draft | Writing a blog post from a topic, memory and prompt. Charged per generated word. | 0.5 credits per word |\n| SEO pack | Meta title, description, keywords, summary and FAQs for a post. Charged per generated word. | 0.5 credits per word |\n| Next-blog suggestions | The three follow-up topics suggested under a finished post. Charged per generated word. | 0.5 credits per word |\n| Hero image | Generating a hero image for a post with the brand kit applied. Charged per image. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Write an entry's post now, with Write a post, from the entry's topic or title, brief and keyword. The entry becomes `generating` with the new `postId`: poll Get a post, or List calendar entries until the entry is `written`. A `planned` or `failed` entry can be written; when its topic was already written elsewhere, the entry takes that post and nothing is charged. If the post cannot start, the entry is left `failed` with the reason and the error is returned.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/calendar/sites/{siteId}/cadence": {
      "get": {
        "operationId": "get-the-cadence",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The cadence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogCadenceDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the cadence",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "A website's editorial cadence: whether it is on, its mode, its settings, what it has spent this week, its next selected publishing slot (`nextPublishAt`), and its daily planning/retry check (`nextTickAt`). Display both instants in `settings.timezone`; a publishing slot does not guarantee a post or publication. A website with no cadence yet returns the defaults (`id` null, off, `plan` mode) that Set the cadence starts from.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "set-the-cadence",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCadenceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The cadence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogCadenceDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Unknown timezone \"<timezone>\"`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set the cadence",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:update`. An API key acts with the role of the member who created it. Unless the body sends `mode: \"plan\"`, also `blog.post:create`: in `auto` mode the cadence writes posts.",
            "position": "after-description"
          }
        ],
        "description": "Set how a website's calendar fills: how many posts a week, on which days, at what hour, and the mode. In `plan` mode the cadence fills the calendar from the topic backlog (best opportunity first), `horizonWeeks` ahead, for you to write. In `auto` mode it also writes each entry on its day, each charged like Write a post, within `weeklyBudgetCredits` per ISO week. Send only what changes: the rest keeps its current value. Turning it on (`enabled: true`) plans the calendar at once and runs every day at `hour` in `timezone`; turning it off stops the runs and keeps the entries.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/calendar/sites/{siteId}/cadence/tick": {
      "post": {
        "operationId": "run-the-cadence-now",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The cadence after the run.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogCadenceDto"
                }
              }
            }
          },
          "400": {
            "description": "- `Turn the cadence on first.`: the website has no cadence, or it is off.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Run the cadence now",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:update` and `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Plan mode charges nothing. In `auto` mode, each entry written is charged when its post starts, exactly like Write a post: the draft at the cadence’s length (else the topic’s), its SEO pack and its follow-up topics, settled when each finishes.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Blog draft | Writing a blog post from a topic, memory and prompt. Charged per generated word. | 0.5 credits per word |\n| SEO pack | Meta title, description, keywords, summary and FAQs for a post. Charged per generated word. | 0.5 credits per word |\n| Next-blog suggestions | The three follow-up topics suggested under a finished post. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Do now what the cadence does every day: plan the calendar and, in `auto` mode, write the entries due by today within the weekly budget. Entries that would go over the budget wait for the next week, with the reason in their `error`. An entry whose post cannot start (for example for lack of credits) is left `failed` with the reason; the call itself still succeeds, and `lastError` says if the run stopped. See what it will charge with Price a cadence run. Follow the entries with List calendar entries.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/calendar/sites/{siteId}/cadence/tick/charges": {
      "get": {
        "operationId": "price-a-cadence-run",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The items to send to Get a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogChargesDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price a cadence run",
        "tags": [
          "Calendar"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.calendar:update` and `blog.post:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What Run the cadence now charges when it starts, as items for Get a quote. Nothing is charged. In `auto` mode the items are every entry the run would write: those due by today, then those its planning adds for today, within what is left of the weekly budget, each priced like Write a post. Empty in `plan` mode, or when the cadence is off.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/check/posts/{postId}": {
      "get": {
        "operationId": "list-checks",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The checks, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostCheckDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List checks",
        "tags": [
          "Checks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The checks run on a post, newest first, up to 50: brand voice checks and term checks, each with its verdict, score and findings. Poll it after Run a brand voice check until that check is `done` or `failed`.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/check/posts/{postId}/terms": {
      "post": {
        "operationId": "run-a-term-check",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TermLintDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The finished check.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `The post has no content to check yet.`\n- `Choose a Translation Memory with term bases (or set a default one on the site).`: no `tmId`, and the website has no default memory.\n- `That translation has no content yet.`: the translation is not `done`.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `translationId` is not a translation of the post (`Translation not found`), or `tmId` is not a translation memory your organization can use (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Run a term check",
        "tags": [
          "Checks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Check a post against the term bases of a translation memory, at once and for free. For the post, it finds forbidden terms; for a finished translation (`translationId`), it checks that each glossary term in the source appears with its approved translation. The memory is `tmId`, else the website's default. The finished check comes back in the response.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/check/posts/{postId}/voice": {
      "post": {
        "operationId": "run-a-brand-voice-check",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoiceCheckDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The check, charged and `running`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCheckDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `The post has no content to check yet.`\n- `Choose a brand kit with a tone of voice before running this check.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Run a brand voice check",
        "tags": [
          "Checks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the check starts, on an estimate of 400 words. When the run finishes, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if it fails on our side.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Brand voice check | Reviewing a post against the brand kit’s tone of voice and glossary. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Have the post reviewed against a brand kit's tone of voice, and against the preferred and forbidden terms of the website's translation memory: a score, a `pass`, `warn` or `fail` verdict, and findings that quote the passage and suggest a fix. The brand kit is `brandKitId`, else the post's, else the website's; it needs a tone of voice. The call returns at once with the check `running`: poll List checks every 10–30 seconds until it is `done` or `failed`. The same check asked for again while it runs returns the running one, charged once.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/charges": {
      "post": {
        "operationId": "price-a-post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateChargesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The items to send to Get a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogChargesDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price a post",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What Write a post charges when it starts, as items for Get a quote. Nothing is charged. Send the fields that decide the price as you will send them to Write a post (`siteId`, `topicId`, `targetWordCount`, `autoSeo`, `autoFollowups`, `generateHeroImage`): the items are the draft (`blog.post` · `generate`, in words), the SEO pack (`seo_pack`), the follow-up topics (`followups`) and the hero image (`hero_image`).",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/generate": {
      "post": {
        "operationId": "write-a-post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePostDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The post, charged and `generating`. Poll Get a post until the draft and everything it set off are done.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `Choose the website this blog is for.`: your organization has a website, and `siteId` is missing.\n- `Give the blog a title or a brief to write from.`\n- `The topic must belong to the selected website.`\n- `Choose a supported source language in the post or website settings.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created, and the topic stays free.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Nothing was charged: `siteId` is not a website in your organization (`Site <id> not found`), `topicId` is not a topic of it (`Topic <id> not found`), or `projectId` is not a project in your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This topic already has a post.`: the topic is written or being written. Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "- `The AI worker could not be reached. Please try again in a moment.`: the draft could not be started. The post is left `failed` and every charge is refunded.\n- `Projects are not available for blog posts on this server yet.`: `projectId` cannot be used. Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Write a post",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the post starts, all at once: the draft, on an estimate of its length in words (`targetWordCount`, else the topic’s suggestion, else 1,500), and what it sets off by itself: the SEO pack (400 words, unless `autoSeo` is `false`), the follow-up topics (350 words, for a post on a website, unless `autoFollowups` is `false`) and the hero image (one image, with `generateHeroImage`). Without enough credits nothing is created. When each finishes, its charge is settled to the words it actually wrote, never more than twice its start charge. If the draft fails on our side, it and everything it set off are refunded; a step that cannot run is refunded on its own. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Blog draft | Writing a blog post from a topic, memory and prompt. Charged per generated word. | 0.5 credits per word |\n| SEO pack | Meta title, description, keywords, summary and FAQs for a post. Charged per generated word. | 0.5 credits per word |\n| Next-blog suggestions | The three follow-up topics suggested under a finished post. Charged per generated word. | 0.5 credits per word |\n| Hero image | Generating a hero image for a post with the brand kit applied. Charged per image. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Write a new blog post with AI. Give it something to write from: a `title`, a `brief`, or a `topicId` from the website's backlog. A title alone is enough: it is kept word for word, and the post is written to it; without a title, one is written from the brief. Name the website with `siteId`: it is required once your organization has a website, and an organization with none may leave it out (its posts join the first website it adds). The post comes back at once with `status: generating`. After the draft, the SEO pack and three follow-up topics are written (`autoSeo`, `autoFollowups`), and a hero image when you ask for one (`generateHeroImage`). Poll Get a post every 20–30 seconds until `status` is `draft` (or `in_review` with `sendForReview`, or `failed` with the reason in `error`) and no flag in `pending` is `true`, or listen for the `post.generated` and `post.failed` webhook events. The AI model is your organization's Blog model in its provider preferences. Price it first with Price a post.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts": {
      "get": {
        "operationId": "list-posts",
        "parameters": [
          {
            "name": "siteId",
            "required": false,
            "in": "query",
            "description": "Only the posts of this website.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only the posts the key’s member wrote, was asked to review or is assigned to. `org`: every post. A role with Personal view turned on always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "Only the posts in this project (its ID), or `none` for posts in no project. Leave it out for every post.",
            "schema": {
              "type": "string",
              "examples": [
                "0f1e2d3c-4b5a-4697-8877-a6b5c4d3e2f1"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only posts with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "generating",
                "failed",
                "draft",
                "in_review",
                "ready",
                "published",
                "archived"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only posts whose title contains this text, ignoring case.",
            "schema": {
              "type": "string",
              "examples": [
                "tractor"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Posts per page of the list, from 1 to 200.",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "default": 30,
              "type": "number",
              "examples": [
                30
              ]
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "How many posts to skip.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number",
              "examples": [
                0
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of posts, with the total.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostListDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List posts",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your posts, most recently changed first, without their text, each with its status, SEO pack, SEO score, hero image and assignees. Filter by website, status, project or title; page with `limit` and `offset`. A key whose role has Personal view on gets only the posts its member wrote, was asked to review or is assigned to.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}": {
      "get": {
        "operationId": "get-a-post",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The post, with its text.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a post",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One post with its text, as HTML in `contentHtml` and as Markdown in `contentMarkdown`: this is how you export a post to publish it. It also has the SEO pack, the on-page SEO score, the hero image URL, its AI runs, its follow-up topics and its link suggestions. Poll it after Write a post until `status` is `draft` and no flag in `pending` is `true`.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-post",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The post as saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Invalid public attribution: ...`: nested public names, types or URLs failed validation.\n- `Published URL must be an HTTP or HTTPS URL without credentials.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was saved:\n\n- `This post changed since you opened it. Your edits have not been saved. Reload the latest version before trying again.`: `expectedVersion` is not the post’s `versionCount`.\n- `Wait for the draft to finish before changing its status.`\n- `Use the review actions to send, decide or withdraw a review.`: `status` is `in_review`, or the post is in review.\n- `This post needs a new approval before it can be marked ready or published.`\n- `Save your changes and request a new approval before publishing.`\n- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a post",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Save a new title, text (`contentHtml`), SEO pack or public attribution, change the `status`, or record where the post went live (`publishedUrl`). Send only what changes. Each save that changes the title, text, SEO pack or public attribution is a new version (List versions). Send the `versionCount` you read as `expectedVersion`, so a save over someone else’s newer one is refused (409) instead. Saving an approved post moves it back to `draft`, and it needs a new approval. Setting `status` to `published` records `publishedAt` and fires the `post.published` webhook event.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/charges": {
      "post": {
        "operationId": "price-an-ai-action",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostChargesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The items to send to Get a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogChargesDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Say which editor action to price.`: `kind` is `editor_action` without an `action`.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price an AI action",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What a paid action on an existing post charges when it starts, as items for Get a quote. Nothing is charged. `kind` names the action: the SEO pack, follow-up topics, a brand voice check, internal links, an editor action (with its `action` and the `selection` you will send), a refresh from analytics, or a hero image.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/editor-action": {
      "post": {
        "operationId": "run-an-editor-action",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditorActionDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The run, charged and `INPROGRESS`. Poll Get a run until it is `DONE` or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogAiRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `The post has no content yet.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The AI worker could not be reached. Please try again in a moment.`: the run could not be started. It is left `FAILED` and its charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Run an editor action",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the run starts, on an estimate of the words it will write: 1.1 times the words of the selection, or of the post, for `improve`, `simplify` and `refresh`, twice them for `expand` (at least 200 either way), and 400 for the other actions. When the run finishes, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if it fails on our side. The same request made again while it runs joins that run and is charged once. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Editor AI action | Improve, simplify, expand, audit or rewrite part of a post from the editor. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Have the AI work on part of a post (`selection`) or all of it: `improve`, `simplify` or `expand` the text, `seo_audit` it, suggest `titles`, an `excerpt` or a call to action (`cta`), `fact_check` it, or `refresh` it. It writes in the post's language and its brand voice, with your `instruction` if you send one. Returns a run: poll Get a run until it is `DONE`. The answer is the run's `outputText`, in Markdown, and is not applied to the post: put what you keep into the post with Update a post, with `aiAssisted: true`. Price it first with Price an AI action.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/followups": {
      "post": {
        "operationId": "suggest-follow-up-topics",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The run, charged and `INPROGRESS`. Poll Get a run until it is `DONE` or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogAiRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged:\n\n- `The post has no content yet.`\n- `Follow-up suggestions need the post to belong to a site.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The AI worker could not be reached. Please try again in a moment.`: the run could not be started. It is left `FAILED` and its charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest follow-up topics",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the run starts, on an estimate of 350 words. When the run finishes, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if it fails on our side. The same request made again while it runs joins that run and is charged once. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Next-blog suggestions | The three follow-up topics suggested under a finished post. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Suggest three topics to write next, from the post and its website's backlog. Returns a run: poll Get a run until it is `DONE`. The new topics then appear in the post's `followups` and in List topics, with `source: followup`; topics the backlog already has are not added twice. Only for a post on a website.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/hero-image": {
      "post": {
        "operationId": "generate-a-hero-image",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HeroImageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new hero image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostHeroImageDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was charged:\n\n- `A hero image is already being generated.`\n- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Generate a hero image",
        "tags": [
          "Hero images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** One image, charged when the request starts. Refunded in full if the image cannot be made. Deleting the post while it is being made keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Hero image | Generating a hero image for a post with the brand kit applied. Charged per image. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Make a new hero image for the post, with the brand kit applied, from your `prompt` or one written from the post's title, keyword and summary. The call waits for the image and returns it: `url` is a stable address you can embed. The new image replaces the post's hero image. If it cannot be made, `heroImageStatus` is `failed` and the charge is refunded.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/hero-image/from-asset": {
      "post": {
        "operationId": "use-an-asset-as-the-hero-image",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HeroFromAssetDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new hero image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostHeroImageDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Choose an image for the hero image.`: the asset is not an image.\n- `That image is too large for a hero image (32 MB at most).`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Your organization's storage is full (`PlanLimitReached`: `This upload needs <size>, but only <size> of your <size> storage is left. Free up space or upgrade your plan to upload it.`). Nothing was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `assetId` is not an asset in your organization (`Asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Use an asset as the hero image",
        "tags": [
          "Hero images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Make an image from your organization's assets the post's hero image. The post gets its own copy, so moving or deleting the asset later does not break it. Free.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/hero-image/save-to-assets": {
      "post": {
        "operationId": "save-the-hero-image-to-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveBlogToAssetsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The file in your assets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveHeroToAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "- `This post has no hero image yet.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Your organization's storage is full (`PlanLimitReached`: `This upload needs <size>, but only <size> of your <size> storage is left. Free up space or upgrade your plan to upload it.`). Nothing was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The image could not be read from storage. Please try again.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save the hero image to assets",
        "tags": [
          "Hero images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Save a copy of the post's hero image to your organization's assets: in the post's project when it is in one, else in `blog/hero`. Pass `folderId` to choose a Drive folder (the organization id selects My Drive); destinations are validated against your organization and system-folder locks. Without a destination, saving the same image again returns the existing file.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/hreflang": {
      "get": {
        "operationId": "get-hreflang-links",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hreflang links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HreflangDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get hreflang links",
        "tags": [
          "SEO"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The `hreflang` alternates of the post and its finished translations, built from their `publishedUrl`s, as a list and as `<link>` tags for the `<head>` of every language version. Empty until at least one supported language has a valid `publishedUrl`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/links/{linkId}/apply": {
      "post": {
        "operationId": "apply-a-link",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          },
          {
            "name": "linkId",
            "required": true,
            "in": "path",
            "description": "Link suggestion ID (`id` of an item in the post’s `links`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "f1e2d3c4-b5a6-4978-8695-a4b3c2d1e0f9"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The post, with the link in its text.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "- `The phrase “<anchor>” is no longer in the post — edit the text or dismiss the suggestion.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or no suggestion with this `linkId` (`Link suggestion not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Apply a link",
        "tags": [
          "Internal links"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Put a suggested link into the post: its anchor words become a link to its `url`, as a new version of the post, and the suggestion is marked `applied`. Applying it again changes nothing.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/links/auto": {
      "post": {
        "operationId": "add-matching-internal-links",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddMatchingLinksDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "`The post has no content yet.` A path ID is not a UUID (`Validation failed (uuid is expected)`). expectedVersion must be a non-negative integer. Attach the post to a website with known sitemap pages or published posts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add matching internal links",
        "tags": [
          "Internal links"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add up to three known website pages where a descriptive phrase from their title or URL already appears in the saved body. Uses the sitemap and other published posts, skips existing links and self-links, and saves one new version. No model call or credit charge. New generated drafts do this automatically before their first version is saved.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/links/suggest": {
      "post": {
        "operationId": "suggest-internal-links",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The run, charged and `INPROGRESS`. Poll Get a run until it is `DONE` or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogAiRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged:\n\n- `The post has no content yet.`\n- `Attach the post to a website first — internal links come from its sitemap.`\n- `No pages to link to yet. Run Autopilot on this website so its sitemap is known, or publish other posts with their URLs.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The AI worker could not be reached. Please try again in a moment.`: the run could not be started. It is left `FAILED` and its charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest internal links",
        "tags": [
          "Internal links"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the run starts, on an estimate of 200 words. When the run finishes, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if it fails on our side. The same request made again while it runs joins that run and is charged once. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Internal link suggestions | Choosing which existing pages and posts a post should link to. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Have the AI pick the pages of the post's website, and your other published posts, that the post should link to, with the words in the text each link goes on. Candidates come from the website's last Autopilot audit and your posts with a `publishedUrl`. Returns a run: poll Get a run until it is `DONE`, then read the suggestions in the post's `links` (Get a post) and put the ones you want in with Apply a link.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/project": {
      "patch": {
        "operationId": "move-a-post-to-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MovePostToProjectBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The post was moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovePostToProjectResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `projectId` is neither a UUID nor `null`.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `projectId` is not a project in your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`Projects are not available for blog posts on this server yet.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Move a post to a project",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "File a post in a project, or take it out of its project with `projectId: null`. Projects only organize posts; they never change who can see them. Files the post saves to your assets go to its project.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/refresh": {
      "post": {
        "operationId": "refresh-from-analytics",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The run, charged and `INPROGRESS`. Poll Get a run until it is `DONE` or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogAiRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged:\n\n- `The post has no content yet.`\n- `Set the post’s published URL first — the refresh brief comes from its analytics.`\n- `Analytics know nothing about this post yet. Sync the site’s analytics (or wait for the daily sync) and try again.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The AI worker could not be reached. Please try again in a moment.`: the run could not be started. It is left `FAILED` and its charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Refresh from analytics",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the run starts, on an estimate of 1.1 times the words of the post (at least 200). When the run finishes, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if it fails on our side. The same request made again while it runs joins that run and is charged once. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Editor AI action | Improve, simplify, expand, audit or rewrite part of a post from the editor. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Rewrite a published post for what people search: a `refresh` editor action over the whole post, briefed with its traffic trend and the queries it ranks for on page 2 or below (see Get post performance). The post needs a website, a `publishedUrl` and synced analytics. Returns a run: poll Get a run until it is `DONE`. The rewritten post is the run's `outputText`, in Markdown; it is not applied to the post: save it with Update a post and `aiAssisted: true`.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/review/approve": {
      "post": {
        "operationId": "approve-a-post",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewDecisionDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The post, `ready`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The post is not in review.`\n- `This document changed. Reload it before saving or reviewing.`: `expectedUpdatedAt` is not the post’s `updatedAt`.\n- `This post changed. Reload it before reviewing.`: it changed at the same time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Approve a post",
        "tags": [
          "Reviews"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:review`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Approve a post that is `in_review`: it becomes `ready`, with your `note` if you send one. The author is notified, and the `post.approved` webhook event fires. Editing the post afterwards moves it back to `draft`, and it needs a new approval.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/review/changes": {
      "post": {
        "operationId": "request-changes",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewDecisionDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The post, `draft`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Say what should change.`: no `note`.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The post is not in review.`\n- `This document changed. Reload it before saving or reviewing.`: `expectedUpdatedAt` is not the post’s `updatedAt`.\n- `This post changed. Reload it before reviewing.`: it changed at the same time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Request changes",
        "tags": [
          "Reviews"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:review`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Send a post that is `in_review` back to its author, with a `note` saying what should change: it becomes `draft` and the author is notified. Send it for review again once it is edited.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/review/request": {
      "post": {
        "operationId": "send-a-post-for-review",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewRequestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The post, `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `The post has no content to review yet.`\n- `That reviewer is not a member of this organisation.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The post is already in review.`\n- `The draft is still being written.`\n- `Wait for the hero image to finish before requesting review.`\n- `Wait for the draft and SEO pack to finish before requesting review.`\n- `This document changed. Reload it before saving or reviewing.`: `expectedUpdatedAt` is not the post’s `updatedAt`.\n- `This post changed. Reload it before reviewing.`: it changed at the same time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Send a post for review",
        "tags": [
          "Reviews"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Ask for a post to be approved before it is published. The post becomes `in_review` and is locked until a reviewer approves it or sends it back, or you withdraw the request. Name reviewers with `reviewerMemberIds` (up to 25), or omit it to use the website's default reviewers. An empty array asks anyone who may review. The legacy `reviewerMemberId` remains accepted; the array takes precedence. The reviewer is notified in the Universe app and by email, and the `post.review_requested` webhook event fires.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/runs": {
      "get": {
        "operationId": "list-the-runs-of-a-post",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The runs, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogAiRunDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List the runs of a post",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every AI run made for a post, newest first: its draft, SEO packs, follow-ups, editor actions, link suggestions, brand voice checks and the localized SEO of its translations, each with its status, answer and cost.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/save-to-assets": {
      "post": {
        "operationId": "save-an-export-to-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "description": "Send `file` (multipart) or `uploadKey` (JSON).",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The exported post: a `.md`, `.txt`, `.html`, `.docx` or `.pdf` file, up to 64 MB."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`: the `uploadKey` from Get an upload URL for an export, once the `PUT` has finished."
                  },
                  "translationId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The translation the file was exported from. Leave it out for the post itself.",
                    "examples": [
                      "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
                    ]
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Send `file` (multipart) or `uploadKey` (JSON).",
                "properties": {
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The exported post: a `.md`, `.txt`, `.html`, `.docx` or `.pdf` file, up to 64 MB."
                  },
                  "uploadKey": {
                    "type": "string",
                    "description": "Instead of `file`: the `uploadKey` from Get an upload URL for an export, once the `PUT` has finished."
                  },
                  "translationId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The translation the file was exported from. Leave it out for the post itself.",
                    "examples": [
                      "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new file in your assets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveExportToAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "- `Attach the exported file.`: neither `file` nor `uploadKey` was sent, or `file` is empty.\n- `A post is saved to Assets as one of: md, txt, html, docx, pdf.`\n- `uploadKey` is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Your organization's storage is full (`PlanLimitReached`: `This upload needs <size>, but only <size> of your <size> storage is left. Free up space or upgrade your plan to upload it.`). Nothing was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `translationId` is not a translation of the post (`Translation not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 64 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save an export to assets",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "File an exported copy of the post, or of one of its translations (`translationId`), in your organization's assets: in the post's project when it is in one, else in `blog/posts`. You make the file yourself, for example from the `contentHtml` or `contentMarkdown` of Get a post: Markdown (`.md`), text (`.txt`), HTML (`.html`), Word (`.docx`) or PDF (`.pdf`), up to 64 MB. Send it as `multipart/form-data` in `file`, or put it in storage first with Get an upload URL for an export and send its `uploadKey` in a JSON body. The file type is read from its extension. Pass `folderId` to choose a Drive folder (the organization id selects My Drive); omit it to use the default destination. Foreign and locked folders are refused. Source and translation exports enforce per-language assignments before storing the file.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/seo-pack": {
      "post": {
        "operationId": "generate-the-seo-pack",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The run, charged and `INPROGRESS`. Poll Get a run until it is `DONE` or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogAiRunDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged:\n\n- `The post has no content yet.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was charged:\n\n- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The AI worker could not be reached. Please try again in a moment.`: the run could not be started. It is left `FAILED` and its charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Generate the SEO pack",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the run starts, on an estimate of 400 words. When the run finishes, the charge is settled to the words it actually wrote, never more than twice the start charge. Refunded in full if it fails on our side. The same request made again while it runs joins that run and is charged once. Deleting the post keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| SEO pack | Meta title, description, keywords, summary and FAQs for a post. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Write the post's SEO pack again from its current text: meta title, meta description, slug, focus keyword, keywords, summary, FAQs and tags. Returns a run: poll Get a run until it is `DONE`. The pack then replaces the post's `seo`, as a new version; if the post was saved in the meantime, the run fails instead, and you generate it again.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/structured-data": {
      "get": {
        "operationId": "get-structured-data",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          },
          {
            "name": "translationId",
            "required": false,
            "in": "query",
            "description": "Return the structured data and score of this translation of the post (`id` from List translations) instead of the post itself.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The structured data, score and hreflang links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StructuredDataDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or `translationId` is not a translation of the post (`Translation not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The selected translation is not done. Wait for completion before exporting.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get structured data",
        "tags": [
          "SEO"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Schema.org JSON-LD derived from this language’s saved title and visible body, with its on-page score, hreflang links and publishing notes. FAQPage includes only exact question/answer pairs still visible together in that body. No inferred draft URLs, bylines or breadcrumbs. With translationId, uses only that completed translation’s own fields; unfinished translations return 409. wordCount is the platform word count of that body — the figure the editor shows and the post stores. Set each language’s actual publishedUrl and add its actual public author in your CMS. No CMS deployment or Google rich-result eligibility is implied.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/versions": {
      "get": {
        "operationId": "list-versions",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The versions, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostVersionSummaryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List versions",
        "tags": [
          "Versions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every version of a post, newest first, without its text: who made it, how (`generated`, `edited`, `restored`) and with what note.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/versions/{versionId}": {
      "get": {
        "operationId": "get-a-version",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "Version ID (`id` from List versions).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostVersionDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or no version with this `versionId` (`Version <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a version",
        "tags": [
          "Versions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One version of a post, with its title, text and SEO pack.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/posts/{id}/versions/{versionId}/restore": {
      "post": {
        "operationId": "restore-a-version",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "Version ID (`id` from List versions).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The post, with the restored version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Or no version with this `versionId` (`Version <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `The draft is still being written.`\n- `Withdraw the review before editing this post.`: the post is `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Restore a version",
        "tags": [
          "Versions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Bring back an earlier version's title, text, SEO pack and public attribution, as a new version. Nothing is lost: the version you replace stays in the history. Restoring an approved post moves it back to `draft`.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/review/queue": {
      "get": {
        "operationId": "list-the-review-queue",
        "parameters": [
          {
            "name": "siteId",
            "required": false,
            "in": "query",
            "description": "Only the posts of this website.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          },
          {
            "name": "mine",
            "required": false,
            "in": "query",
            "description": "`true`: only posts the key’s member is asked to review, or that anyone may review.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The posts in review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogPostSummaryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List the review queue",
        "tags": [
          "Reviews"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:review`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The posts waiting for a review decision, oldest request first, up to 200, without their text. With `mine=true`, only those the key’s member is asked to review or that anyone may review. Read one with Get a post, then Approve a post or Request changes.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/runs/{runId}": {
      "get": {
        "operationId": "get-a-run",
        "parameters": [
          {
            "name": "runId",
            "required": true,
            "in": "path",
            "description": "Run ID (`id` returned by an AI action, or in the post’s `runs`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The run.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogAiRunDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No run with this ID in your organization (`Model run <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a run",
        "tags": [
          "AI actions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One AI run. Poll it after an AI action, every 10–30 seconds, until `status` is `DONE` or `FAILED`. An editor action's answer is in `outputText`; the SEO pack, follow-ups and link suggestions are also saved on the post.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/post/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-an-export",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the key to save it with.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the file is empty (`The file is empty.`), larger than 64 MB (`The blog export is larger than the 64 MB limit.`), not one of the export formats (`That isn't a blog export this step takes (.md, .txt, .html, .docx, .pdf).`), or a program (`Files of this type (.exe) can't be uploaded.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Your organization's storage is full (`PlanLimitReached`: `This upload needs <size>, but only <size> of your <size> storage is left. Free up space or upgrade your plan to upload it.`). Nothing was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many uploads: 300 in an hour, or 5 GB waiting to be used, per member (`Too many uploads in the last hour. Please wait and try again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL for an export",
        "tags": [
          "Posts"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.post:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Step 1 of saving an export to assets without sending the file in the request. Send the file name, its type and its exact size in bytes: Markdown (`.md`), text (`.txt`), HTML (`.html`), Word (`.docx`) or PDF (`.pdf`), up to 64 MB. `PUT` the file to the returned `uploadUrl` with exactly the returned `headers` and without your API key, within `expiresInSeconds`. Then call Save an export to assets with the `uploadKey` in a JSON body. A key can be used once, and an upload not used within a day is deleted.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/site": {
      "get": {
        "operationId": "list-websites",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The websites.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogSiteDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List websites",
        "tags": [
          "Websites"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.site:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every website your organization writes for, most recently changed first, with its defaults and analytics connection.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-a-website",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSiteDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The website.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogSiteDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Website URL is required.`, `Website URL is not a valid URL.`, `Website URL must use HTTP or HTTPS.` or `URLs with credentials are not allowed.`\n- `Choose a supported source language from the language catalog.`: `defaults.sourceLanguage` is not a BCP-47 code from List languages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add a website",
        "tags": [
          "Websites"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.site:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add a website to write for. Posts, Autopilot runs, topics, the calendar, analytics and webhooks can all belong to a website, and its `defaults` (memories, prompt, brand kit, translation memory, language, reviewer, voice) apply to each of them. The first website your organization adds takes in the posts written before it had one. From then on, Write a post needs a `siteId`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/site/{id}": {
      "get": {
        "operationId": "get-a-website",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The website.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogSiteDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a website",
        "tags": [
          "Websites"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.site:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One website, with its defaults and its Google Analytics 4 and Search Console connection.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-website",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Website ID (`id` from Add a website or List websites).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The website.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogSiteDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Website URL is required.`, `Website URL is not a valid URL.`, `Website URL must use HTTP or HTTPS.` or `URLs with credentials are not allowed.`\n- `Choose a supported source language from the language catalog.`: `defaults.sourceLanguage` is not a BCP-47 code from List languages.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No website with this ID in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a website",
        "tags": [
          "Websites"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.site:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the name, URL, sitemap or defaults of a website. Send only what changes: `defaults` are merged into the current ones key by key. New defaults apply to work started afterwards.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}": {
      "get": {
        "operationId": "get-a-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The translation, with its text.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTranslationWithContentDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One translation, with its text as HTML in `contentHtml`. Poll it after Translate a post or Translate again, every 10–30 seconds, until `status` is `done`, or `failed` with the reason in `error`. The localized SEO pass may still update `seo` and `slug` shortly after the translation is `done`.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTranslationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The translation as saved, with its text.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTranslationWithContentDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Invalid public attribution: ...`: nested public names, types or URLs failed validation.\n- `Published URL must be an HTTP or HTTPS URL without credentials.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `This document changed. Reload it before saving or reviewing.`: `expectedUpdatedAt` is not the translation’s `updatedAt`.\n- `Wait for this translation to finish before editing it.`: it is `queued` or `translating`.\n- `The translation changed. Reload and try again.`: it changed while you saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Edit a translation: its `title`, `contentHtml`, `seo` pack, public attribution, or `publishedUrl` (where this language version is live; the post’s hreflang links are built from it). Send only the fields that change. To avoid overwriting someone else’s edit, send the `updatedAt` you read as `expectedUpdatedAt`: the save is then refused (409) if the translation changed since. Refused while the translation is `queued` or `translating`. Sync to the translation memory can later write your corrections to the memory. Returns the translation with its text.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}/retranslate": {
      "post": {
        "operationId": "translate-again",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The translation, charged and `queued` again, with its current text until the new one is done. Poll Get a translation until it is `done` or `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTranslationDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A path ID is not a UUID (`Validation failed (uuid is expected)`). Or:\n\n- `The post has no content to translate yet.`\n- `That is the post’s source language.`\n- `Choose a Translation Memory for this translation (or set a default one on the site).`: no `tmId`, and the post’s website has no default memory.\n- `The Translation Memory \"<name>\" translates from <language>, but this post is written in <language>. Choose a memory for that language.`\n- `The selected Translation Memory's provider and engine do not support <source> → <target>. Choose another memory or language.`\n- `Choose supported language codes from the language catalog.`: the post’s own language is not in the language catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was started, and the translation is left as it is.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post. Or the translation’s memory was deleted or is no longer shared with your organization (`Translation memory not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was charged:\n\n- `This language is already being translated.`: its translation is still `queued` or `translating`.\n- `This post changed since you opened it. Your edits have not been saved. Reload the latest version before trying again.`: the post was saved while the translation was starting. Call again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The worker could not be reached. Please try again in a moment.`: the translation could not be started. Its charge is refunded and it is left `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate again",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the translation starts, all at once: the post’s exact source words (title, text and SEO pack fields, as Price a translation counts them) and, when the post has an SEO pack and its website does not turn `localiseSeo` off, the localized SEO pass, estimated at 120 words. Without enough credits nothing is started. The translation settles to the source words it translated and is refunded in full if it fails. The SEO pass settles like a model run: to the words it wrote, never more than twice its start charge, and it is refunded if it fails or does not run. Translating a language again is charged again. Deleting the post while it is being translated keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Blog translation | Translating a post into another language through the Translation Memory. Charged per source word. | 0.5 credits per word |\n| Localised SEO | A native meta title, description, keywords and slug for a translated post. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Translate the post into this translation’s language again, from the post’s current text, through the translation’s memory (or the website’s default memory when it has none). It is Translate a post for that language and memory: it is charged again, returns at once with the translation `queued` (same `id`), and REPLACES the current text, human edits included, once the new text is done. Use it when the post changed since the language was translated (its `sourceVersion` is lower than the post’s `versionCount`). Poll Get a translation every 10–30 seconds until `status` is `done` or `failed`; `translation.done` or `translation.failed` fires.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}/sync-from-tm": {
      "put": {
        "operationId": "sync-from-the-translation-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncFromTmDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many sentences were replaced, and the translation as it is now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncFromTmResultDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `No Translation Memory is linked to this translation.`\n- `This language was translated before its source was kept. Translate it again to sync with the Translation Memory.`\n- `The structure of this translation no longer matches its source. Translate it again to sync with the Translation Memory.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post. Or the translation’s memory was deleted or is no longer shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "- `Wait for this translation to finish before syncing it.`: it is `queued` or `translating`.\n- `This document changed. Reload it before saving or reviewing.`: `expectedUpdatedAt` is not the translation’s `updatedAt`.\n- `The translation changed. Reload and try again.`: it changed during the sync.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Sync from the translation memory",
        "tags": [
          "Translation memory sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Replace every sentence of the translation that its memory now words differently with the memory’s wording, at any review status. Sentences the memory does not hold stay as they are. The memory wins: corrections that were never synced to it are overwritten, so check `edited` and `tmDiffers` with Get the sync status first, and Sync to the translation memory to keep them. Send the `updatedAt` you read as `expectedUpdatedAt` to be refused (409) if the translation changed since. Returns how many sentences were replaced, and the translation with its text.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}/sync-to-tm": {
      "put": {
        "operationId": "sync-to-the-translation-memory",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncToTmDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many corrected sentences were written, and the translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncToTmResultDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `No Translation Memory is linked to this translation.`\n- `This language was translated before its source was kept. Translate it again to sync with the Translation Memory.`\n- `The structure of this translation no longer matches its source. Translate it again to sync with the Translation Memory.`\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`Wait for this translation to finish before syncing it.`: it is `queued` or `translating`. The translation or source pairing changed during sync. If terms were already written to the memory, the error says so; reload before retrying because the external write cannot be rolled back.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Sync to the translation memory",
        "tags": [
          "Translation memory sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Write every sentence a person corrected since the last sync to the translation’s memory, against its source sentence, with the review `status` you choose (`verified` by default). The next post translated through that memory starts from these corrections. The translation’s text does not change. Sentences whose paragraph was split, merged or removed cannot be paired and are skipped (`unaligned`). A sentence that could not be written is counted in `failed`: call again to retry it. For new body text, get `unpairedSegments` from the sync status and supply `newPairs` with each segment’s `index`, exact `targetText`, and matching `sourceText`, together with the saved translation’s `expectedUpdatedAt`. At most 100 new pairs can be supplied per request. Successful pairs are retained for future corrections; blank or guessed sources are never inferred. Check what it would write with Get the sync status. A VitraTM memory in Reference mode stores nothing after a translation, so for one every paired sentence is written: the corrected ones at `status`, the unedited ones as `unverified`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}/tm-sync": {
      "get": {
        "operationId": "get-the-sync-status",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          },
          {
            "name": "withTm",
            "required": false,
            "in": "query",
            "description": "`true` to also ask the translation memory which sentences it now words differently (`tmDiffers`): what Sync from the translation memory would replace. It costs one lookup in the memory. Default `false`.",
            "schema": {
              "type": "string",
              "examples": [
                "true"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "What each sync would do.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TmSyncStatusDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`). Or `withTm` is not `true` or `false` (`withTm must be a boolean string`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post. With `withTm=true`, also when the translation’s memory was deleted or is no longer shared with your organization (`Translation memory not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the sync status",
        "tags": [
          "Translation memory sync"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What a sync between one translation and its translation memory would do, without changing anything. `edited` counts the sentences a person corrected since the last sync: Sync to the translation memory writes them. With `withTm=true`, `tmDiffers` counts the sentences the memory now words differently: Sync from the translation memory would replace them, overwriting any of those corrections. `syncable` is `false`, with the `reason`, when the translation has no memory, is not `done`, or can no longer be paired with its source.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}/versions": {
      "get": {
        "operationId": "list-translation-versions",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of version summaries per page.",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "beforeVersion",
            "required": false,
            "in": "query",
            "description": "Return versions strictly older than this version number. Use the last version number from the previous page.",
            "schema": {
              "minimum": 1,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogTranslationVersionDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`). limit must be an integer from 1 to 100; beforeVersion must be a positive integer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List translation versions",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Immutable version summaries for one language, newest first: 50 per page by default, at most 100. Pass beforeVersion with the last version number to read older history. Full HTML and TM snapshots are not returned. Includes translations, manual edits, localized SEO, TM pulls and restores. Existing translations start with their current saved text; edits before history was introduced cannot be recovered.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/{id}/versions/{versionId}/restore": {
      "post": {
        "operationId": "restore-a-translation-version",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Translation ID (`id` from Translate a post or List translations).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "Version ID from List translation versions for this translation.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncFromTmDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTranslationWithContentDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation <id> not found`). Also, with `Process not found`: a translation of a post the key's member may not open when their role has Personal view on (a post they did not write, were not asked to review and are not assigned to), or a language they are not assigned to when they are assigned to other languages of the post.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Wait for the translation to finish, or reload a changed translation before restoring it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Restore a translation version",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Restore saved title, text, SEO and public attribution in one language, with the source and Translation Memory baseline they belong to. Creates a new saved version when the content differs. Costs and published URL are preserved. Refused while translation is running or the supplied expectedUpdatedAt is stale. Nothing is charged.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/posts/{postId}": {
      "get": {
        "operationId": "list-translations",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The post’s translations, without their text.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogTranslationDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List translations",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every language a post is translated into, oldest first, without the translated text (Get a translation returns it). Each has its `status`, title, slug, SEO pack and what it cost. When the key’s member is assigned to only some languages of the post, only those are listed.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "translate-a-post",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTranslationDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The translation, charged and `queued` (a translation the language already had keeps its `id`, and its current text until the new one is done). Poll Get a translation until it is `done` or `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogTranslationDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation (for example `languageCode must be a supported BCP 47 language code (e.g. en-US)`), a path ID is not a UUID, or:\n\n- `The post has no content to translate yet.`\n- `That is the post’s source language.`\n- `Choose a Translation Memory for this translation (or set a default one on the site).`: no `tmId`, and the post’s website has no default memory.\n- `The Translation Memory \"<name>\" translates from <language>, but this post is written in <language>. Choose a memory for that language.`\n- `The selected Translation Memory's provider and engine do not support <source> → <target>. Choose another memory or language.`\n- `Choose supported language codes from the language catalog.`: the post’s own language is not in the language catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for this start, or your organization owes credits. Nothing was started, and a translation the language already has is left as it is.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`). Also a language the key's member is not assigned to, when they are assigned to other languages of the post (`Process not found`). Or `tmId` is not a translation memory your organization owns or that is shared with it (`Translation memory not found`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Nothing was charged:\n\n- `This language is already being translated.`: its translation is still `queued` or `translating`.\n- `This post changed since you opened it. Your edits have not been saved. Reload the latest version before trying again.`: the post was saved while the translation was starting. Call again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`The worker could not be reached. Please try again in a moment.`: the translation could not be started. Its charge is refunded and it is left `failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate a post",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the translation starts, all at once: the post’s exact source words (title, text and SEO pack fields, as Price a translation counts them) and, when the post has an SEO pack and its website does not turn `localiseSeo` off, the localized SEO pass, estimated at 120 words. Without enough credits nothing is started. The translation settles to the source words it translated and is refunded in full if it fails. The SEO pass settles like a model run: to the words it wrote, never more than twice its start charge, and it is refunded if it fails or does not run. Translating a language again is charged again. Deleting the post while it is being translated keeps the charge.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Blog translation | Translating a post into another language through the Translation Memory. Charged per source word. | 0.5 credits per word |\n| Localised SEO | A native meta title, description, keywords and slug for a translated post. Charged per generated word. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "description": "Translate a post into one language through a translation memory. Its title, text and SEO pack go through the memory: exact matches are reused, the memory’s machine translation fills in the rest and is stored back in the memory, and the HTML structure is kept. Name the language with `languageCode` (a BCP-47 `code` from List languages in the Platform API) and the memory with `tmId` (from List translation memories in the Translation Memory API), or leave `tmId` out to use the website’s default memory. The call returns at once with the translation `queued`: poll Get a translation every 10–30 seconds until `status` is `done` or `failed`, or listen for the `translation.done` and `translation.failed` webhook events. When the post has an SEO pack, a localized SEO pass then rewrites the translation’s meta title, description, keywords and slug for searchers in that language, unless the website turns `localiseSeo` off. A post has one translation per language: translating into a language the post already has REPLACES that translation (same `id`), human edits included, once the new text is done. The API does not refuse this (the Universe app asks the person first), so call List translations first. Only a translation still `queued` or `translating` is refused (409).",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/translation/posts/{postId}/charges": {
      "get": {
        "operationId": "price-a-translation",
        "parameters": [
          {
            "name": "postId",
            "required": true,
            "in": "path",
            "description": "Post ID (`id` from Write a post or List posts).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The items to send to Get a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogChargesDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No post with this ID in your organization (`Post <id> not found`). When the key's role has Personal view on, also a post its member did not write, was not asked to review and is not assigned to (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Price a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.translation:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What Translate a post charges when it starts, as items for Get a quote. Nothing is charged. The items are the post’s exact source words (its title, text and SEO pack) under `blog.translation` · `translate`, and, when the post has an SEO pack and its website does not turn `localiseSeo` off, the localized SEO pass under `blog.translation` · `seo_localise` (an estimated 120 words). The price is the same for every language, and for Translate again.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/webhook": {
      "get": {
        "operationId": "list-webhooks",
        "parameters": [
          {
            "name": "siteId",
            "required": false,
            "in": "query",
            "description": "Only the webhooks that fire for this website: the ones registered for it, plus the organization-wide ones.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The webhooks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlogWebhookDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List webhooks",
        "tags": [
          "Webhooks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.webhook:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every webhook of your organization, newest first. With `siteId`, only those that fire for that website: the ones registered for it and the organization-wide ones. The signing secret is never returned again; `secretHint` shows its last four characters.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "register-a-webhook",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The webhook, with its signing secret (shown only here).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogWebhookCreatedDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (for example an unknown event), or the URL was refused:\n\n- `Not a valid URL: <url>`\n- `Only https:// URLs can be used.`\n- `URLs with credentials are not allowed.`\n- `The URL must point to a public address.`: the host is local, private, or does not resolve.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`siteId` is not a website in your organization (`Site <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Register a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.webhook:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Have the events you choose sent to your endpoint as a signed `POST`, instead of polling. Without `siteId` the webhook receives the events of every website in your organization; with it, only that website’s. The response is the only time the signing secret (`secret`, `whsec_…`) is shown: store it, and check `x-vitra-signature` on every delivery with it. Answer each delivery with a 2xx within 10 seconds; a failed one is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, and the webhook is switched off after 10 failed attempts in a row. To rotate the secret, register a second webhook with the same URL and events, switch your receiver to its secret, then delete the old one. Check your endpoint with Send a test delivery.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/webhook/{id}": {
      "patch": {
        "operationId": "update-a-webhook",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Webhook ID (`id` from Register a webhook or List webhooks).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlogWebhookDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or:\n\n- `Not a valid URL: <url>`\n- `Only https:// URLs can be used.`\n- `URLs with credentials are not allowed.`\n- `The URL must point to a public address.`: the host is local, private, or does not resolve.\n- A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook with this ID in your organization, or it was deleted (`Webhook <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.webhook:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change a webhook’s `url`, `events` or `description`, or pause and resume it with `enabled`. Send only what changes. A paused webhook receives nothing, and events that happen while it is paused are never sent. Resuming (`enabled: true`) also clears the failure streak and the `disabledReason` of a webhook that was switched off after 10 failed attempts. The website and the secret cannot be changed: register a new webhook instead.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/webhook/{id}/deliveries": {
      "get": {
        "operationId": "list-deliveries",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Webhook ID (`id` from Register a webhook or List webhooks).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5e"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "How many of the latest deliveries to return, from 1 to 100.",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number",
              "examples": [
                25
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The deliveries, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookDeliveryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook with this ID in your organization, or it was deleted (`Webhook <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List deliveries",
        "tags": [
          "Webhooks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.webhook:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The latest deliveries of a webhook, newest first: each event sent, the body sent, how many attempts it took, and the last HTTP status or error. Use it to find out why your endpoint missed an event. `limit` is 1 to 100, 25 by default.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/blog/webhook/{id}/test": {
      "post": {
        "operationId": "send-a-test-delivery",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Webhook ID (`id` from Register a webhook or List webhooks).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5e"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The test delivery and how it went.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No webhook with this ID in your organization, or it was deleted (`Webhook <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Send a test delivery",
        "tags": [
          "Webhooks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `blog.webhook:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Send a `webhook.test` event to the webhook now, signed like any other delivery, and get the result: `status` is `delivered` when your endpoint answered with a 2xx, else `exhausted`, with `lastStatusCode` and `lastError` saying what went wrong. The call waits for the attempt, up to 10 seconds. It works on a paused webhook too, so you can check a fixed endpoint before you resume it. A test is never retried and never counts toward switching the webhook off.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "AddMatchingLinksDto": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "number",
            "description": "The versionCount currently displayed. Refuses a stale post instead of modifying unseen edits.",
            "minimum": 0
          }
        },
        "required": [
          "expectedVersion"
        ]
      },
      "AnalyticsPageRowDto": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "The page path.",
            "examples": [
              "/blog/compact-tractor-maintenance-checklist"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page title, as Google Analytics recorded it.",
            "examples": [
              "Compact Tractor Maintenance Checklist | Acme Tractors"
            ]
          },
          "sessions": {
            "type": "number",
            "description": "Sessions in the period.",
            "examples": [
              1840
            ]
          },
          "users": {
            "type": "number",
            "description": "Users in the period.",
            "examples": [
              1512
            ]
          },
          "engagementRate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Share of engaged sessions, from 0 to 1.",
            "examples": [
              0.64
            ]
          },
          "avgEngagementSeconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Average engagement time per session, in seconds.",
            "examples": [
              96.4
            ]
          },
          "conversions": {
            "type": [
              "number",
              "null"
            ],
            "description": "Key events (conversions) in the period.",
            "examples": [
              23
            ]
          }
        },
        "required": [
          "path",
          "sessions",
          "users"
        ]
      },
      "AnalyticsQueryRowDto": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "What people searched for.",
            "examples": [
              "compact tractor horsepower"
            ]
          },
          "page": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page of the website that showed in the results.",
            "examples": [
              "https://example.com/blog/how-to-choose-a-compact-tractor"
            ]
          },
          "clicks": {
            "type": "number",
            "description": "Clicks in the period.",
            "examples": [
              42
            ]
          },
          "impressions": {
            "type": "number",
            "description": "Times the page showed in search results.",
            "examples": [
              3150
            ]
          },
          "ctr": {
            "type": "number",
            "description": "Click-through rate, from 0 to 1.",
            "examples": [
              0.013
            ]
          },
          "position": {
            "type": "number",
            "description": "Average position in the results (1 is the top).",
            "examples": [
              9.4
            ]
          }
        },
        "required": [
          "query",
          "clicks",
          "impressions",
          "ctr",
          "position"
        ]
      },
      "AudioVoiceDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "elevenlabs",
              "cartesia",
              "microsoft"
            ],
            "description": "Provider that speaks with the voice: `provider` of a voice from List voices in the Video Dubbing API. It must be enabled for your organization.",
            "examples": [
              "cartesia"
            ]
          },
          "voiceId": {
            "type": "string",
            "description": "The voice's ID at its provider: `providerVoiceId` of that voice.",
            "examples": [
              "6ccbfb76-1fc6-48f7-b71d-91ac6298247b"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the voice.",
            "examples": [
              "tessa"
            ]
          },
          "gender": {
            "type": "string",
            "description": "Gender of the voice, as the catalog gives it.",
            "examples": [
              "female"
            ]
          },
          "voiceType": {
            "type": "string",
            "description": "Kind of voice, as the catalog gives it.",
            "examples": [
              "standard"
            ]
          },
          "emotion": {
            "type": "string",
            "description": "Delivery emotion, for providers that support it (cloned voices).",
            "examples": [
              "calm"
            ]
          }
        },
        "required": [
          "provider",
          "voiceId"
        ]
      },
      "AutopilotChargesDto": {
        "type": "object",
        "properties": {
          "targetTopics": {
            "type": "number",
            "default": 500,
            "minimum": 10,
            "maximum": 1000,
            "description": "How many topics the run will plan, as you will send it to Start an Autopilot run.",
            "examples": [
              50
            ]
          }
        }
      },
      "AutopilotClusterDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Cluster ID. List topics takes it as `clusterId`; each topic names it too.",
            "examples": [
              "4e5f6071-8293-4a4b-b5c6-d7e8f9012345"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the cluster, a short topical label.",
            "examples": [
              "Compact tractor buying guides"
            ]
          },
          "pillarKeyword": {
            "type": "string",
            "description": "The main keyword the cluster is built around.",
            "examples": [
              "compact tractor buying guide"
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "informational",
              "commercial",
              "transactional",
              "navigational"
            ],
            "description": "The main search intent of the cluster.",
            "examples": [
              "commercial"
            ]
          },
          "gapType": {
            "type": "string",
            "enum": [
              "missing",
              "thin",
              "refresh",
              "competitive",
              "new_niche"
            ],
            "description": "Why the cluster is worth writing: `missing` (nothing on the website covers it), `thin` (covered weakly), `refresh` (old content to redo), `competitive` (competitors rank for it and the website does not) or `new_niche` (an adjacent area worth claiming).",
            "examples": [
              "missing"
            ]
          },
          "priority": {
            "type": "number",
            "description": "Priority from 1 to 100, from traffic potential, fit and ease. Higher first.",
            "examples": [
              92
            ]
          },
          "rationale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run chose this cluster.",
            "examples": [
              "The website sells compact tractors but has no guide that helps a first-time buyer choose one."
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "generating",
              "done",
              "failed"
            ],
            "description": "`planned` → `generating` → `done`. `failed`: the cluster produced no topics, or the run was cancelled or failed while it was being written; `error` says why.",
            "examples": [
              "done"
            ]
          },
          "topicCount": {
            "type": "number",
            "description": "How many topics the cluster holds.",
            "examples": [
              10
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the cluster failed (`Cancelled` when the run was cancelled). Null otherwise.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "name",
          "pillarKeyword",
          "intent",
          "gapType",
          "priority",
          "rationale",
          "status",
          "topicCount",
          "error"
        ]
      },
      "AutopilotRunDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Autopilot run ID.",
            "examples": [
              "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
            ]
          },
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website the run audits.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`SCHEDULED` → `RUNNING` (see `phase`) → `COMPLETED`. `FAILED`: the run stopped on an error, `error` says why, and its charge is refunded. `TERMINATED`: stopped with Cancel an Autopilot run.",
            "examples": [
              "COMPLETED"
            ]
          },
          "phase": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ingesting",
              "planning",
              "generating"
            ],
            "description": "While `RUNNING`: `ingesting` (reading the sitemap and the pages), `planning` (summing up the website and planning keyword clusters) or `generating` (writing the topics of each cluster). Null otherwise.",
            "examples": [
              "generating"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the run is doing now, in words, for display: for example `Fetched 150 of 300 pages…`, `3 of 5 clusters done · 30 of 50 topics so far` or `Done — 50 topics in 5 clusters`. Read `status` and `progress` in your code, not this.",
            "examples": [
              "Done — 50 topics in 5 clusters"
            ]
          },
          "inputs": {
            "description": "What the run was asked to do, with the defaults it applied.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AutopilotRunInputsDto"
              }
            ]
          },
          "progress": {
            "description": "Counters that grow as the run works.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AutopilotRunProgressDto"
              }
            ]
          },
          "summary": {
            "description": "What the run learned about the website. Null until planning is done.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/AutopilotSiteSummaryDto"
              }
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits charged for the run: its start charge while it runs (see Price an Autopilot run), the amount settled to the words it wrote once it has `succeeded`, and `0` when a failure was refunded. A cancelled run keeps its start charge.",
            "examples": [
              8490
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run failed. Null unless `status` is `failed`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run was started.",
            "examples": [
              "2026-09-28T15:02:11.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run last changed.",
            "examples": [
              "2026-09-28T15:19:47.000Z"
            ]
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the run succeeded, failed or was cancelled. Null while it is in progress.",
            "examples": [
              "2026-09-28T15:19:47.000Z"
            ]
          },
          "clusters": {
            "description": "The keyword clusters the run planned, highest `priority` first. Empty until planning is done.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutopilotClusterDto"
            }
          }
        },
        "required": [
          "id",
          "siteId",
          "status",
          "phase",
          "stage",
          "inputs",
          "progress",
          "summary",
          "credits",
          "error",
          "createdAt",
          "updatedAt",
          "finishedAt",
          "clusters"
        ]
      },
      "AutopilotRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Autopilot run ID.",
            "examples": [
              "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
            ]
          },
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website the run audits.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`SCHEDULED` → `RUNNING` (see `phase`) → `COMPLETED`. `FAILED`: the run stopped on an error, `error` says why, and its charge is refunded. `TERMINATED`: stopped with Cancel an Autopilot run.",
            "examples": [
              "COMPLETED"
            ]
          },
          "phase": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ingesting",
              "planning",
              "generating"
            ],
            "description": "While `RUNNING`: `ingesting` (reading the sitemap and the pages), `planning` (summing up the website and planning keyword clusters) or `generating` (writing the topics of each cluster). Null otherwise.",
            "examples": [
              "generating"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the run is doing now, in words, for display: for example `Fetched 150 of 300 pages…`, `3 of 5 clusters done · 30 of 50 topics so far` or `Done — 50 topics in 5 clusters`. Read `status` and `progress` in your code, not this.",
            "examples": [
              "Done — 50 topics in 5 clusters"
            ]
          },
          "inputs": {
            "description": "What the run was asked to do, with the defaults it applied.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AutopilotRunInputsDto"
              }
            ]
          },
          "progress": {
            "description": "Counters that grow as the run works.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AutopilotRunProgressDto"
              }
            ]
          },
          "summary": {
            "description": "What the run learned about the website. Null until planning is done.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/AutopilotSiteSummaryDto"
              }
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits charged for the run: its start charge while it runs (see Price an Autopilot run), the amount settled to the words it wrote once it has `succeeded`, and `0` when a failure was refunded. A cancelled run keeps its start charge.",
            "examples": [
              8490
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run failed. Null unless `status` is `failed`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run was started.",
            "examples": [
              "2026-09-28T15:02:11.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run last changed.",
            "examples": [
              "2026-09-28T15:19:47.000Z"
            ]
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the run succeeded, failed or was cancelled. Null while it is in progress.",
            "examples": [
              "2026-09-28T15:19:47.000Z"
            ]
          }
        },
        "required": [
          "id",
          "siteId",
          "status",
          "phase",
          "stage",
          "inputs",
          "progress",
          "summary",
          "credits",
          "error",
          "createdAt",
          "updatedAt",
          "finishedAt"
        ]
      },
      "AutopilotRunInputsDto": {
        "type": "object",
        "properties": {
          "websiteUrl": {
            "type": "string",
            "description": "The website's URL when the run started.",
            "examples": [
              "https://example.com"
            ]
          },
          "sitemapUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sitemap the run was asked to read: the request's `sitemapUrl`, else the website's. Null when neither was set: the run then looked for one in robots.txt and at the usual places.",
            "examples": [
              "https://example.com/sitemap.xml"
            ]
          },
          "targetTopics": {
            "type": "number",
            "description": "How many topics the run was asked to write.",
            "examples": [
              50
            ]
          },
          "topicsPerCluster": {
            "type": "number",
            "description": "How many topics each keyword cluster was asked for.",
            "examples": [
              10
            ]
          },
          "fetchPages": {
            "type": "boolean",
            "description": "Whether the run read each page's title and meta description, or worked from the URLs alone.",
            "examples": [
              true
            ]
          },
          "useSearch": {
            "type": "boolean",
            "description": "Whether the model searched the web while it planned. Only OpenAI models can: with another model this is `false`, whatever the request asked.",
            "examples": [
              true
            ]
          },
          "useAnalytics": {
            "type": "boolean",
            "description": "Whether the run used the website's Google Analytics 4 and Search Console data, when connected.",
            "examples": [
              true
            ]
          },
          "memoryIds": {
            "description": "Memory notes the run read as context: the request's, else the website's `defaults.memoryIds`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f5a6b7c-8d9e-4f0a-9b1c-2d3e4f5a6b7c"
              ]
            ]
          },
          "promptId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The library prompt added to the run's instructions: the request's, else the website's `defaults.promptId`. Null for none.",
            "examples": [
              null
            ]
          },
          "promptVariables": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Values for the `{{placeholders}}` of that prompt. Null for none.",
            "examples": [
              null
            ]
          },
          "brief": {
            "type": [
              "string",
              "null"
            ],
            "description": "The brief the run was given. Null for none.",
            "examples": [
              "We sell compact and sub-compact tractors to smallholders in the US Midwest. Favor buying guides and mention our 0% financing offer."
            ]
          },
          "model": {
            "type": "string",
            "description": "The AI model that ran it: your organization's Blog model in its provider preferences (in the Universe app) when the run started.",
            "examples": [
              "gpt-5.6-terra"
            ]
          },
          "reasoningEffort": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "How hard the model reasoned, from the same provider preferences.",
            "examples": [
              "high"
            ]
          }
        },
        "required": [
          "websiteUrl",
          "sitemapUrl",
          "targetTopics",
          "topicsPerCluster",
          "fetchPages",
          "useSearch",
          "useAnalytics",
          "memoryIds",
          "promptId",
          "promptVariables",
          "brief",
          "model",
          "reasoningEffort"
        ]
      },
      "AutopilotRunProgressDto": {
        "type": "object",
        "properties": {
          "pagesFound": {
            "type": "number",
            "description": "Page URLs found in the website's sitemap.",
            "examples": [
              412
            ]
          },
          "pagesQueued": {
            "type": "number",
            "description": "How many of those pages the run reads, articles first and newest first, up to its crawl limit. Absent until the reading starts, and when `inputs.fetchPages` is `false`.",
            "examples": [
              300
            ]
          },
          "pagesFetched": {
            "type": "number",
            "description": "Pages whose title and meta description were read so far.",
            "examples": [
              296
            ]
          },
          "clustersPlanned": {
            "type": "number",
            "description": "Keyword clusters the run planned.",
            "examples": [
              5
            ]
          },
          "clustersDone": {
            "type": "number",
            "description": "Clusters whose topics are written.",
            "examples": [
              5
            ]
          },
          "clustersFailed": {
            "type": "number",
            "description": "Clusters that produced no topics.",
            "examples": [
              0
            ]
          },
          "topicsGenerated": {
            "type": "number",
            "description": "Topics written so far, in every cluster.",
            "examples": [
              50
            ]
          }
        },
        "required": [
          "pagesFound",
          "pagesFetched",
          "clustersPlanned",
          "clustersDone",
          "clustersFailed",
          "topicsGenerated"
        ]
      },
      "AutopilotSiteSummaryDto": {
        "type": "object",
        "properties": {
          "niche": {
            "type": "string",
            "description": "What the website sells or covers, and for whom.",
            "examples": [
              "Compact and sub-compact tractors, attachments and financing for smallholdings and hobby farms."
            ]
          },
          "audience": {
            "type": "string",
            "description": "Who reads the website: roles, needs, expertise, region.",
            "examples": [
              "First-time tractor buyers with 2 to 20 acres, mostly in the US Midwest, comparing models before they visit a dealer."
            ]
          },
          "businessModel": {
            "type": "string",
            "description": "How the website makes money.",
            "examples": [
              "Dealer sales of tractors and attachments, financing and service plans."
            ]
          },
          "contentStrengths": {
            "description": "Themes the existing content already covers well.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Attachment guides",
                "Seasonal maintenance checklists"
              ]
            ]
          },
          "contentGaps": {
            "description": "Themes the audience needs that the existing content misses or covers thinly. The clusters are planned around them.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Buying guides that compare horsepower classes",
                "Financing and total cost of ownership"
              ]
            ]
          },
          "strategy": {
            "type": "string",
            "description": "The content strategy the topics follow, in a few sentences.",
            "examples": [
              "Lead with buying guides for first-time owners, then support them with maintenance and attachment content that links back to the product pages."
            ]
          }
        },
        "required": [
          "niche",
          "audience",
          "businessModel",
          "contentStrengths",
          "contentGaps",
          "strategy"
        ]
      },
      "BlogAiRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Run ID, for Get a run.",
            "examples": [
              "9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "autopilot_plan",
              "autopilot_cluster",
              "post_draft",
              "post_seo_pack",
              "post_followups",
              "post_editor_action",
              "post_voice_check",
              "post_link_suggestions",
              "post_seo_localise"
            ],
            "description": "What the run does: `post_draft`, `post_seo_pack`, `post_followups`, `post_editor_action` (editor actions and Refresh from analytics), `post_voice_check`, `post_link_suggestions` or `post_seo_localise` (a translation’s localized SEO).",
            "examples": [
              "post_editor_action"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`INPROGRESS`, then `DONE`, or `FAILED` with the reason in `error`.",
            "examples": [
              "DONE"
            ]
          },
          "model": {
            "type": "string",
            "description": "The AI model that ran it.",
            "examples": [
              "gpt-5.6-terra"
            ]
          },
          "reasoningEffort": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "How hard the model reasoned.",
            "examples": [
              "high"
            ]
          },
          "outputText": {
            "type": [
              "string",
              "null"
            ],
            "description": "The answer as Markdown, once `DONE`: for an editor action, the rewritten text to put into the post with Update a post. Null for runs that answer in `outputJson`.",
            "examples": [
              "## How much horsepower do you need?\n\nFor 2 to 20 acres, 25 to 50 hp covers mowing, loader work and light tillage."
            ]
          },
          "outputJson": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The answer as JSON, once `DONE`, for the SEO pack, follow-ups, link suggestions and checks. Their result is also saved where it belongs (the post’s `seo`, `followups`, `links`, or the check).",
            "examples": [
              null
            ]
          },
          "words": {
            "type": [
              "number",
              "null"
            ],
            "description": "Words the model wrote, once `DONE`: what the run is billed on.",
            "examples": [
              212
            ]
          },
          "credits": {
            "type": [
              "number",
              "null"
            ],
            "description": "Credits the run cost: its start charge, then the settled amount once it is done.",
            "examples": [
              106
            ]
          },
          "meta": {
            "type": "object",
            "additionalProperties": true,
            "description": "Details of the run, such as `action`, `instruction` and the start of `selection` for an editor action, and `languageCode`.",
            "examples": [
              {
                "action": "improve",
                "selection": "A compact tractor is the workhorse of a smallholding…",
                "languageCode": "en-US"
              }
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run failed. Null unless `status` is `FAILED`.",
            "examples": [
              null
            ]
          },
          "postId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The post the run is for.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run started.",
            "examples": [
              "2026-10-07T09:55:10.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run last changed.",
            "examples": [
              "2026-10-07T09:55:41.000Z"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "status",
          "model",
          "reasoningEffort",
          "outputText",
          "outputJson",
          "words",
          "credits",
          "meta",
          "error",
          "postId",
          "createdAt",
          "updatedAt"
        ]
      },
      "BlogAnalyticsSummaryDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "ga4",
              "gsc"
            ],
            "description": "`ga4` (Google Analytics 4) or `gsc` (Search Console).",
            "examples": [
              "gsc"
            ]
          },
          "totalSessions": {
            "type": "number",
            "description": "Google Analytics 4 only: sessions over the period.",
            "examples": [
              48210
            ]
          },
          "totalUsers": {
            "type": "number",
            "description": "Google Analytics 4 only: users over the period.",
            "examples": [
              39876
            ]
          },
          "totalClicks": {
            "type": "number",
            "description": "Search Console only: clicks over the period.",
            "examples": [
              3920
            ]
          },
          "totalImpressions": {
            "type": "number",
            "description": "Search Console only: impressions over the period.",
            "examples": [
              286400
            ]
          },
          "rowCount": {
            "type": "number",
            "description": "Rows synced: up to 250 pages from Google Analytics 4, or 500 queries from Search Console.",
            "examples": [
              500
            ]
          }
        },
        "required": [
          "source",
          "rowCount"
        ]
      },
      "BlogCadenceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Cadence ID. Null when the website has no cadence yet: the rest shows the defaults Set the cadence starts from.",
            "examples": [
              "3a4b5c6d-7e8f-4a9b-8c0d-1e2f3a4b5c6d"
            ]
          },
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the cadence is on: it plans the calendar and runs every day at `hour`.",
            "examples": [
              true
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "plan",
              "auto"
            ],
            "description": "`plan`: the calendar fills up with entries from the topic backlog, for you to write. `auto`: each entry is also written on its day, within `weeklyBudgetCredits`.",
            "examples": [
              "auto"
            ]
          },
          "settings": {
            "description": "The settings, with defaults filled in.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CadenceSettingsDto"
              }
            ]
          },
          "weekKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ISO week `weekSpentCredits` counts, such as `2026-W41`. Null before the first run.",
            "examples": [
              "2026-W41"
            ]
          },
          "weekSpentCredits": {
            "type": "number",
            "description": "Credits the cadence’s posts have cost in that week, against `weeklyBudgetCredits`.",
            "examples": [
              1290
            ]
          },
          "lastTickAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the cadence last ran. Null before its first run.",
            "examples": [
              "2026-10-07T14:00:03.000Z"
            ]
          },
          "nextTickAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the daily planning/retry check runs next, including unselected publishing days. Null while it is off.",
            "examples": [
              "2026-10-08T14:00:00.000Z"
            ]
          },
          "nextPublishAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The next future slot on a selected publishing weekday at the configured hour in the website’s timezone. It is a schedule slot, not a guarantee that a post exists or will publish. Null while cadence is off.",
            "examples": [
              "2026-10-12T03:30:00.000Z"
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last run stopped, in plain words. Null when it went well.",
            "examples": [
              null
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the cadence last changed. Null when there is none.",
            "examples": [
              "2026-10-07T14:00:03.000Z"
            ]
          }
        },
        "required": [
          "id",
          "siteId",
          "enabled",
          "mode",
          "settings",
          "weekKey",
          "weekSpentCredits",
          "lastTickAt",
          "nextTickAt",
          "nextPublishAt",
          "lastError",
          "updatedAt"
        ]
      },
      "BlogChargesDto": {
        "type": "object",
        "properties": {
          "items": {
            "description": "Every unit the start charges, exactly as it will charge them. Send them unchanged as `items` to Get a quote (`POST /v1/credits/quote`) for the price with your rates applied, and your balance. Empty when the start would charge nothing.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlogQuoteItemDto"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "BlogGoogleConnectionDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "connected",
              "error"
            ],
            "description": "`connected`, or `error` when the last sync failed (see `error`). Connect Google, and choose the property, in the Universe app.",
            "examples": [
              "connected"
            ]
          },
          "accountEmail": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Google account that granted access.",
            "examples": [
              "marketing@example.com"
            ]
          },
          "ga4PropertyId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Google Analytics 4 property the website reads, or null when none is chosen.",
            "examples": [
              "properties/312345678"
            ]
          },
          "ga4PropertyName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of that property.",
            "examples": [
              "Acme Tractors – GA4"
            ]
          },
          "gscSiteUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Search Console property the website reads, or null when none is chosen.",
            "examples": [
              "sc-domain:example.com"
            ]
          },
          "scopes": {
            "description": "The Google scopes that were granted.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "https://www.googleapis.com/auth/analytics.readonly",
                "https://www.googleapis.com/auth/webmasters.readonly"
              ]
            ]
          },
          "connectedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When Google was connected.",
            "examples": [
              "2026-09-21T08:12:44.000Z"
            ]
          },
          "lastSyncedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When analytics were last synced. They sync every day; null before the first sync.",
            "examples": [
              "2026-10-07T04:00:12.000Z"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last sync failed, or null.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "status",
          "accountEmail",
          "ga4PropertyId",
          "ga4PropertyName",
          "gscSiteUrl",
          "scopes",
          "connectedAt",
          "lastSyncedAt",
          "error"
        ]
      },
      "BlogPostDto": {
        "type": "object",
        "properties": {
          "publicAttribution": {
            "description": "Saved public authors and publisher for this language/version. Null when unset; not inferred from members or source-language metadata.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Post ID.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "siteId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The website it is written for. Null for a post written before your organization had a website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "topicId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The topic it was written from, or null.",
            "examples": [
              null
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member ID of the author: the member who wrote it, or who created the API key that did.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title. A title you sent is kept word for word; without one, the draft’s own title is used once it is written.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "slug": {
            "type": "string",
            "description": "The URL slug, from the title or the SEO pack.",
            "examples": [
              "how-to-choose-a-compact-tractor"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "generating",
              "failed",
              "draft",
              "in_review",
              "ready",
              "published",
              "archived"
            ],
            "description": "`generating` → `draft` (or `failed`). Then `in_review` → `ready` through the review routes, and `published` or `archived` with Update a post.",
            "examples": [
              "draft"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "The language it is written in: a BCP-47 code.",
            "examples": [
              "en-US"
            ]
          },
          "seo": {
            "description": "The SEO pack. Null until it is written.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "heroImage": {
            "description": "The hero image. Null until there is one.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostHeroImageDto"
              }
            ]
          },
          "heroImageStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "queued",
              "generating",
              "done",
              "failed"
            ],
            "description": "Where the hero image is: `queued` (waiting for the draft), `generating`, `done`, or `failed` (see `heroImageError`). Null when none was asked for.",
            "examples": [
              null
            ]
          },
          "heroImageError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last hero image failed, or null.",
            "examples": [
              null
            ]
          },
          "context": {
            "description": "What the post was written from.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostGenerationContextDto"
              }
            ]
          },
          "model": {
            "type": "string",
            "description": "The AI model that wrote it: your organization’s Blog model in its provider preferences (in the Universe app).",
            "examples": [
              "gpt-5.6-terra"
            ]
          },
          "reasoningEffort": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "How hard the model reasoned, from the same preferences.",
            "examples": [
              "high"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in the text, counted in its language.",
            "examples": [
              1540
            ]
          },
          "versionCount": {
            "type": "number",
            "description": "The current version: every save that changes the title, the text or the SEO pack adds one. Send it as `expectedVersion` to Update a post.",
            "examples": [
              3
            ]
          },
          "activeVersionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The version the post shows (see List versions).",
            "examples": [
              "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "Credits the post has cost so far: its draft, SEO pack, follow-ups, AI actions, hero images and translations, each counted once settled.",
            "examples": [
              1125
            ]
          },
          "publishedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the post is live, as you set it with Update a post. Feeds structured data, hreflang links and analytics.",
            "examples": [
              null
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was first marked `published`, or null.",
            "examples": [
              null
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project it is filed in, or null.",
            "examples": [
              null
            ]
          },
          "reviewerMemberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member asked to review it. Null when anyone who may review can decide, or when it was never sent for review.",
            "examples": [
              null
            ]
          },
          "reviewerMemberIds": {
            "description": "All reviewers; empty means anyone who can review.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
              ]
            ]
          },
          "reviewNote": {
            "type": [
              "string",
              "null"
            ],
            "description": "The latest review note: the author’s note to the reviewer, or the reviewer’s note back.",
            "examples": [
              null
            ]
          },
          "reviewRequestedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was last sent for review, or null.",
            "examples": [
              null
            ]
          },
          "reviewedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a reviewer last approved it or sent it back, or null. Editing an approved post clears it.",
            "examples": [
              null
            ]
          },
          "links": {
            "description": "Internal link suggestions from Suggest internal links, applied ones included. Empty when there are none.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostLinkDto"
            }
          },
          "seoScoreValue": {
            "type": "number",
            "description": "The on-page SEO score, from 0 to 100. Get a post returns its checks in `seoScore`.",
            "examples": [
              86
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the draft failed, or the latest SEO pack, follow-up or link run that failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post was created.",
            "examples": [
              "2026-10-07T09:38:02.441Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post last changed.",
            "examples": [
              "2026-10-07T09:41:12.301Z"
            ]
          },
          "contentHtml": {
            "type": [
              "string",
              "null"
            ],
            "description": "The post as HTML: headings, paragraphs, lists, links, images and tables. Null while the first draft is written. Publish this, or `contentMarkdown`.",
            "examples": [
              "<p>A compact tractor is the workhorse of a smallholding…</p><h2>How much horsepower do you need?</h2><p>For 2 to 20 acres, 25 to 50 hp covers mowing, loader work and light tillage.</p>"
            ]
          },
          "contentMarkdown": {
            "type": [
              "string",
              "null"
            ],
            "description": "The same post as Markdown, kept in step with `contentHtml`. Null while the first draft is written.",
            "examples": [
              "A compact tractor is the workhorse of a smallholding…\n\n## How much horsepower do you need?\n\nFor 2 to 20 acres, 25 to 50 hp covers mowing, loader work and light tillage."
            ]
          },
          "seoScore": {
            "description": "The on-page SEO score and its 13 checks, computed on every read.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoScoreDto"
              }
            ]
          },
          "runs": {
            "description": "Every AI run made for the post, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlogAiRunDto"
            }
          },
          "pending": {
            "description": "Work still running on the post. Poll Get a post until every flag is `false`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostPendingDto"
              }
            ]
          },
          "followups": {
            "description": "The topics suggested to write next, for a post on a website. Dismissed ones are left out.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostFollowupDto"
            }
          }
        },
        "required": [
          "publicAttribution",
          "id",
          "siteId",
          "topicId",
          "memberId",
          "title",
          "slug",
          "status",
          "sourceLanguage",
          "seo",
          "heroImage",
          "heroImageStatus",
          "heroImageError",
          "context",
          "model",
          "reasoningEffort",
          "wordCount",
          "versionCount",
          "activeVersionId",
          "totalCredits",
          "publishedUrl",
          "publishedAt",
          "projectId",
          "reviewerMemberId",
          "reviewerMemberIds",
          "reviewNote",
          "reviewRequestedAt",
          "reviewedAt",
          "links",
          "seoScoreValue",
          "error",
          "createdAt",
          "updatedAt",
          "contentHtml",
          "contentMarkdown",
          "seoScore",
          "runs",
          "pending",
          "followups"
        ]
      },
      "BlogPostListDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Posts that match, on all pages of the list.",
            "examples": [
              42
            ]
          },
          "projects": {
            "type": "boolean",
            "description": "Whether posts can be filed in projects on this server: when `false`, `projectId` filters and Move a post to a project are not available.",
            "examples": [
              true
            ]
          },
          "items": {
            "description": "This page of posts, most recently changed first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlogPostListItemDto"
            }
          }
        },
        "required": [
          "total",
          "projects",
          "items"
        ]
      },
      "BlogPostListItemDto": {
        "type": "object",
        "properties": {
          "publicAttribution": {
            "description": "Saved public authors and publisher for this language/version. Null when unset; not inferred from members or source-language metadata.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Post ID.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "siteId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The website it is written for. Null for a post written before your organization had a website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "topicId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The topic it was written from, or null.",
            "examples": [
              null
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member ID of the author: the member who wrote it, or who created the API key that did.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title. A title you sent is kept word for word; without one, the draft’s own title is used once it is written.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "slug": {
            "type": "string",
            "description": "The URL slug, from the title or the SEO pack.",
            "examples": [
              "how-to-choose-a-compact-tractor"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "generating",
              "failed",
              "draft",
              "in_review",
              "ready",
              "published",
              "archived"
            ],
            "description": "`generating` → `draft` (or `failed`). Then `in_review` → `ready` through the review routes, and `published` or `archived` with Update a post.",
            "examples": [
              "draft"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "The language it is written in: a BCP-47 code.",
            "examples": [
              "en-US"
            ]
          },
          "seo": {
            "description": "The SEO pack. Null until it is written.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "heroImage": {
            "description": "The hero image. Null until there is one.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostHeroImageDto"
              }
            ]
          },
          "heroImageStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "queued",
              "generating",
              "done",
              "failed"
            ],
            "description": "Where the hero image is: `queued` (waiting for the draft), `generating`, `done`, or `failed` (see `heroImageError`). Null when none was asked for.",
            "examples": [
              null
            ]
          },
          "heroImageError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last hero image failed, or null.",
            "examples": [
              null
            ]
          },
          "context": {
            "description": "What the post was written from.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostGenerationContextDto"
              }
            ]
          },
          "model": {
            "type": "string",
            "description": "The AI model that wrote it: your organization’s Blog model in its provider preferences (in the Universe app).",
            "examples": [
              "gpt-5.6-terra"
            ]
          },
          "reasoningEffort": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "How hard the model reasoned, from the same preferences.",
            "examples": [
              "high"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in the text, counted in its language.",
            "examples": [
              1540
            ]
          },
          "versionCount": {
            "type": "number",
            "description": "The current version: every save that changes the title, the text or the SEO pack adds one. Send it as `expectedVersion` to Update a post.",
            "examples": [
              3
            ]
          },
          "activeVersionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The version the post shows (see List versions).",
            "examples": [
              "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "Credits the post has cost so far: its draft, SEO pack, follow-ups, AI actions, hero images and translations, each counted once settled.",
            "examples": [
              1125
            ]
          },
          "publishedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the post is live, as you set it with Update a post. Feeds structured data, hreflang links and analytics.",
            "examples": [
              null
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was first marked `published`, or null.",
            "examples": [
              null
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project it is filed in, or null.",
            "examples": [
              null
            ]
          },
          "reviewerMemberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member asked to review it. Null when anyone who may review can decide, or when it was never sent for review.",
            "examples": [
              null
            ]
          },
          "reviewerMemberIds": {
            "description": "All reviewers; empty means anyone who can review.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
              ]
            ]
          },
          "reviewNote": {
            "type": [
              "string",
              "null"
            ],
            "description": "The latest review note: the author’s note to the reviewer, or the reviewer’s note back.",
            "examples": [
              null
            ]
          },
          "reviewRequestedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was last sent for review, or null.",
            "examples": [
              null
            ]
          },
          "reviewedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a reviewer last approved it or sent it back, or null. Editing an approved post clears it.",
            "examples": [
              null
            ]
          },
          "links": {
            "description": "Internal link suggestions from Suggest internal links, applied ones included. Empty when there are none.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostLinkDto"
            }
          },
          "seoScoreValue": {
            "type": "number",
            "description": "The on-page SEO score, from 0 to 100. Get a post returns its checks in `seoScore`.",
            "examples": [
              86
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the draft failed, or the latest SEO pack, follow-up or link run that failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post was created.",
            "examples": [
              "2026-10-07T09:38:02.441Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post last changed.",
            "examples": [
              "2026-10-07T09:41:12.301Z"
            ]
          },
          "assignees": {
            "description": "Members assigned to work on the post.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostAssigneeDto"
            }
          }
        },
        "required": [
          "publicAttribution",
          "id",
          "siteId",
          "topicId",
          "memberId",
          "title",
          "slug",
          "status",
          "sourceLanguage",
          "seo",
          "heroImage",
          "heroImageStatus",
          "heroImageError",
          "context",
          "model",
          "reasoningEffort",
          "wordCount",
          "versionCount",
          "activeVersionId",
          "totalCredits",
          "publishedUrl",
          "publishedAt",
          "projectId",
          "reviewerMemberId",
          "reviewerMemberIds",
          "reviewNote",
          "reviewRequestedAt",
          "reviewedAt",
          "links",
          "seoScoreValue",
          "error",
          "createdAt",
          "updatedAt",
          "assignees"
        ]
      },
      "BlogPostSummaryDto": {
        "type": "object",
        "properties": {
          "publicAttribution": {
            "description": "Saved public authors and publisher for this language/version. Null when unset; not inferred from members or source-language metadata.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Post ID.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "siteId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The website it is written for. Null for a post written before your organization had a website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "topicId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The topic it was written from, or null.",
            "examples": [
              null
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member ID of the author: the member who wrote it, or who created the API key that did.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title. A title you sent is kept word for word; without one, the draft’s own title is used once it is written.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "slug": {
            "type": "string",
            "description": "The URL slug, from the title or the SEO pack.",
            "examples": [
              "how-to-choose-a-compact-tractor"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "generating",
              "failed",
              "draft",
              "in_review",
              "ready",
              "published",
              "archived"
            ],
            "description": "`generating` → `draft` (or `failed`). Then `in_review` → `ready` through the review routes, and `published` or `archived` with Update a post.",
            "examples": [
              "draft"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "The language it is written in: a BCP-47 code.",
            "examples": [
              "en-US"
            ]
          },
          "seo": {
            "description": "The SEO pack. Null until it is written.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "heroImage": {
            "description": "The hero image. Null until there is one.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostHeroImageDto"
              }
            ]
          },
          "heroImageStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "queued",
              "generating",
              "done",
              "failed"
            ],
            "description": "Where the hero image is: `queued` (waiting for the draft), `generating`, `done`, or `failed` (see `heroImageError`). Null when none was asked for.",
            "examples": [
              null
            ]
          },
          "heroImageError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last hero image failed, or null.",
            "examples": [
              null
            ]
          },
          "context": {
            "description": "What the post was written from.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostGenerationContextDto"
              }
            ]
          },
          "model": {
            "type": "string",
            "description": "The AI model that wrote it: your organization’s Blog model in its provider preferences (in the Universe app).",
            "examples": [
              "gpt-5.6-terra"
            ]
          },
          "reasoningEffort": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "How hard the model reasoned, from the same preferences.",
            "examples": [
              "high"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in the text, counted in its language.",
            "examples": [
              1540
            ]
          },
          "versionCount": {
            "type": "number",
            "description": "The current version: every save that changes the title, the text or the SEO pack adds one. Send it as `expectedVersion` to Update a post.",
            "examples": [
              3
            ]
          },
          "activeVersionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The version the post shows (see List versions).",
            "examples": [
              "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "Credits the post has cost so far: its draft, SEO pack, follow-ups, AI actions, hero images and translations, each counted once settled.",
            "examples": [
              1125
            ]
          },
          "publishedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the post is live, as you set it with Update a post. Feeds structured data, hreflang links and analytics.",
            "examples": [
              null
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was first marked `published`, or null.",
            "examples": [
              null
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project it is filed in, or null.",
            "examples": [
              null
            ]
          },
          "reviewerMemberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member asked to review it. Null when anyone who may review can decide, or when it was never sent for review.",
            "examples": [
              null
            ]
          },
          "reviewerMemberIds": {
            "description": "All reviewers; empty means anyone who can review.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
              ]
            ]
          },
          "reviewNote": {
            "type": [
              "string",
              "null"
            ],
            "description": "The latest review note: the author’s note to the reviewer, or the reviewer’s note back.",
            "examples": [
              null
            ]
          },
          "reviewRequestedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was last sent for review, or null.",
            "examples": [
              null
            ]
          },
          "reviewedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a reviewer last approved it or sent it back, or null. Editing an approved post clears it.",
            "examples": [
              null
            ]
          },
          "links": {
            "description": "Internal link suggestions from Suggest internal links, applied ones included. Empty when there are none.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostLinkDto"
            }
          },
          "seoScoreValue": {
            "type": "number",
            "description": "The on-page SEO score, from 0 to 100. Get a post returns its checks in `seoScore`.",
            "examples": [
              86
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the draft failed, or the latest SEO pack, follow-up or link run that failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post was created.",
            "examples": [
              "2026-10-07T09:38:02.441Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post last changed.",
            "examples": [
              "2026-10-07T09:41:12.301Z"
            ]
          }
        },
        "required": [
          "publicAttribution",
          "id",
          "siteId",
          "topicId",
          "memberId",
          "title",
          "slug",
          "status",
          "sourceLanguage",
          "seo",
          "heroImage",
          "heroImageStatus",
          "heroImageError",
          "context",
          "model",
          "reasoningEffort",
          "wordCount",
          "versionCount",
          "activeVersionId",
          "totalCredits",
          "publishedUrl",
          "publishedAt",
          "projectId",
          "reviewerMemberId",
          "reviewerMemberIds",
          "reviewNote",
          "reviewRequestedAt",
          "reviewedAt",
          "links",
          "seoScoreValue",
          "error",
          "createdAt",
          "updatedAt"
        ]
      },
      "BlogQuoteItemDto": {
        "type": "object",
        "properties": {
          "feature": {
            "type": "string",
            "description": "The `feature` of the rate the unit is charged under, as List rates names it: `blog.post`, `blog.translation` or `blog.autopilot`, or `translate_photo.playground_video` for a recording.",
            "examples": [
              "blog.post"
            ]
          },
          "operation": {
            "type": "string",
            "description": "The `operation` of that rate: `generate`, `seo_pack`, `followups`, `editor_action`, `voice_check`, `internal_links` or `hero_image` (`blog.post`), `translate` or `seo_localise` (`blog.translation`), `analyze` (`blog.autopilot`), or `text_to_speech` (a recording).",
            "examples": [
              "generate"
            ]
          },
          "quantity": {
            "type": "number",
            "description": "How many units of the rate: words for text, `1` for a hero image, seconds of speech for a recording.",
            "examples": [
              1500
            ]
          }
        },
        "required": [
          "feature",
          "operation",
          "quantity"
        ]
      },
      "BlogRecordingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Recording ID.",
            "examples": [
              "b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e"
            ]
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "description": "The post.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "translationId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation read aloud. Null for a recording of the post in its own language.",
            "examples": [
              "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "languageCode": {
            "type": "string",
            "description": "The language read: the post’s or the translation’s BCP-47 code. A post has one recording per language.",
            "examples": [
              "fr-FR"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`SCHEDULED`, then `RUNNING`, then `COMPLETED`; or `FAILED`, with the reason in `error`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "voice": {
            "description": "The voice that reads it.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogVoiceDto"
              }
            ]
          },
          "ttsSessionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The text-to-speech session the recording was made in; it also opens on the Text-to-Speech page of the Universe app.",
            "examples": [
              "c8d9e0f1-a2b3-4c4d-9e5f-6a7b8c9d0e1f"
            ]
          },
          "cardCount": {
            "type": "number",
            "description": "How many speech cards the text was split into. Each card is charged on its own.",
            "examples": [
              6
            ]
          },
          "durationSeconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Length of the recording in seconds, once `done`.",
            "examples": [
              464.2
            ]
          },
          "characters": {
            "type": "number",
            "description": "Characters of text read: the title, then the body.",
            "examples": [
              9840
            ]
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The copy of the recording in your organization’s assets (in `blog/audio`), once it is saved there.",
            "examples": [
              "8c9d0e1f-2a3b-4c4d-9e5f-6a7b8c9d0e1f"
            ]
          },
          "sourceVersion": {
            "type": [
              "number",
              "null"
            ],
            "description": "The post’s `versionCount` (for a translation, its `sourceVersion`) the recording was made from.",
            "examples": [
              3
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "A link to play the audio, valid for one hour. Present once `done`; get a fresh one with Get a recording.",
            "examples": [
              "https://storage.example.com/blog/audio/5e8d1c2b-fr-FR.mp3?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "downloadUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The same audio as a download with a file name, valid for one hour. Present once `done`.",
            "examples": [
              "https://storage.example.com/blog/audio/5e8d1c2b-fr-FR.mp3?response-content-disposition=attachment&X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the recording failed. Null unless `status` is `failed`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the recording was started.",
            "examples": [
              "2026-10-07T11:20:31.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the recording last changed.",
            "examples": [
              "2026-10-07T11:23:02.000Z"
            ]
          }
        },
        "required": [
          "id",
          "postId",
          "translationId",
          "languageCode",
          "status",
          "voice",
          "ttsSessionId",
          "cardCount",
          "durationSeconds",
          "characters",
          "assetId",
          "sourceVersion",
          "url",
          "downloadUrl",
          "error",
          "createdAt",
          "updatedAt"
        ]
      },
      "BlogSiteDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Website ID. Send it as `siteId` when you write posts for it.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name. Defaults to the domain.",
            "examples": [
              "Acme Tractors"
            ]
          },
          "websiteUrl": {
            "type": "string",
            "description": "The website, normalized to its `https://` origin and path, without a trailing slash.",
            "examples": [
              "https://example.com/blog"
            ]
          },
          "domain": {
            "type": "string",
            "description": "The host of `websiteUrl`.",
            "examples": [
              "example.com"
            ]
          },
          "sitemapUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sitemap Autopilot audits, or null to discover it on the first run.",
            "examples": [
              "https://example.com/sitemap.xml"
            ]
          },
          "nicheSummary": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the last Autopilot run understood the website to be about. Drafts use it to write for the right audience. Null before the first run.",
            "examples": [
              "Compact and utility tractors for smallholders and small farms in North America."
            ]
          },
          "defaults": {
            "description": "Defaults for the website’s posts, Autopilot runs, translations, reviews and recordings. Only the keys that were set are present.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SiteDefaultsDto"
              }
            ]
          },
          "analytics": {
            "description": "The analytics connection. Google’s tokens are never returned.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SiteAnalyticsDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the website was added.",
            "examples": [
              "2026-09-21T08:05:10.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the website last changed.",
            "examples": [
              "2026-10-07T04:00:12.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "websiteUrl",
          "domain",
          "sitemapUrl",
          "nicheSummary",
          "defaults",
          "analytics",
          "createdAt",
          "updatedAt"
        ]
      },
      "BlogTopicDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Topic ID. Write a post takes it as `topicId`.",
            "examples": [
              "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
            ]
          },
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website the topic is for.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "runId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The Autopilot run that suggested it. Null for a topic from elsewhere (`source`).",
            "examples": [
              "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
            ]
          },
          "clusterId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The keyword cluster it belongs to. Null for a topic not from an Autopilot run.",
            "examples": [
              "4e5f6071-8293-4a4b-b5c6-d7e8f9012345"
            ]
          },
          "clusterName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The cluster's name. Null without a cluster.",
            "examples": [
              "Compact tractor buying guides"
            ]
          },
          "gapType": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missing",
              "thin",
              "refresh",
              "competitive",
              "new_niche"
            ],
            "description": "The cluster's gap type (see Get an Autopilot run). Null without a cluster.",
            "examples": [
              "missing"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title to publish the post under.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "targetKeyword": {
            "type": "string",
            "description": "The search phrase the post should rank for.",
            "examples": [
              "how to choose a compact tractor"
            ]
          },
          "secondaryKeywords": {
            "description": "Supporting keywords. Empty when there are none.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "compact tractor buying guide",
                "compact tractor horsepower"
              ]
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "informational",
              "commercial",
              "transactional",
              "navigational"
            ],
            "description": "The search intent the post serves.",
            "examples": [
              "commercial"
            ]
          },
          "contentType": {
            "type": [
              "string",
              "null"
            ],
            "description": "The kind of post, such as `how-to`, `listicle`, `comparison`, `guide`, `explainer` or `checklist`. Null when not set.",
            "examples": [
              "guide"
            ]
          },
          "funnelStage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The stage of the buying journey it serves: `awareness`, `consideration` or `decision`. Null when not set.",
            "examples": [
              "consideration"
            ]
          },
          "difficulty": {
            "type": [
              "number",
              "null"
            ],
            "description": "Estimated keyword difficulty, from 1 to 100 (100 is hardest). Null when not estimated.",
            "examples": [
              38
            ]
          },
          "opportunity": {
            "type": "number",
            "description": "Estimated opportunity for this website, from 1 to 100. Lists sort by it, highest first. 50 for a topic added with Add a topic.",
            "examples": [
              88
            ]
          },
          "aeoAngle": {
            "type": [
              "string",
              "null"
            ],
            "description": "How to win the answer box and AI overviews: the question to answer first, and the shape of the answer. Null when not set.",
            "examples": [
              "Answer first in one paragraph: match horsepower and hitch category to your acreage and the attachments you will run."
            ]
          },
          "geoAngle": {
            "type": [
              "string",
              "null"
            ],
            "description": "How to get the post cited by AI assistants and AI search: the terms to define, the sources to cite, the structure to use. Null when not set.",
            "examples": [
              "Define horsepower classes, hitch categories and PTO types in plain terms, and cite the manufacturer spec sheets."
            ]
          },
          "suggestedWordCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Suggested length in words. Write a post uses it when the request sends no `targetWordCount`. Null when not set.",
            "examples": [
              1500
            ]
          },
          "outline": {
            "description": "Suggested sections, in order. Write a post follows them. Null when there is no outline.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/TopicOutlineSectionDto"
            }
          },
          "rationale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the topic is worth writing. The calendar uses it as the brief of the entries it makes from the topic. Null when not given.",
            "examples": [
              "High-intent search with no matching page on the website; it leads straight to the product pages."
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "autopilot",
              "analytics",
              "followup",
              "manual"
            ],
            "description": "`autopilot`: suggested by an Autopilot run. `followup`: suggested under a finished post (`sourcePostId`). `analytics`: a search people already make, added from the website’s analytics. `manual`: added with Add a topic.",
            "examples": [
              "autopilot"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "suggested",
              "in_progress",
              "written",
              "dismissed"
            ],
            "description": "`suggested`: in the backlog, ready to write. `in_progress`: a post is being written from it (`postId`). `written`: the draft of its post is done. `dismissed`: hidden with Dismiss or restore a topic.",
            "examples": [
              "suggested"
            ]
          },
          "postId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The post written, or being written, from the topic. Null while nobody has written it.",
            "examples": [
              null
            ]
          },
          "sourcePostId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a `followup` topic, the post it was suggested under. Null otherwise.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the topic was added.",
            "examples": [
              "2026-09-28T15:11:36.000Z"
            ]
          }
        },
        "required": [
          "id",
          "siteId",
          "runId",
          "clusterId",
          "clusterName",
          "gapType",
          "title",
          "targetKeyword",
          "secondaryKeywords",
          "intent",
          "contentType",
          "funnelStage",
          "difficulty",
          "opportunity",
          "aeoAngle",
          "geoAngle",
          "suggestedWordCount",
          "outline",
          "rationale",
          "source",
          "status",
          "postId",
          "sourcePostId",
          "createdAt"
        ]
      },
      "BlogTopicListDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Topics that match, on all pages of the list.",
            "examples": [
              57
            ]
          },
          "items": {
            "description": "This page of topics, highest `opportunity` first, then newest.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlogTopicDto"
            }
          }
        },
        "required": [
          "total",
          "items"
        ]
      },
      "BlogTranslationDto": {
        "type": "object",
        "properties": {
          "publicAttribution": {
            "description": "Saved public authors and publisher for this language/version. Null when unset; not inferred from members or source-language metadata.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Translation ID. A language keeps its ID when the post is translated into it again.",
            "examples": [
              "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "description": "The post it translates.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "languageCode": {
            "type": "string",
            "description": "The language of this version: a BCP-47 `code` from List languages (Platform API). A post has one translation per language.",
            "examples": [
              "fr-FR"
            ]
          },
          "languageLabel": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language's name in the language catalog. Null when it could not be looked up.",
            "examples": [
              "French (France)"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`SCHEDULED`, then `RUNNING`, then `COMPLETED`; or `FAILED`, with the reason in `error`. One still `SCHEDULED` or `RUNNING` after 3 hours is failed and refunded. While it is `SCHEDULED` or `RUNNING`, a translation cannot be edited, synced, deleted or translated again.",
            "examples": [
              "COMPLETED"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The translated title. Null until the language is first translated. While it is translated again, the previous title stays until the new one is done.",
            "examples": [
              "Comment choisir un tracteur compact"
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL slug of this language version, in lowercase ASCII. It is made from the translated title; a title in a script without Latin letters (such as Hindi) keeps the post's slug unless the localized SEO pass proposes one. Null until the language is first translated.",
            "examples": [
              "comment-choisir-un-tracteur-compact"
            ]
          },
          "seo": {
            "description": "The translated SEO pack: the post's pack translated through the memory, then rewritten by the localized SEO pass (meta title, meta description, focus keyword, keywords and slug written for searchers in this language) unless the website turns `localiseSeo` off. Null when the post has no SEO pack, or until the language is first translated.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation memory this version is translated through, and syncs with (`id` from List translation memories in the Translation Memory API).",
            "examples": [
              "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
            ]
          },
          "sourceVersion": {
            "type": [
              "number",
              "null"
            ],
            "description": "The post's `versionCount` when this language was last translated. When Get a post shows a higher `versionCount`, the post changed since: Translate again brings this language up to date. Null until the language is first translated.",
            "examples": [
              3
            ]
          },
          "words": {
            "type": "number",
            "description": "Source words the last translation was charged for: the post's title, text and SEO pack, counted as Price a translation counts them. 0 until the language is first translated.",
            "examples": [
              1687
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in the translated text (the body, without the title), counted in its language. Updated when the text is edited.",
            "examples": [
              1734
            ]
          },
          "generationId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Changes whenever the text of this version changes: a new translation, an edit of its title, text or SEO pack, or a Sync from the translation memory.",
            "examples": [
              "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e"
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits the last finished translation of this language cost, once settled: its source words, plus the localized SEO pass when that has settled. 0 until the language is first translated.",
            "examples": [
              891
            ]
          },
          "publishedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where this language version is live, as set with Update a translation. The post's hreflang links are built from these. Null when not set.",
            "examples": [
              "https://example.com/fr/blog/comment-choisir-un-tracteur-compact"
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `publishedUrl` was first set. Null while there is none.",
            "examples": [
              "2026-10-07T11:02:45.000Z"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last translation failed, in plain words. Null unless `status` is `failed`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post was first translated into this language.",
            "examples": [
              "2026-10-07T09:41:12.318Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When this version last changed. Send it as `expectedUpdatedAt` to Update a translation or Sync from the translation memory to be refused (409) instead of overwriting a newer change.",
            "examples": [
              "2026-10-07T09:44:03.512Z"
            ]
          }
        },
        "required": [
          "publicAttribution",
          "id",
          "postId",
          "languageCode",
          "languageLabel",
          "status",
          "title",
          "slug",
          "seo",
          "tmId",
          "sourceVersion",
          "words",
          "wordCount",
          "generationId",
          "credits",
          "publishedUrl",
          "publishedAt",
          "error",
          "createdAt",
          "updatedAt"
        ]
      },
      "BlogTranslationVersionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Immutable saved version ID.",
            "examples": [
              "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e"
            ]
          },
          "version": {
            "type": "number",
            "description": "Sequential saved version within this translation.",
            "examples": [
              3
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "existing",
              "translated",
              "edited",
              "seo_or_tm",
              "restored"
            ],
            "description": "How this snapshot was saved. Existing denotes the baseline when history was introduced.",
            "examples": [
              "edited"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional version note; null when no note was supplied.",
            "examples": [
              null
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Saved title in this translation’s language.",
            "examples": [
              "Comment choisir un tracteur compact"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in this version’s saved body, counted by the platform word counter in its language.",
            "examples": [
              1734
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "When this immutable version was saved.",
            "examples": [
              "2026-10-11T00:00:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "version",
          "source",
          "note",
          "title",
          "wordCount",
          "createdAt"
        ]
      },
      "BlogTranslationWithContentDto": {
        "type": "object",
        "properties": {
          "publicAttribution": {
            "description": "Saved public authors and publisher for this language/version. Null when unset; not inferred from members or source-language metadata.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Translation ID. A language keeps its ID when the post is translated into it again.",
            "examples": [
              "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "description": "The post it translates.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "languageCode": {
            "type": "string",
            "description": "The language of this version: a BCP-47 `code` from List languages (Platform API). A post has one translation per language.",
            "examples": [
              "fr-FR"
            ]
          },
          "languageLabel": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language's name in the language catalog. Null when it could not be looked up.",
            "examples": [
              "French (France)"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`SCHEDULED`, then `RUNNING`, then `COMPLETED`; or `FAILED`, with the reason in `error`. One still `SCHEDULED` or `RUNNING` after 3 hours is failed and refunded. While it is `SCHEDULED` or `RUNNING`, a translation cannot be edited, synced, deleted or translated again.",
            "examples": [
              "COMPLETED"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The translated title. Null until the language is first translated. While it is translated again, the previous title stays until the new one is done.",
            "examples": [
              "Comment choisir un tracteur compact"
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL slug of this language version, in lowercase ASCII. It is made from the translated title; a title in a script without Latin letters (such as Hindi) keeps the post's slug unless the localized SEO pass proposes one. Null until the language is first translated.",
            "examples": [
              "comment-choisir-un-tracteur-compact"
            ]
          },
          "seo": {
            "description": "The translated SEO pack: the post's pack translated through the memory, then rewritten by the localized SEO pass (meta title, meta description, focus keyword, keywords and slug written for searchers in this language) unless the website turns `localiseSeo` off. Null when the post has no SEO pack, or until the language is first translated.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation memory this version is translated through, and syncs with (`id` from List translation memories in the Translation Memory API).",
            "examples": [
              "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
            ]
          },
          "sourceVersion": {
            "type": [
              "number",
              "null"
            ],
            "description": "The post's `versionCount` when this language was last translated. When Get a post shows a higher `versionCount`, the post changed since: Translate again brings this language up to date. Null until the language is first translated.",
            "examples": [
              3
            ]
          },
          "words": {
            "type": "number",
            "description": "Source words the last translation was charged for: the post's title, text and SEO pack, counted as Price a translation counts them. 0 until the language is first translated.",
            "examples": [
              1687
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in the translated text (the body, without the title), counted in its language. Updated when the text is edited.",
            "examples": [
              1734
            ]
          },
          "generationId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Changes whenever the text of this version changes: a new translation, an edit of its title, text or SEO pack, or a Sync from the translation memory.",
            "examples": [
              "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e"
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits the last finished translation of this language cost, once settled: its source words, plus the localized SEO pass when that has settled. 0 until the language is first translated.",
            "examples": [
              891
            ]
          },
          "publishedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where this language version is live, as set with Update a translation. The post's hreflang links are built from these. Null when not set.",
            "examples": [
              "https://example.com/fr/blog/comment-choisir-un-tracteur-compact"
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `publishedUrl` was first set. Null while there is none.",
            "examples": [
              "2026-10-07T11:02:45.000Z"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last translation failed, in plain words. Null unless `status` is `failed`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the post was first translated into this language.",
            "examples": [
              "2026-10-07T09:41:12.318Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When this version last changed. Send it as `expectedUpdatedAt` to Update a translation or Sync from the translation memory to be refused (409) instead of overwriting a newer change.",
            "examples": [
              "2026-10-07T09:44:03.512Z"
            ]
          },
          "contentHtml": {
            "type": [
              "string",
              "null"
            ],
            "description": "The translated text as HTML, with the post's markup kept. Null until the language is first translated. While it is translated again, the previous text stays until the new one is done.",
            "examples": [
              "<h2>De quelle puissance avez-vous besoin ?</h2><p>Pour la plupart des petites exploitations, 25 à 50 ch suffisent.</p>"
            ]
          }
        },
        "required": [
          "publicAttribution",
          "id",
          "postId",
          "languageCode",
          "languageLabel",
          "status",
          "title",
          "slug",
          "seo",
          "tmId",
          "sourceVersion",
          "words",
          "wordCount",
          "generationId",
          "credits",
          "publishedUrl",
          "publishedAt",
          "error",
          "createdAt",
          "updatedAt",
          "contentHtml"
        ]
      },
      "BlogVoiceDto": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "elevenlabs",
              "cartesia",
              "microsoft"
            ],
            "description": "Provider that speaks with the voice: `provider` of a voice from List voices in the Video Dubbing API.",
            "examples": [
              "cartesia"
            ]
          },
          "voiceId": {
            "type": "string",
            "description": "The voice's ID at its provider: `providerVoiceId` of that voice.",
            "examples": [
              "6ccbfb76-1fc6-48f7-b71d-91ac6298247b"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the voice.",
            "examples": [
              "tessa"
            ]
          },
          "gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gender of the voice, as the catalog gives it.",
            "examples": [
              "female"
            ]
          },
          "voiceType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of voice, as the catalog gives it (for example `standard` or `cloned`).",
            "examples": [
              "standard"
            ]
          },
          "emotion": {
            "type": [
              "string",
              "null"
            ],
            "description": "Delivery emotion, for providers that support it.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "provider",
          "voiceId",
          "name",
          "gender",
          "voiceType",
          "emotion"
        ]
      },
      "BlogWebhookCreatedDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Webhook ID.",
            "examples": [
              "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5e"
            ]
          },
          "siteId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The website whose events it receives. Null: every website of your organization, and posts that belong to no website.",
            "examples": [
              null
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member ID of the member who registered it. With an API key, the member who created the key.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "url": {
            "type": "string",
            "description": "Your endpoint, where every delivery is sent.",
            "examples": [
              "https://hooks.example.com/vitra"
            ]
          },
          "secretHint": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last four characters of the signing secret, so you can tell which secret the webhook signs with. The full secret is only in the response of Register a webhook. `null` if the server cannot read the secret right now.",
            "examples": [
              "5b7d"
            ]
          },
          "events": {
            "type": "array",
            "description": "The events it receives, without duplicates, in the order of the event list.",
            "items": {
              "type": "string",
              "enum": [
                "post.generated",
                "post.failed",
                "post.review_requested",
                "post.approved",
                "post.published",
                "translation.done",
                "translation.failed",
                "audio.done",
                "autopilot.finished",
                "webhook.test"
              ]
            },
            "examples": [
              [
                "post.generated",
                "post.failed",
                "translation.done",
                "translation.failed"
              ]
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your label for the webhook. Null when it has none.",
            "examples": [
              "CMS sync"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether it receives events. `false` when it was paused with Update a webhook, or switched off after 10 failed attempts in a row (`disabledReason` then says why). Events that happen while it is off are never sent.",
            "examples": [
              true
            ]
          },
          "consecutiveFailures": {
            "type": "number",
            "description": "Failed delivery attempts in a row, across all events; test deliveries do not count. A 2xx answer to any other delivery resets it to 0, and so does resuming the webhook. At 10 the webhook is switched off.",
            "examples": [
              0
            ]
          },
          "lastDeliveryAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When your endpoint last answered a delivery with a 2xx, test deliveries included. Null until it has.",
            "examples": [
              null
            ]
          },
          "lastStatusCode": {
            "type": [
              "number",
              "null"
            ],
            "description": "HTTP status your endpoint answered on the latest attempt, test deliveries included. Null before the first attempt, or when the latest got no answer (it timed out, could not connect, or the URL was refused).",
            "examples": [
              null
            ]
          },
          "disabledReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the webhook was switched off automatically, with the last error: `Switched off automatically after 10 consecutive failed deliveries. Last error: …`. Null unless it was; resuming the webhook clears it.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the webhook was registered.",
            "examples": [
              "2026-10-07T09:30:05.114Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the webhook last changed, deliveries included.",
            "examples": [
              "2026-10-07T09:30:05.114Z"
            ]
          },
          "secret": {
            "type": "string",
            "description": "The signing secret: `whsec_` and 48 hex characters. Shown only in this response, so store it now. Every delivery carries `x-vitra-signature: t=<unix seconds>,v1=<hex>`, where `v1` is the HMAC-SHA256 of `<t>.<raw request body>` keyed with this secret.",
            "examples": [
              "whsec_3f9a1c7e5b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d"
            ]
          }
        },
        "required": [
          "id",
          "siteId",
          "memberId",
          "url",
          "secretHint",
          "events",
          "description",
          "enabled",
          "consecutiveFailures",
          "lastDeliveryAt",
          "lastStatusCode",
          "disabledReason",
          "createdAt",
          "updatedAt",
          "secret"
        ]
      },
      "BlogWebhookDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Webhook ID.",
            "examples": [
              "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5e"
            ]
          },
          "siteId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The website whose events it receives. Null: every website of your organization, and posts that belong to no website.",
            "examples": [
              null
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Member ID of the member who registered it. With an API key, the member who created the key.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "url": {
            "type": "string",
            "description": "Your endpoint, where every delivery is sent.",
            "examples": [
              "https://hooks.example.com/vitra"
            ]
          },
          "secretHint": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last four characters of the signing secret, so you can tell which secret the webhook signs with. The full secret is only in the response of Register a webhook. `null` if the server cannot read the secret right now.",
            "examples": [
              "5b7d"
            ]
          },
          "events": {
            "type": "array",
            "description": "The events it receives, without duplicates, in the order of the event list.",
            "items": {
              "type": "string",
              "enum": [
                "post.generated",
                "post.failed",
                "post.review_requested",
                "post.approved",
                "post.published",
                "translation.done",
                "translation.failed",
                "audio.done",
                "autopilot.finished",
                "webhook.test"
              ]
            },
            "examples": [
              [
                "post.generated",
                "post.failed",
                "translation.done",
                "translation.failed"
              ]
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your label for the webhook. Null when it has none.",
            "examples": [
              "CMS sync"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether it receives events. `false` when it was paused with Update a webhook, or switched off after 10 failed attempts in a row (`disabledReason` then says why). Events that happen while it is off are never sent.",
            "examples": [
              true
            ]
          },
          "consecutiveFailures": {
            "type": "number",
            "description": "Failed delivery attempts in a row, across all events; test deliveries do not count. A 2xx answer to any other delivery resets it to 0, and so does resuming the webhook. At 10 the webhook is switched off.",
            "examples": [
              0
            ]
          },
          "lastDeliveryAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When your endpoint last answered a delivery with a 2xx, test deliveries included. Null until it has.",
            "examples": [
              null
            ]
          },
          "lastStatusCode": {
            "type": [
              "number",
              "null"
            ],
            "description": "HTTP status your endpoint answered on the latest attempt, test deliveries included. Null before the first attempt, or when the latest got no answer (it timed out, could not connect, or the URL was refused).",
            "examples": [
              null
            ]
          },
          "disabledReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the webhook was switched off automatically, with the last error: `Switched off automatically after 10 consecutive failed deliveries. Last error: …`. Null unless it was; resuming the webhook clears it.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the webhook was registered.",
            "examples": [
              "2026-10-07T09:30:05.114Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the webhook last changed, deliveries included.",
            "examples": [
              "2026-10-07T09:30:05.114Z"
            ]
          }
        },
        "required": [
          "id",
          "siteId",
          "memberId",
          "url",
          "secretHint",
          "events",
          "description",
          "enabled",
          "consecutiveFailures",
          "lastDeliveryAt",
          "lastStatusCode",
          "disabledReason",
          "createdAt",
          "updatedAt"
        ]
      },
      "CadenceSettingsDto": {
        "type": "object",
        "properties": {
          "postsPerWeek": {
            "type": "number",
            "description": "Posts a week the calendar plans, from 1 to 14.",
            "examples": [
              2
            ]
          },
          "weekdays": {
            "description": "The days entries land on: 0 is Sunday, 1 Monday … 6 Saturday, in week order from Monday.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                1,
                3
              ]
            ]
          },
          "hour": {
            "type": "number",
            "description": "The hour (0 to 23, in `timezone`) the cadence runs every day: it plans, and in `auto` mode writes the entries due.",
            "examples": [
              9
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The IANA time zone of `hour` and of entry dates.",
            "examples": [
              "America/Chicago"
            ]
          },
          "weeklyBudgetCredits": {
            "type": "number",
            "description": "Credits `auto` mode may spend on writing entries in one ISO week (Monday to Sunday). An entry that would go over waits for the next week. Ignored in `plan` mode.",
            "examples": [
              5000
            ]
          },
          "requireReview": {
            "type": "boolean",
            "description": "Send each post the calendar writes for review (see Send a post for review). Write an entry now can override it with `sendForReview`.",
            "examples": [
              true
            ]
          },
          "horizonWeeks": {
            "type": "number",
            "description": "How many weeks ahead the calendar keeps planned, from 1 to 12.",
            "examples": [
              4
            ]
          },
          "targetWordCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Length in words of the posts the calendar writes. Null: each topic’s own suggested length.",
            "examples": [
              1200
            ]
          }
        },
        "required": [
          "postsPerWeek",
          "weekdays",
          "hour",
          "timezone",
          "weeklyBudgetCredits",
          "requireReview",
          "horizonWeeks",
          "targetWordCount"
        ]
      },
      "CalendarEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Calendar entry ID.",
            "examples": [
              "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
            ]
          },
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "topicId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The backlog topic the entry writes. Null for an entry with only a title.",
            "examples": [
              "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
            ]
          },
          "postId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The post written for the entry, once it is being written. A topic already written elsewhere gives its post.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title to write.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "brief": {
            "type": [
              "string",
              "null"
            ],
            "description": "The brief the post is written from. For an entry from a topic, the topic’s rationale unless you set one.",
            "examples": [
              "High-intent search with no matching page on the website; it leads straight to the product pages."
            ]
          },
          "targetKeyword": {
            "type": [
              "string",
              "null"
            ],
            "description": "The search phrase the post should rank for.",
            "examples": [
              "how to choose a compact tractor"
            ]
          },
          "scheduledFor": {
            "type": "string",
            "description": "The day of the entry (`YYYY-MM-DD`, in the cadence’s time zone).",
            "examples": [
              "2026-10-12"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "generating",
              "written",
              "skipped",
              "failed"
            ],
            "description": "`planned`: waiting for its day. `generating`: its post is being written. `written`: the post’s draft is done. `failed`: it could not be written; `error` says why, and Write an entry now tries again. `skipped`: you skipped it.",
            "examples": [
              "written"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "cadence",
              "manual",
              "analytics"
            ],
            "description": "`cadence`: planned by the cadence from the backlog. `manual`: added with Add a calendar entry. `analytics`: suggested from the website’s analytics.",
            "examples": [
              "cadence"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the entry could not be written, or why it waits (`Weekly credit budget reached. This entry will be retried next week.`). Null otherwise.",
            "examples": [
              null
            ]
          },
          "post": {
            "description": "Its post, in List calendar entries. Null before it has one, and in the response of the other calendar routes.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/CalendarEntryPostDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the entry was added.",
            "examples": [
              "2026-10-07T14:00:03.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the entry last changed.",
            "examples": [
              "2026-10-12T14:02:41.000Z"
            ]
          }
        },
        "required": [
          "id",
          "siteId",
          "topicId",
          "postId",
          "title",
          "brief",
          "targetKeyword",
          "scheduledFor",
          "status",
          "source",
          "error",
          "post",
          "createdAt",
          "updatedAt"
        ]
      },
      "CalendarEntryPostDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The post.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "generating",
              "failed",
              "draft",
              "in_review",
              "ready",
              "published",
              "archived"
            ],
            "description": "Its status (see Get a post).",
            "examples": [
              "in_review"
            ]
          },
          "title": {
            "type": "string",
            "description": "Its title.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "Credits the post has cost so far, settled work only.",
            "examples": [
              1125
            ]
          },
          "publishedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where it was published, once you marked it published.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "status",
          "title",
          "totalCredits",
          "publishedUrl"
        ]
      },
      "CreateEntryDto": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "scheduledFor": {
            "type": "string",
            "description": "The day, `YYYY-MM-DD`, in the cadence’s time zone.",
            "examples": [
              "2026-10-12"
            ]
          },
          "topicId": {
            "type": "string",
            "format": "uuid",
            "description": "A backlog topic of the website to write (`id` from List topics). Its title, rationale and keyword fill in what you leave out.",
            "examples": [
              "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title to write, up to 500 characters. Required without `topicId`.",
            "examples": [
              "Compact tractor financing: what to know before you sign"
            ]
          },
          "brief": {
            "type": "string",
            "description": "What the post must cover, up to 12,000 characters: the angle, the audience, the points, a call to action.",
            "examples": [
              "For first-time buyers: compare dealer financing with a bank loan, and explain our 0% offer."
            ]
          },
          "targetKeyword": {
            "type": "string",
            "description": "The search phrase the post should rank for.",
            "examples": [
              "compact tractor financing"
            ]
          }
        },
        "required": [
          "siteId",
          "scheduledFor"
        ]
      },
      "CreateSiteDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name. Defaults to the domain.",
            "examples": [
              "Acme Tractors"
            ]
          },
          "websiteUrl": {
            "type": "string",
            "description": "The website, as you would type it: `example.com`, `https://example.com/blog`, or its sitemap URL (then it is also the sitemap). `https://` is added when missing.",
            "examples": [
              "https://example.com/blog"
            ]
          },
          "sitemapUrl": {
            "type": "string",
            "description": "The sitemap, when you know it. Otherwise Autopilot discovers it on its first run.",
            "examples": [
              "https://example.com/sitemap.xml"
            ]
          },
          "defaults": {
            "description": "Defaults for the website’s posts, Autopilot runs, translations, reviews and recordings. Unknown keys are dropped. The AI model always comes from your organization’s provider preferences.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SiteDefaultsDto"
              }
            ]
          }
        },
        "required": [
          "websiteUrl"
        ]
      },
      "CreateStagedUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size"
        ]
      },
      "CreateTopicDto": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website the topic is for.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title to write, up to 500 characters.",
            "examples": [
              "Compact tractor financing: what to know before you sign"
            ]
          },
          "targetKeyword": {
            "type": "string",
            "description": "The search phrase the post should rank for. Defaults to the title in lowercase.",
            "examples": [
              "compact tractor financing"
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "informational",
              "commercial",
              "transactional",
              "navigational"
            ],
            "default": "informational",
            "description": "The search intent the post serves."
          },
          "secondaryKeywords": {
            "description": "Supporting keywords, up to 10.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "tractor loan rates",
                "0% tractor financing"
              ]
            ]
          },
          "rationale": {
            "type": "string",
            "description": "Why the topic is worth writing, up to 2,000 characters. The calendar uses it as the brief of its entries.",
            "examples": [
              "Dealers report financing is the top question from first-time buyers."
            ]
          }
        },
        "required": [
          "siteId",
          "title"
        ]
      },
      "CreateTranslationDto": {
        "type": "object",
        "properties": {
          "languageCode": {
            "type": "string",
            "description": "The language to translate into: a BCP-47 `code` from List languages (Platform API). Not the post’s own `sourceLanguage`.",
            "examples": [
              "fr-FR"
            ]
          },
          "tmId": {
            "type": "string",
            "format": "uuid",
            "description": "The translation memory to translate through (`id` from List translation memories in the Translation Memory API): one your organization owns or that is shared with it, whose provider and engine support the post’s language and `languageCode`. Defaults to the website’s default memory; required when the website has none.",
            "examples": [
              "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
            ]
          }
        },
        "required": [
          "languageCode"
        ]
      },
      "CreateWebhookDto": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "Only receive the events of this website. Omit it to receive the events of every website in your organization, and of posts that belong to no website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "url": {
            "type": "string",
            "description": "Your endpoint, up to 1,000 characters: a public `https://` URL. Plain `http`, a user name or password in the URL, and a host that is local, private or does not resolve are refused, now and before every delivery. Redirects are not followed: a `3xx` answer is a failed attempt.",
            "examples": [
              "https://hooks.example.com/vitra"
            ]
          },
          "events": {
            "type": "array",
            "description": "The events to receive, at least one. `post.generated` / `post.failed`: a draft was written, or could not be. `post.review_requested` / `post.approved`: a post was sent for review, or approved. `post.published`: a post was marked published. `translation.done` / `translation.failed`: a translation finished, or failed. `audio.done`: a recording finished. `autopilot.finished`: an Autopilot run succeeded or failed. `webhook.test` is only sent by Send a test delivery, which sends it whether or not you list it.",
            "items": {
              "type": "string",
              "enum": [
                "post.generated",
                "post.failed",
                "post.review_requested",
                "post.approved",
                "post.published",
                "translation.done",
                "translation.failed",
                "audio.done",
                "autopilot.finished",
                "webhook.test"
              ]
            },
            "examples": [
              [
                "post.generated",
                "post.failed",
                "translation.done",
                "translation.failed"
              ]
            ]
          },
          "description": {
            "type": "string",
            "description": "A label for the webhook, up to 200 characters.",
            "examples": [
              "CMS sync"
            ]
          }
        },
        "required": [
          "url",
          "events"
        ]
      },
      "EditorActionDto": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "improve",
              "simplify",
              "expand",
              "seo_audit",
              "titles",
              "excerpt",
              "fact_check",
              "cta",
              "refresh"
            ],
            "description": "`improve`, `simplify` or `expand` the text; `seo_audit` it; suggest `titles`, an `excerpt` or a `cta`; `fact_check` it; or `refresh` it for today. Refresh from analytics runs `refresh` with a brief from the post’s searches.",
            "examples": [
              "improve"
            ]
          },
          "selection": {
            "type": "string",
            "description": "The part of the post to work on, as Markdown or plain text, up to 200,000 characters. Leave it out to work on the whole post.",
            "examples": [
              "A compact tractor is the workhorse of a smallholding. It mows, it moves, it digs."
            ]
          },
          "instruction": {
            "type": "string",
            "description": "Extra direction for the model, up to 2,000 characters.",
            "examples": [
              "Keep it under 80 words and mention our 0% financing."
            ]
          }
        },
        "required": [
          "action"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "Ga4InsightsDto": {
        "type": "object",
        "properties": {
          "periodStart": {
            "type": "string",
            "description": "First day of the 28 days synced (`YYYY-MM-DD`).",
            "examples": [
              "2026-09-09"
            ]
          },
          "periodEnd": {
            "type": "string",
            "description": "Last day of the 28 days synced (`YYYY-MM-DD`): the day before the sync.",
            "examples": [
              "2026-10-06"
            ]
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the data was synced.",
            "examples": [
              "2026-10-07T04:00:12.000Z"
            ]
          },
          "summary": {
            "description": "Totals of the period.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogAnalyticsSummaryDto"
              }
            ]
          },
          "topPages": {
            "description": "Up to 50 pages with the most sessions, most first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsPageRowDto"
            }
          }
        },
        "required": [
          "periodStart",
          "periodEnd",
          "fetchedAt",
          "summary",
          "topPages"
        ]
      },
      "GenerateAudioDto": {
        "type": "object",
        "properties": {
          "translationId": {
            "type": "string",
            "format": "uuid",
            "description": "Read a finished translation of the post (`id` from List translations) instead of the post itself.",
            "examples": [
              "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "voice": {
            "description": "The voice to read with. Defaults to the website’s `defaults.audioVoice`; required when it has none.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AudioVoiceDto"
              }
            ]
          }
        }
      },
      "GenerateChargesDto": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "As in Write a post: follow-ups are only for a post on a website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "topicId": {
            "type": "string",
            "format": "uuid",
            "description": "As in Write a post: its suggested length applies.",
            "examples": [
              "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
            ]
          },
          "targetWordCount": {
            "type": "number",
            "default": 1500,
            "minimum": 300,
            "maximum": 8000,
            "description": "As in Write a post.",
            "examples": [
              1500
            ]
          },
          "autoSeo": {
            "type": "boolean",
            "default": true,
            "description": "As in Write a post."
          },
          "autoFollowups": {
            "type": "boolean",
            "default": true,
            "description": "As in Write a post."
          },
          "generateHeroImage": {
            "type": "boolean",
            "default": false,
            "description": "As in Write a post."
          }
        }
      },
      "GenerateEntryDto": {
        "type": "object",
        "properties": {
          "sendForReview": {
            "type": "boolean",
            "description": "Send the post for review once it is written. Defaults to the cadence’s `requireReview`, else `false`.",
            "examples": [
              true
            ]
          },
          "generateHeroImage": {
            "type": "boolean",
            "default": false,
            "description": "Also make a hero image (charged per image)."
          },
          "targetWordCount": {
            "type": "number",
            "minimum": 300,
            "maximum": 8000,
            "description": "Length in words, from 300 to 8,000. Defaults to the cadence’s `targetWordCount`, else the topic’s suggestion, else 1,500.",
            "examples": [
              1200
            ]
          }
        }
      },
      "GeneratePostDto": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website the post is for (`id` from List websites). Required once your organization has a website; an organization with none may leave it out, and its posts join the first website it adds.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "topicId": {
            "type": "string",
            "format": "uuid",
            "description": "Write a topic from the website’s backlog (`id` from List topics): its title, keyword, outline and suggested length fill in what you leave out. The topic must belong to `siteId` and not have a post yet.",
            "examples": [
              "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title, up to 500 characters, kept word for word (line breaks become spaces). A title alone is enough to write a post. Without a title, one is written from the brief.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "brief": {
            "type": "string",
            "description": "What the post must cover, up to 12,000 characters: the angle, the audience, the points, a call to action.",
            "examples": [
              "For first-time buyers with 2 to 20 acres. Compare horsepower classes, hitch categories and must-have attachments. End with a call to book a test drive."
            ]
          },
          "targetKeyword": {
            "type": "string",
            "description": "The search phrase the post should rank for. Defaults to the topic’s.",
            "examples": [
              "compact tractor"
            ]
          },
          "secondaryKeywords": {
            "description": "Supporting keywords, up to 10. Defaults to the topic’s.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "compact tractor buying guide",
                "compact tractor horsepower"
              ]
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "informational",
              "commercial",
              "transactional",
              "navigational"
            ],
            "description": "The search intent to serve. Defaults to the topic’s."
          },
          "contentType": {
            "type": "string",
            "description": "The kind of post, such as `how-to`, `listicle`, `comparison` or `guide`. Defaults to the topic’s.",
            "examples": [
              "guide"
            ]
          },
          "targetWordCount": {
            "type": "number",
            "default": 1500,
            "minimum": 300,
            "maximum": 8000,
            "description": "Length in words, from 300 to 8,000. Defaults to the topic’s suggested length, else 1,500. The draft is charged on it.",
            "examples": [
              1500
            ]
          },
          "memoryIds": {
            "description": "Memory notes from your organization’s memory library to read as context, up to 25. Defaults to the website’s `defaults.memoryIds`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f5a6b7c-8d9e-4f0a-9b1c-2d3e4f5a6b7c"
              ]
            ]
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "description": "A prompt from your organization’s prompt library, added to the instructions. Defaults to the website’s `defaults.promptId`.",
            "examples": [
              "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b"
            ]
          },
          "promptVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Values for the `{{placeholders}}` of that prompt.",
            "examples": [
              {
                "region": "US Midwest"
              }
            ]
          },
          "brandKitId": {
            "type": "string",
            "format": "uuid",
            "description": "The brand kit whose tone of voice to follow (`id` from List brand kits in the Image Translation API). Defaults to the website’s `defaults.brandKitId`.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "The language to write in: a BCP-47 `code` from List languages (Platform API). Defaults to the website’s `defaults.sourceLanguage`, else `en-US`.",
            "examples": [
              "en-US"
            ]
          },
          "autoSeo": {
            "type": "boolean",
            "default": true,
            "description": "Write the SEO pack after the draft (charged with the draft)."
          },
          "autoFollowups": {
            "type": "boolean",
            "default": true,
            "description": "Suggest three follow-up topics after the draft (charged with the draft). Only for a post on a website."
          },
          "generateHeroImage": {
            "type": "boolean",
            "default": false,
            "description": "Make a hero image once the draft is written (charged with the draft, per image)."
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "description": "File the new post in this project. Leave it out for no project.",
            "examples": [
              "0f1e2d3c-4b5a-4697-8877-a6b5c4d3e2f1"
            ]
          },
          "sendForReview": {
            "type": "boolean",
            "default": false,
            "description": "Send the post for review, to the website’s default reviewer, as soon as the draft, its SEO pack and any hero image are done."
          }
        }
      },
      "GscInsightsDto": {
        "type": "object",
        "properties": {
          "periodStart": {
            "type": "string",
            "description": "First day of the 28 days synced (`YYYY-MM-DD`).",
            "examples": [
              "2026-09-08"
            ]
          },
          "periodEnd": {
            "type": "string",
            "description": "Last day of the 28 days synced (`YYYY-MM-DD`): two days before the sync, as Search Console data lags.",
            "examples": [
              "2026-10-05"
            ]
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the data was synced.",
            "examples": [
              "2026-10-07T04:00:12.000Z"
            ]
          },
          "summary": {
            "description": "Totals of the period.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogAnalyticsSummaryDto"
              }
            ]
          },
          "topQueries": {
            "description": "Up to 50 queries with the most clicks, most first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsQueryRowDto"
            }
          },
          "strikingDistance": {
            "description": "Striking distance: up to 40 queries where the website ranks at positions 4 to 20 with at least 20 impressions, most impressions first. A dedicated post or a refresh can move them to the top.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsQueryRowDto"
            }
          },
          "lowCtr": {
            "description": "Low click-through: up to 25 queries in the top 10 with at least 100 impressions but a CTR under 2%, most impressions first. A better title and meta description help these.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsQueryRowDto"
            }
          }
        },
        "required": [
          "periodStart",
          "periodEnd",
          "fetchedAt",
          "summary",
          "topQueries",
          "strikingDistance",
          "lowCtr"
        ]
      },
      "HeroFromAssetDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "An image in your organization’s assets (`id` from List assets in the Assets API), up to 32 MB.",
            "examples": [
              "8c9d0e1f-2a3b-4c4d-9e5f-6a7b8c9d0e1f"
            ]
          }
        },
        "required": [
          "assetId"
        ]
      },
      "HeroImageDto": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "The image to make, up to 4,000 characters. Defaults to a prompt from the post’s title, keyword and summary.",
            "examples": [
              "A red compact tractor with a front loader on a green smallholding at sunrise, photorealistic, no text."
            ]
          },
          "brandKitId": {
            "type": "string",
            "format": "uuid",
            "description": "The brand kit to apply (`id` from List brand kits in the Image Translation API). Defaults to the post’s.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          },
          "aspectRatio": {
            "type": "string",
            "enum": [
              "16:9",
              "4:3",
              "1:1",
              "3:4",
              "9:16"
            ],
            "default": "16:9",
            "description": "The shape of the image."
          }
        }
      },
      "HreflangAlternateDto": {
        "type": "object",
        "properties": {
          "hreflang": {
            "type": "string",
            "description": "The language code, or `x-default` for the post itself.",
            "examples": [
              "fr-FR"
            ]
          },
          "href": {
            "type": "string",
            "description": "Where that language version is published.",
            "examples": [
              "https://example.com/fr/blog/comment-choisir-un-tracteur-compact"
            ]
          }
        },
        "required": [
          "hreflang",
          "href"
        ]
      },
      "HreflangDto": {
        "type": "object",
        "properties": {
          "alternates": {
            "description": "One alternate for the post and each finished translation that has a `publishedUrl`, plus `x-default` (the post). Empty until the post has a `publishedUrl`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HreflangAlternateDto"
            }
          },
          "html": {
            "type": "string",
            "description": "The same as `<link rel=\"alternate\">` tags, ready for the `<head>` of every language version.",
            "examples": [
              "<link rel=\"alternate\" hreflang=\"en-US\" href=\"https://example.com/blog/how-to-choose-a-compact-tractor\" />\n<link rel=\"alternate\" hreflang=\"fr-FR\" href=\"https://example.com/fr/blog/comment-choisir-un-tracteur-compact\" />\n<link rel=\"alternate\" hreflang=\"x-default\" href=\"https://example.com/blog/how-to-choose-a-compact-tractor\" />"
            ]
          }
        },
        "required": [
          "alternates",
          "html"
        ]
      },
      "InsufficientCreditsErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              402
            ]
          },
          "error": {
            "type": "string",
            "description": "Always `InsufficientCredits`.",
            "examples": [
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "You don't have enough credits to start this. It needs 120; you have 45."
            ]
          },
          "required": {
            "type": "number",
            "description": "Credits this request needs.",
            "examples": [
              120
            ]
          },
          "available": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              45
            ]
          },
          "owed": {
            "type": "number",
            "description": "Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "statusCode",
          "error",
          "message",
          "required",
          "available",
          "owed"
        ]
      },
      "MovedPostProjectDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project the post is in now, or null for none.",
            "examples": [
              "0f1e2d3c-4b5a-4697-8877-a6b5c4d3e2f1"
            ]
          }
        },
        "required": [
          "projectId"
        ]
      },
      "MovePostToProjectBodyDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project to file the post in. Send `null` to take it out of its project.",
            "examples": [
              "0f1e2d3c-4b5a-4697-8877-a6b5c4d3e2f1"
            ]
          }
        },
        "required": [
          "projectId"
        ]
      },
      "MovePostToProjectResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Where the post is now.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MovedPostProjectDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "NewTmSourcePairDto": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number",
            "description": "Index from the current tm-sync unpairedSegments response."
          },
          "sourceText": {
            "type": "string",
            "description": "The matching source-language text, supplied by a person."
          },
          "targetText": {
            "type": "string",
            "description": "The exact saved target text from unpairedSegments. Refused if it changed."
          }
        },
        "required": [
          "index",
          "sourceText",
          "targetText"
        ]
      },
      "PerformanceOpportunityDto": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "What people searched for.",
            "examples": [
              "best compact tractor for 5 acres"
            ]
          },
          "position": {
            "type": "number",
            "description": "Average position of the post for it (8 to 30).",
            "examples": [
              12.3
            ]
          },
          "impressions": {
            "type": "number",
            "description": "Times the post showed for it in the period.",
            "examples": [
              640
            ]
          }
        },
        "required": [
          "query",
          "position",
          "impressions"
        ]
      },
      "PostAssigneeDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Member ID.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name, or null when the member has none.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Avatar URL, or null.",
            "examples": [
              null
            ]
          },
          "languages": {
            "description": "What the member is assigned to: `*` for the whole post, or the language codes of the translations they work on.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "*"
              ]
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "image",
          "languages"
        ]
      },
      "PostChargesDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "seo_pack",
              "followups",
              "voice_check",
              "link_suggestions",
              "editor_action",
              "refresh",
              "hero_image"
            ],
            "description": "The action to price: `seo_pack` (Generate the SEO pack), `followups` (Suggest follow-up topics), `voice_check` (Run a brand voice check), `link_suggestions` (Suggest internal links), `editor_action` (Run an editor action), `refresh` (Refresh from analytics) or `hero_image` (Generate a hero image).",
            "examples": [
              "editor_action"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "improve",
              "simplify",
              "expand",
              "seo_audit",
              "titles",
              "excerpt",
              "fact_check",
              "cta",
              "refresh"
            ],
            "description": "For `editor_action`: the action to price. Required for it."
          },
          "selection": {
            "type": "string",
            "description": "For `editor_action`: the selection you will send. Leave it out to price the action over the whole post.",
            "examples": [
              "A compact tractor is the workhorse of a smallholding. It mows, it moves, it digs."
            ]
          }
        },
        "required": [
          "kind"
        ]
      },
      "PostCheckAgainstDto": {
        "type": "object",
        "properties": {
          "brandKitName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brand voice checks: the brand kit the post was checked against.",
            "examples": [
              "Acme Tractors"
            ]
          },
          "termBases": {
            "description": "The translation memories whose term bases were used, by name.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Acme Tractors EN→FR"
              ]
            ]
          },
          "translationId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Term checks: the translation that was checked, or null for the post itself.",
            "examples": [
              null
            ]
          },
          "languageCode": {
            "type": "string",
            "description": "Term checks: the language of the text checked.",
            "examples": [
              "en-US"
            ]
          }
        }
      },
      "PostCheckDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Check ID.",
            "examples": [
              "d4e5f6a7-b8c9-4d0e-9f1a-2b3c4d5e6f7a"
            ]
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "description": "The post.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "voice",
              "terms"
            ],
            "description": "`voice`: a brand voice check. `terms`: a term check against term bases.",
            "examples": [
              "voice"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "done",
              "failed"
            ],
            "description": "`running` (brand voice checks only), then `done`, or `failed` with the reason in `error`.",
            "examples": [
              "done"
            ]
          },
          "verdict": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pass",
              "warn",
              "fail"
            ],
            "description": "`pass`, `warn` or `fail`, once `done`. A critical finding always fails; `pass` needs a score of 80 or more and no major finding; `warn` a score of 55 or more. Null while running.",
            "examples": [
              "warn"
            ]
          },
          "result": {
            "description": "The outcome, once `done`. Null while running or after a failure.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostCheckResultDto"
              }
            ]
          },
          "sourceVersion": {
            "type": [
              "number",
              "null"
            ],
            "description": "The post’s `versionCount` (for a translation, its `sourceVersion`) the check read.",
            "examples": [
              3
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits the check cost: what a brand voice check was charged, settled once it is done. 0 for a term check.",
            "examples": [
              142
            ]
          },
          "aiRunId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Brand voice checks: the model run behind it (see Get a run). Null for a term check.",
            "examples": [
              "9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the check failed. Null otherwise.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the check was started.",
            "examples": [
              "2026-10-07T10:05:44.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the check last changed.",
            "examples": [
              "2026-10-07T10:06:31.000Z"
            ]
          }
        },
        "required": [
          "id",
          "postId",
          "kind",
          "status",
          "verdict",
          "result",
          "sourceVersion",
          "credits",
          "aiRunId",
          "error",
          "createdAt",
          "updatedAt"
        ]
      },
      "PostCheckIssueDto": {
        "type": "object",
        "properties": {
          "severity": {
            "type": "string",
            "enum": [
              "minor",
              "major",
              "critical"
            ],
            "description": "How much it matters: `minor`, `major` or `critical`.",
            "examples": [
              "major"
            ]
          },
          "excerpt": {
            "type": "string",
            "description": "The passage the finding is about, word for word, so you can find it in the text.",
            "examples": [
              "our tractors are the best on the market, period"
            ]
          },
          "message": {
            "type": "string",
            "description": "What is wrong with it.",
            "examples": [
              "Absolute claims clash with the brand’s measured, factual tone."
            ]
          },
          "suggestion": {
            "type": [
              "string",
              "null"
            ],
            "description": "A rewording or fix, when there is one.",
            "examples": [
              "Our tractors lead their class on lift capacity and fuel economy."
            ]
          },
          "term": {
            "type": [
              "string",
              "null"
            ],
            "description": "Term checks only: the term base entry that fired.",
            "examples": [
              "sub-compact tractor"
            ]
          }
        },
        "required": [
          "severity",
          "excerpt",
          "message"
        ]
      },
      "PostCheckResultDto": {
        "type": "object",
        "properties": {
          "score": {
            "type": "number",
            "description": "From 0 to 100. A brand voice check scores how well the post matches the tone of voice; a term check, the share of glossary terms used correctly (100 when there was nothing to check).",
            "examples": [
              82
            ]
          },
          "summary": {
            "type": "string",
            "description": "The outcome in a sentence or two.",
            "examples": [
              "14 glossary terms in use, 1 forbidden term found (212 terms checked)."
            ]
          },
          "issues": {
            "description": "The findings: up to 15 for a brand voice check, 50 for a term check.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostCheckIssueDto"
            }
          },
          "against": {
            "description": "What the check was run against.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostCheckAgainstDto"
              }
            ]
          }
        },
        "required": [
          "score",
          "summary",
          "issues",
          "against"
        ]
      },
      "PostFaqDto": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "description": "The question, as a reader would search it.",
            "examples": [
              "How much horsepower does a compact tractor need?"
            ]
          },
          "answer": {
            "type": "string",
            "description": "A short, direct answer.",
            "examples": [
              "25–50 hp covers most smallholdings; go higher only for heavy loader work."
            ]
          }
        },
        "required": [
          "question",
          "answer"
        ]
      },
      "PostFollowupDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Topic ID: write it with Write a post and `topicId`.",
            "examples": [
              "7d6c5b4a-3928-4170-a6f5-e4d3c2b1a098"
            ]
          },
          "title": {
            "type": "string",
            "description": "The title to write.",
            "examples": [
              "Compact tractor attachments: which five to buy first"
            ]
          },
          "targetKeyword": {
            "type": "string",
            "description": "The search phrase it targets.",
            "examples": [
              "compact tractor attachments"
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "informational",
              "commercial",
              "transactional",
              "navigational"
            ],
            "description": "The search intent it serves.",
            "examples": [
              "commercial"
            ]
          },
          "opportunity": {
            "type": "number",
            "description": "Estimated opportunity, from 1 to 100.",
            "examples": [
              76
            ]
          },
          "rationale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it is worth writing next.",
            "examples": [
              "Readers who choose a tractor ask next what to put on it."
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "suggested",
              "in_progress",
              "written",
              "dismissed"
            ],
            "description": "Its status in the backlog (see List topics).",
            "examples": [
              "suggested"
            ]
          },
          "postId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The post written from it, or null.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "title",
          "targetKeyword",
          "intent",
          "opportunity",
          "rationale",
          "status",
          "postId"
        ]
      },
      "PostGenerationContextDto": {
        "type": "object",
        "properties": {
          "topicId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The topic it was written from, or null.",
            "examples": [
              null
            ]
          },
          "promptId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The library prompt used, or null.",
            "examples": [
              null
            ]
          },
          "promptVariables": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "Values for the prompt’s `{{placeholders}}`, or null.",
            "examples": [
              null
            ]
          },
          "memoryIds": {
            "description": "Memory notes read as context.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "brandKitId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The brand kit whose tone of voice it follows, or null.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          },
          "brief": {
            "type": [
              "string",
              "null"
            ],
            "description": "The brief, or null.",
            "examples": [
              null
            ]
          },
          "targetKeyword": {
            "type": [
              "string",
              "null"
            ],
            "description": "The search phrase it targets, or null.",
            "examples": [
              "compact tractor"
            ]
          },
          "intent": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "informational",
              "commercial",
              "transactional",
              "navigational"
            ],
            "description": "The search intent it serves, or null.",
            "examples": [
              "commercial"
            ]
          },
          "targetWordCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "The length it was written to, in words.",
            "examples": [
              1500
            ]
          },
          "autoSeo": {
            "type": "boolean",
            "description": "Whether the SEO pack was written after the draft.",
            "examples": [
              true
            ]
          },
          "autoFollowups": {
            "type": "boolean",
            "description": "Whether follow-up topics were suggested after the draft.",
            "examples": [
              true
            ]
          },
          "generateHeroImage": {
            "type": "boolean",
            "description": "Whether a hero image was asked for.",
            "examples": [
              false
            ]
          },
          "sendForReview": {
            "type": "boolean",
            "description": "Whether the post is sent for review once written.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "topicId",
          "promptId",
          "promptVariables",
          "memoryIds",
          "brandKitId",
          "brief",
          "targetKeyword",
          "intent",
          "targetWordCount"
        ]
      },
      "PostHeroImageDto": {
        "type": "object",
        "properties": {
          "generationId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of this image. It changes with every new image, and so does `url`.",
            "examples": [
              "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e"
            ]
          },
          "aspectRatio": {
            "type": "string",
            "description": "Aspect ratio the image was made in, such as `16:9`. Empty for an image chosen from your assets.",
            "examples": [
              "16:9"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The prompt the image was made from. Empty for an image chosen from your assets.",
            "examples": [
              "Editorial hero image for a blog post titled \"How to choose a compact tractor\". Subject: compact tractor."
            ]
          },
          "brandKitId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The brand kit applied, or null.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the image.",
            "examples": [
              "image/png"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "generated",
              "asset"
            ],
            "description": "`asset` for an image chosen from your assets. Absent or `generated` for a generated one.",
            "examples": [
              "generated"
            ]
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The image in your organization’s assets, once it was saved there (or chosen from there).",
            "examples": [
              null
            ]
          },
          "url": {
            "type": "string",
            "description": "A stable address of the image on this API that never expires: embed it in the published post. It redirects to the file and needs no API key.",
            "examples": [
              "{{API_BASE_URL}}/v1/galaxy/blog/post/hero/5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d/b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e/q3Zx8bWm1TfK0pLs7NvYc2RgH5dJ4aEe"
            ]
          }
        },
        "required": [
          "generationId",
          "aspectRatio",
          "prompt",
          "brandKitId",
          "mimeType",
          "url"
        ]
      },
      "PostLinkDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Suggestion ID, for Apply a link and Dismiss a link.",
            "examples": [
              "f1e2d3c4-b5a6-4978-8695-a4b3c2d1e0f9"
            ]
          },
          "url": {
            "type": "string",
            "description": "The page or post to link to.",
            "examples": [
              "https://example.com/blog/compact-tractor-maintenance-checklist"
            ]
          },
          "title": {
            "type": "string",
            "description": "Title of that page or post.",
            "examples": [
              "Compact Tractor Maintenance Checklist"
            ]
          },
          "anchor": {
            "type": "string",
            "description": "The words in the post the link goes on, exactly as they appear in the text.",
            "examples": [
              "seasonal maintenance"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Why the link helps the reader.",
            "examples": [
              "Readers comparing tractors also ask how much upkeep they need."
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "post"
            ],
            "description": "`page`: a page from the website’s sitemap. `post`: another published post of the website.",
            "examples": [
              "page"
            ]
          },
          "postId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For `kind: post`, that post’s ID.",
            "examples": [
              null
            ]
          },
          "applied": {
            "type": "boolean",
            "description": "Whether the link was put into the post with Apply a link.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "id",
          "url",
          "title",
          "anchor",
          "reason",
          "kind"
        ]
      },
      "PostPendingDto": {
        "type": "object",
        "properties": {
          "heroImage": {
            "type": "boolean",
            "description": "A hero image is queued or being made.",
            "examples": [
              false
            ]
          },
          "draft": {
            "type": "boolean",
            "description": "The draft is being written.",
            "examples": [
              false
            ]
          },
          "seoPack": {
            "type": "boolean",
            "description": "The SEO pack is being written.",
            "examples": [
              true
            ]
          },
          "followups": {
            "type": "boolean",
            "description": "Follow-up topics are being suggested.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "heroImage",
          "draft",
          "seoPack",
          "followups"
        ]
      },
      "PostPerformanceDto": {
        "type": "object",
        "properties": {
          "postId": {
            "type": "string",
            "format": "uuid",
            "description": "The post.",
            "examples": [
              "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d"
            ]
          },
          "path": {
            "type": "string",
            "description": "The path of its `publishedUrl`, matched against the analytics data.",
            "examples": [
              "/blog/how-to-choose-a-compact-tractor"
            ]
          },
          "trend": {
            "type": "string",
            "enum": [
              "up",
              "flat",
              "down",
              "new"
            ],
            "description": "`down` or `up`: the leading number (clicks with Search Console, else sessions) fell or grew by 20% or more since the sync at least 6 days earlier; `flat`: less than that; `new`: no earlier sync to compare with.",
            "examples": [
              "down"
            ]
          },
          "sessions": {
            "type": "number",
            "description": "Sessions in the latest period (Google Analytics 4).",
            "examples": [
              820
            ]
          },
          "previousSessions": {
            "type": "number",
            "description": "Sessions in the earlier period.",
            "examples": [
              1130
            ]
          },
          "clicks": {
            "type": "number",
            "description": "Clicks from search in the latest period (Search Console).",
            "examples": [
              96
            ]
          },
          "previousClicks": {
            "type": "number",
            "description": "Clicks from search in the earlier period.",
            "examples": [
              151
            ]
          },
          "impressions": {
            "type": "number",
            "description": "Impressions in search in the latest period.",
            "examples": [
              7420
            ]
          },
          "position": {
            "type": [
              "number",
              "null"
            ],
            "description": "Average position in search, weighted by impressions. Null without Search Console data.",
            "examples": [
              8.7
            ]
          },
          "previousPosition": {
            "type": [
              "number",
              "null"
            ],
            "description": "Average position in the earlier period.",
            "examples": [
              6.2
            ]
          },
          "change": {
            "type": [
              "number",
              "null"
            ],
            "description": "Change of the leading number in percent. Null when there is nothing to compare with.",
            "examples": [
              -36
            ]
          },
          "opportunities": {
            "description": "Up to 8 queries the post ranks for at positions 8 to 30 with at least 10 impressions, most impressions first: what Refresh from analytics rewrites the post to answer.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerformanceOpportunityDto"
            }
          }
        },
        "required": [
          "postId",
          "path",
          "trend",
          "sessions",
          "previousSessions",
          "clicks",
          "previousClicks",
          "impressions",
          "position",
          "previousPosition",
          "change",
          "opportunities"
        ]
      },
      "PostSeoCheckDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Which check: `focus_keyword`, `keyword_in_title`, `keyword_in_intro`, `keyword_in_heading`, `meta_title`, `meta_description`, `slug`, `length`, `structure`, `images`, `internal_links`, `faq` or `readability`.",
            "examples": [
              "meta_title"
            ]
          },
          "label": {
            "type": "string",
            "description": "What it checks, in words.",
            "examples": [
              "Meta title 30–60 characters"
            ]
          },
          "ok": {
            "type": "boolean",
            "description": "Whether the post passes it.",
            "examples": [
              true
            ]
          },
          "weight": {
            "type": "number",
            "description": "Points it is worth out of 100.",
            "examples": [
              8
            ]
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "description": "What was measured, or what to fix.",
            "examples": [
              "52 characters"
            ]
          }
        },
        "required": [
          "key",
          "label",
          "ok",
          "weight"
        ]
      },
      "PostSeoDto": {
        "type": "object",
        "properties": {
          "metaTitle": {
            "type": "string",
            "description": "The `<title>` for search results, about 60 characters.",
            "examples": [
              "How to Choose a Compact Tractor (2026 Buyer's Guide)"
            ]
          },
          "metaDescription": {
            "type": "string",
            "description": "The meta description, about 155 characters.",
            "examples": [
              "Horsepower, hitch class, tyres and attachments: what actually matters when you buy a compact tractor."
            ]
          },
          "slug": {
            "type": "string",
            "description": "The URL slug. Saving the pack with a slug also sets the `slug` of the post or translation.",
            "examples": [
              "how-to-choose-a-compact-tractor"
            ]
          },
          "focusKeyword": {
            "type": "string",
            "description": "The search phrase the page should rank for.",
            "examples": [
              "compact tractor"
            ]
          },
          "keywords": {
            "description": "Secondary keywords.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "compact tractor buying guide",
                "sub-compact vs compact tractor"
              ]
            ]
          },
          "summary": {
            "type": "string",
            "description": "A two or three sentence summary of the post.",
            "examples": [
              "A practical guide to sizing and specifying a compact tractor for a smallholding."
            ]
          },
          "faqs": {
            "description": "Suggested questions and answers. Render them in the saved body to qualify for FAQPage markup; metadata alone is not visible page content.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostFaqDto"
            }
          },
          "tags": {
            "description": "Tags for your CMS.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "tractors",
                "buying-guide"
              ]
            ]
          }
        },
        "required": [
          "metaTitle",
          "metaDescription",
          "focusKeyword",
          "keywords",
          "summary",
          "faqs",
          "tags"
        ]
      },
      "PostSeoScoreDto": {
        "type": "object",
        "properties": {
          "score": {
            "type": "number",
            "description": "From 0 to 100: the weights of the checks that pass.",
            "examples": [
              86
            ]
          },
          "checks": {
            "description": "The 13 checks.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostSeoCheckDto"
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was computed: on every read.",
            "examples": [
              "2026-10-07T09:52:40.120Z"
            ]
          }
        },
        "required": [
          "score",
          "checks",
          "computedAt"
        ]
      },
      "PostVersionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Version ID.",
            "examples": [
              "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
            ]
          },
          "version": {
            "type": "number",
            "description": "Version number, from 1 (the first draft).",
            "examples": [
              3
            ]
          },
          "title": {
            "type": "string",
            "description": "The title in this version.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "generated",
              "edited",
              "editor_action",
              "restored"
            ],
            "description": "`generated` (the draft or an SEO pack), `edited` (a save, or an applied link), `editor_action` or `restored`.",
            "examples": [
              "edited"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "The note saved with it.",
            "examples": [
              "Tightened the intro"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in this version.",
            "examples": [
              1540
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member who made it, or null for one the AI made.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made.",
            "examples": [
              "2026-10-07T10:12:31.000Z"
            ]
          },
          "publicAttribution": {
            "description": "Saved public authors and publisher for this language/version. Null when unset; not inferred from members or source-language metadata.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "contentHtml": {
            "type": "string",
            "description": "The post as HTML in this version.",
            "examples": [
              "<p>A compact tractor is the workhorse of a smallholding…</p><h2>How much horsepower do you need?</h2><p>For 2 to 20 acres, 25 to 50 hp covers mowing, loader work and light tillage.</p>"
            ]
          },
          "seo": {
            "description": "The SEO pack in this version, or null.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "version",
          "title",
          "source",
          "note",
          "wordCount",
          "memberId",
          "createdAt",
          "publicAttribution",
          "contentHtml",
          "seo"
        ]
      },
      "PostVersionSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Version ID.",
            "examples": [
              "e3d2c1b0-a9f8-4e7d-8c6b-5a4f3e2d1c0b"
            ]
          },
          "version": {
            "type": "number",
            "description": "Version number, from 1 (the first draft).",
            "examples": [
              3
            ]
          },
          "title": {
            "type": "string",
            "description": "The title in this version.",
            "examples": [
              "How to choose a compact tractor"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "generated",
              "edited",
              "editor_action",
              "restored"
            ],
            "description": "`generated` (the draft or an SEO pack), `edited` (a save, or an applied link), `editor_action` or `restored`.",
            "examples": [
              "edited"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "The note saved with it.",
            "examples": [
              "Tightened the intro"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Words in this version.",
            "examples": [
              1540
            ]
          },
          "memberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member who made it, or null for one the AI made.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was made.",
            "examples": [
              "2026-10-07T10:12:31.000Z"
            ]
          }
        },
        "required": [
          "id",
          "version",
          "title",
          "source",
          "note",
          "wordCount",
          "memberId",
          "createdAt"
        ]
      },
      "PublicAttributionDto": {
        "type": "object",
        "properties": {
          "authors": {
            "default": [],
            "maxItems": 10,
            "description": "Public authors in byline order. Default empty; never inferred from the creating member.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicAuthorDto"
            },
            "examples": [
              [
                {
                  "type": "Person",
                  "name": "Asha Sharma",
                  "url": "https://example.com/authors/asha-sharma"
                }
              ]
            ]
          },
          "publisher": {
            "default": null,
            "description": "Explicit public publisher, or null. Never inferred from a website’s internal label.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicPublisherDto"
              }
            ],
            "examples": [
              {
                "type": "Organization",
                "name": "Example Editorial",
                "url": "https://example.com/",
                "logoUrl": "https://example.com/logo.png"
              }
            ]
          }
        }
      },
      "PublicAuthorDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Person",
              "Organization"
            ],
            "description": "The type of the public author shown on this language’s page.",
            "examples": [
              "Person"
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 250,
            "description": "Exact public byline, in this language. Not an internal member name.",
            "examples": [
              "Asha Sharma"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000,
            "description": "Actual public author profile URL; absolute HTTP(S), without credentials. Null or omitted when absent.",
            "examples": [
              "https://example.com/authors/asha-sharma"
            ]
          }
        },
        "required": [
          "type",
          "name"
        ]
      },
      "PublicPublisherDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Person",
              "Organization"
            ],
            "default": "Organization",
            "description": "Actual public publisher type. Individual publishers use Person; logoUrl is only for organizations.",
            "examples": [
              "Organization"
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 250,
            "description": "The actual publisher’s public name for this language.",
            "examples": [
              "Example Editorial"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000,
            "description": "Actual public publisher URL; absolute HTTP(S), without credentials.",
            "examples": [
              "https://example.com/"
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000,
            "description": "Public publisher logo URL used on the page; absolute HTTP(S), without credentials. Not the post’s hero image.",
            "examples": [
              "https://example.com/logo.png"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "ReviewDecisionDto": {
        "type": "object",
        "properties": {
          "expectedUpdatedAt": {
            "type": "string",
            "description": "The post’s `updatedAt` you read. If it changed since, the decision is refused with 409.",
            "examples": [
              "2026-10-07T09:41:12.301Z"
            ]
          },
          "note": {
            "type": "string",
            "description": "A note back to the author, up to 2,000 characters. Required to request changes.",
            "examples": [
              "Add a section on financing."
            ]
          }
        }
      },
      "ReviewRequestDto": {
        "type": "object",
        "properties": {
          "expectedUpdatedAt": {
            "type": "string",
            "description": "The post’s `updatedAt` you read. If it changed since, the request is refused with 409.",
            "examples": [
              "2026-10-07T09:41:12.301Z"
            ]
          },
          "reviewerMemberId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "The member to ask for the review. Defaults to the website’s `defaults.reviewerMemberId`; `null`: anyone who may review.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "reviewerMemberIds": {
            "description": "Members to ask for review. Takes precedence over reviewerMemberId. Empty: anyone who can review. Omit both to use website defaults.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
              ]
            ]
          },
          "note": {
            "type": "string",
            "description": "A note for the reviewer, up to 2,000 characters.",
            "examples": [
              "Please check the horsepower figures."
            ]
          }
        }
      },
      "SaveBlogToAssetsDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "format": "uuid",
            "description": "Destination Drive folder. Pass the organization id for My Drive. Omit to use the default folder.",
            "examples": [
              "b3c4d5e6-f7a8-49b0-8c1d-2e3f4a5b6c7d"
            ]
          }
        }
      },
      "SaveExportToAssetsResponseDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "The new file in your organization’s assets.",
            "examples": [
              "8c9d0e1f-2a3b-4c4d-9e5f-6a7b8c9d0e1f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Its file name: the slug, the language of a translation, and a timestamp.",
            "examples": [
              "how-to-choose-a-compact-tractor-20261007-101530412.docx"
            ]
          },
          "projectName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The post’s project it was filed in, or null when it went to `blog/posts`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "assetId",
          "name",
          "projectName"
        ]
      },
      "SaveHeroToAssetsResponseDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "The image in your organization’s assets.",
            "examples": [
              "8c9d0e1f-2a3b-4c4d-9e5f-6a7b8c9d0e1f"
            ]
          },
          "alreadySaved": {
            "type": "boolean",
            "description": "`true` when this image was already saved: the existing file is returned and nothing new is added.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "assetId",
          "alreadySaved"
        ]
      },
      "SiteAnalyticsDto": {
        "type": "object",
        "properties": {
          "google": {
            "description": "The Google connection, or null when Google is not connected.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogGoogleConnectionDto"
              }
            ]
          }
        },
        "required": [
          "google"
        ]
      },
      "SiteDefaultsDto": {
        "type": "object",
        "properties": {
          "memoryIds": {
            "description": "Memory notes from your organization’s memory library (in the Universe app) that every draft and Autopilot run of the website reads as context. Up to 25.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f5a6b7c-8d9e-4f0a-9b1c-2d3e4f5a6b7c"
              ]
            ]
          },
          "promptId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "A prompt from your organization’s prompt library (in the Universe app), added to every draft and Autopilot run. `null` clears it.",
            "examples": [
              "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b"
            ]
          },
          "brandKitId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The brand kit (`id` from List brand kits in the Image Translation API) whose tone of voice the posts follow, and which hero images and brand voice checks use. `null` clears it.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          },
          "tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation memory every translation of the website’s posts uses when the request names none (`id` from List translation memories in the Translation Memory API). Its term bases also feed term checks. `null` clears it.",
            "examples": [
              "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language posts are written in when Write a post names none: a BCP-47 `code` from List languages (Platform API). Without it, posts are written in `en-US`. `null` or an empty string clears it.",
            "examples": [
              "en-US"
            ]
          },
          "reviewerMemberId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member Send a post for review asks when the request names nobody. `null`: anyone who may review.",
            "examples": [
              "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
            ]
          },
          "reviewerMemberIds": {
            "description": "All reviewers; empty means anyone who can review.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d"
              ]
            ]
          },
          "audioVoice": {
            "description": "The voice Record a post uses when the request names none. `null` clears it.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogVoiceDto"
              }
            ]
          },
          "localiseSeo": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether each translation also gets a native meta title, description, keywords and slug (the localized SEO pass, charged with the translation). On unless set to `false`.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "reviewerMemberIds"
        ]
      },
      "SiteInsightsDto": {
        "type": "object",
        "properties": {
          "connected": {
            "type": "boolean",
            "description": "Whether Google is connected to the website.",
            "examples": [
              true
            ]
          },
          "google": {
            "description": "The Google connection: the properties chosen and the last sync. Null when Google is not connected.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogGoogleConnectionDto"
              }
            ]
          },
          "ga4": {
            "description": "The latest Google Analytics 4 data. Null until a Google Analytics 4 property has been synced.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/Ga4InsightsDto"
              }
            ]
          },
          "gsc": {
            "description": "The latest Search Console data. Null until a Search Console property has been synced.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/GscInsightsDto"
              }
            ]
          }
        },
        "required": [
          "connected",
          "google",
          "ga4",
          "gsc"
        ]
      },
      "SitemapPageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the page in this run’s inventory.",
            "examples": [
              "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c"
            ]
          },
          "url": {
            "type": "string",
            "description": "The page URL, as the sitemap lists it.",
            "examples": [
              "https://example.com/blog/compact-tractor-maintenance-checklist"
            ]
          },
          "path": {
            "type": "string",
            "description": "Path (and query) of the URL.",
            "examples": [
              "/blog/compact-tractor-maintenance-checklist"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page's `<title>` (else its first heading) when the run read it; otherwise a title made from the last part of the URL. Null when neither gives one.",
            "examples": [
              "Compact Tractor Maintenance Checklist | Acme Tractors"
            ]
          },
          "metaDescription": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page's meta description, when the run read it and it has one.",
            "examples": [
              "A season-by-season checklist to keep your compact tractor running: fluids, filters, tires and the loader."
            ]
          },
          "lastmod": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the page last changed, from its `<lastmod>` in the sitemap. Null when the sitemap gives none.",
            "examples": [
              "2026-08-14T00:00:00.000Z"
            ]
          },
          "fetchStatus": {
            "type": "string",
            "enum": [
              "pending",
              "fetched",
              "skipped",
              "failed"
            ],
            "description": "`fetched`: the run read the page. `skipped`: it did not, because the page was beyond its crawl limit or `fetchPages` was `false`. `failed`: the page could not be read. `pending`: not read yet.",
            "examples": [
              "fetched"
            ]
          },
          "isArticle": {
            "type": "boolean",
            "description": "Whether the URL looks like an article or post, rather than a tag, category, cart, account or legal page.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "id",
          "url",
          "path",
          "title",
          "metaDescription",
          "lastmod",
          "fetchStatus",
          "isArticle"
        ]
      },
      "SitemapPageListDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Pages in the inventory, on all pages of the list.",
            "examples": [
              412
            ]
          },
          "items": {
            "description": "This page of the inventory: articles first, then by path.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SitemapPageDto"
            }
          }
        },
        "required": [
          "total",
          "items"
        ]
      },
      "SitePerformanceDto": {
        "type": "object",
        "properties": {
          "connected": {
            "type": "boolean",
            "description": "Whether Google is connected to the website.",
            "examples": [
              true
            ]
          },
          "comparedWith": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the earlier sync the trends compare with was made. Null when there is none yet.",
            "examples": [
              "2026-09-30T04:00:09.000Z"
            ]
          },
          "latest": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the latest sync was made. Null before the first one.",
            "examples": [
              "2026-10-07T04:00:12.000Z"
            ]
          },
          "posts": {
            "description": "The website’s posts with a `publishedUrl` that the analytics know about, falling ones first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostPerformanceDto"
            }
          }
        },
        "required": [
          "connected",
          "comparedWith",
          "latest",
          "posts"
        ]
      },
      "StagedUploadTicketDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the file bytes to it within `expiresInSeconds`, with exactly the headers in `headers`, without your API key."
          },
          "uploadKey": {
            "type": "string",
            "description": "The upload key. Send it as `uploadKey` to the step the file is for once the `PUT` has finished. It can be used once, and an upload not used within a day is deleted.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….csv"
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers the `PUT` must send exactly (the URL is signed over them).",
            "examples": [
              {
                "Content-Type": "text/csv",
                "Content-Disposition": "attachment"
              }
            ]
          },
          "expiresInSeconds": {
            "type": "number",
            "description": "Seconds the URL stays valid for starting the `PUT`.",
            "examples": [
              600
            ]
          },
          "maxBytes": {
            "type": "number",
            "description": "The largest file this step takes, in bytes.",
            "examples": [
              26214400
            ]
          }
        },
        "required": [
          "uploadUrl",
          "uploadKey",
          "headers",
          "expiresInSeconds",
          "maxBytes"
        ]
      },
      "StartAutopilotRunDto": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid",
            "description": "The website to audit (`id` from List websites).",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "sitemapUrl": {
            "type": "string",
            "description": "The sitemap to read for this run, instead of the website’s `sitemapUrl`. Without either, the run looks for one in robots.txt and at the usual places.",
            "examples": [
              "https://example.com/sitemap.xml"
            ]
          },
          "targetTopics": {
            "type": "number",
            "default": 500,
            "minimum": 10,
            "maximum": 1000,
            "description": "How many topics to plan in total, from 10 to 1,000. The run is priced on it: see Price an Autopilot run.",
            "examples": [
              50
            ]
          },
          "topicsPerCluster": {
            "type": "number",
            "default": 10,
            "minimum": 3,
            "maximum": 25,
            "description": "How many topics each keyword cluster gets, from 3 to 25.",
            "examples": [
              10
            ]
          },
          "fetchPages": {
            "type": "boolean",
            "default": true,
            "description": "Read the title and meta description of each page (up to the crawl limit), or work from the URLs alone."
          },
          "useSearch": {
            "type": "boolean",
            "default": true,
            "description": "Let the model search the web while it plans. Only OpenAI models can; with another model it is ignored."
          },
          "useAnalytics": {
            "type": "boolean",
            "default": true,
            "description": "Use the website’s Google Analytics 4 and Search Console data, when Google is connected."
          },
          "memoryIds": {
            "description": "Memory notes from your organization’s memory library to read as context, up to 25. Defaults to the website’s `defaults.memoryIds`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f5a6b7c-8d9e-4f0a-9b1c-2d3e4f5a6b7c"
              ]
            ]
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "description": "A prompt from your organization’s prompt library, added to the run’s instructions. Defaults to the website’s `defaults.promptId`.",
            "examples": [
              "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b"
            ]
          },
          "promptVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Values for the `{{placeholders}}` of that prompt.",
            "examples": [
              {
                "region": "US Midwest"
              }
            ]
          },
          "brief": {
            "type": "string",
            "description": "What the strategist should know, up to 8,000 characters: goals, audience, offers, what to favor or avoid.",
            "examples": [
              "We sell compact and sub-compact tractors to smallholders in the US Midwest. Favor buying guides and mention our 0% financing offer."
            ]
          }
        },
        "required": [
          "siteId"
        ]
      },
      "StructuredDataDto": {
        "type": "object",
        "properties": {
          "warnings": {
            "description": "Publishing notes: missing actual URL, public byline, breadcrumb limitations and FAQ visibility requirements.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Set this language’s actual published URL before installing the markup."
              ]
            ]
          },
          "jsonLd": {
            "type": "object",
            "additionalProperties": true,
            "description": "Schema.org BlogPosting from this language’s saved title/body and visible images. FAQPage is included only for exact visible question/answer pairs. Empty body yields an empty graph. URLs are never guessed; bylines and breadcrumbs are not inferred. wordCount is the platform word count of the body, the same figure the editor shows.",
            "examples": [
              {
                "@context": "https://schema.org",
                "@graph": [
                  {
                    "@type": "BlogPosting",
                    "headline": "How to Choose a Compact Tractor (2026 Buyer's Guide)",
                    "inLanguage": "en-US",
                    "url": "https://example.com/blog/how-to-choose-a-compact-tractor",
                    "wordCount": 1540
                  }
                ]
              }
            ]
          },
          "html": {
            "type": "string",
            "description": "The same JSON-LD in a `<script type=\"application/ld+json\">` tag, ready for the page.",
            "examples": [
              "<script type=\"application/ld+json\">\n{ \"@context\": \"https://schema.org\", \"@graph\": [ … ] }\n</script>"
            ]
          },
          "score": {
            "description": "The on-page SEO score of the post, or of the translation with `translationId`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoScoreDto"
              }
            ]
          },
          "hreflang": {
            "description": "The hreflang links of the post and its translations.",
            "allOf": [
              {
                "$ref": "#/components/schemas/HreflangDto"
              }
            ]
          }
        },
        "required": [
          "warnings",
          "jsonLd",
          "html",
          "score",
          "hreflang"
        ]
      },
      "SyncFromTmDto": {
        "type": "object",
        "properties": {
          "expectedUpdatedAt": {
            "type": "string",
            "description": "The translation’s `updatedAt` when you read it. If it changed since, the sync is refused with 409 and nothing changes. Leave it out to sync regardless.",
            "examples": [
              "2026-10-07T09:44:03.512Z"
            ]
          }
        }
      },
      "SyncFromTmResultDto": {
        "type": "object",
        "properties": {
          "pulled": {
            "type": "number",
            "description": "Sentences replaced with the memory's wording.",
            "examples": [
              2
            ]
          },
          "untouched": {
            "type": "number",
            "description": "Paired sentences left as they were: the memory holds no other wording for them.",
            "examples": [
              140
            ]
          },
          "unaligned": {
            "type": "number",
            "description": "Source sentences skipped because their paragraph was split, merged or removed in the translation.",
            "examples": [
              1
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in one sentence.",
            "examples": [
              "Replaced 2 segments with the Translation Memory's wording."
            ]
          },
          "translation": {
            "description": "The translation, with its text as it is now.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogTranslationWithContentDto"
              }
            ]
          }
        },
        "required": [
          "pulled",
          "untouched",
          "unaligned",
          "message",
          "translation"
        ]
      },
      "SyncToTmDto": {
        "type": "object",
        "properties": {
          "expectedUpdatedAt": {
            "type": "string",
            "description": "The translation revision used for pairing. Required with newPairs; stale revisions return 409."
          },
          "newPairs": {
            "description": "Explicit source counterparts for new target-only segments, at most 100 per request. Omitted segments stay unpaired. Successful pairs are retained for later syncs.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NewTmSourcePairDto"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "verified",
              "approved"
            ],
            "default": "verified",
            "description": "The review status the corrected sentences are stored with in the memory: `unverified`, `verified` or `approved`."
          }
        }
      },
      "SyncToTmResultDto": {
        "type": "object",
        "properties": {
          "synced": {
            "type": "number",
            "description": "Corrected sentences written to the memory.",
            "examples": [
              4
            ]
          },
          "failed": {
            "type": "number",
            "description": "Corrected sentences that could not be written. Call again to retry them.",
            "examples": [
              0
            ]
          },
          "unaligned": {
            "type": "number",
            "description": "Source sentences skipped because their paragraph was split, merged or removed in the translation.",
            "examples": [
              1
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in one sentence.",
            "examples": [
              "Synced 4 segments to the Translation Memory."
            ]
          },
          "translation": {
            "description": "The translation, with its text. The text itself is unchanged.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BlogTranslationWithContentDto"
              }
            ]
          }
        },
        "required": [
          "synced",
          "failed",
          "unaligned",
          "message",
          "translation"
        ]
      },
      "TermLintDto": {
        "type": "object",
        "properties": {
          "translationId": {
            "type": "string",
            "format": "uuid",
            "description": "Check a finished translation of the post (`id` from List translations) instead of the post: that the approved wording of each glossary term is used. Without it, the post is checked for forbidden terms.",
            "examples": [
              "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "tmId": {
            "type": "string",
            "format": "uuid",
            "description": "The translation memory whose term bases to check against (`id` from List translation memories in the Translation Memory API). Defaults to the website’s `defaults.tmId`; required when it has none.",
            "examples": [
              "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
            ]
          }
        }
      },
      "TmSyncStatusDto": {
        "type": "object",
        "properties": {
          "linked": {
            "type": "boolean",
            "description": "Whether the translation has a translation memory to sync with.",
            "examples": [
              true
            ]
          },
          "tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation memory it syncs with. Null when it has none.",
            "examples": [
              "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
            ]
          },
          "syncable": {
            "type": "boolean",
            "description": "Whether Sync to the translation memory and Sync from the translation memory can run now. When `false`, `reason` says why and the counts are 0.",
            "examples": [
              true
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the translation cannot be synced: `No Translation Memory is linked to this translation.`, `The translation has not finished yet.`, or that it can no longer be paired with its source (translated before its source was kept, or its structure no longer matches), in which case Translate again. Null when `syncable` is `true`.",
            "examples": [
              null
            ]
          },
          "segments": {
            "type": "number",
            "description": "Source sentences that pair with exactly one sentence of the translation: the sentences a sync compares.",
            "examples": [
              142
            ]
          },
          "edited": {
            "type": "number",
            "description": "Of those, the sentences a person corrected since the last sync: what Sync to the translation memory writes (a Reference-mode memory gets every one of `segments`).",
            "examples": [
              4
            ]
          },
          "unaligned": {
            "type": "number",
            "description": "Source sentences whose paragraph was split, merged or removed in the translation. Neither sync can pair them, so both skip them.",
            "examples": [
              1
            ]
          },
          "unpaired": {
            "type": "number",
            "description": "Current body segments without a reliable source pair. Supply a matching source text through newPairs when syncing, or add it to the original and retranslate.",
            "examples": [
              1
            ]
          },
          "unpairedSegments": {
            "description": "New target-only segments available for explicit source pairing in Sync to TM.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnpairedTmSegmentDto"
            }
          },
          "tmDiffers": {
            "type": [
              "number",
              "null"
            ],
            "description": "Only with `withTm=true`: the sentences the memory now words differently, which Sync from the translation memory would replace (overwriting any of the `edited` ones among them). Null otherwise.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "linked",
          "tmId",
          "syncable",
          "reason",
          "segments",
          "edited",
          "unaligned",
          "unpaired",
          "unpairedSegments",
          "tmDiffers"
        ]
      },
      "TopicOutlineSectionDto": {
        "type": "object",
        "properties": {
          "heading": {
            "type": "string",
            "description": "The section heading (an H2 of the post).",
            "examples": [
              "Horsepower classes, explained"
            ]
          },
          "notes": {
            "type": "string",
            "description": "What the section must cover. Absent when none was given.",
            "examples": [
              "Sub-compact, compact and utility ranges, and what each one can lift and pull."
            ]
          }
        },
        "required": [
          "heading"
        ]
      },
      "UnpairedTmSegmentDto": {
        "type": "object",
        "properties": {
          "index": {
            "type": "number",
            "description": "Position in the current saved body text segments."
          },
          "text": {
            "type": "string",
            "description": "Exact saved target-language text that needs a source counterpart."
          }
        },
        "required": [
          "index",
          "text"
        ]
      },
      "UpdateEntryDto": {
        "type": "object",
        "properties": {
          "scheduledFor": {
            "type": "string",
            "description": "Move the entry to this day, `YYYY-MM-DD`.",
            "examples": [
              "2026-10-14"
            ]
          },
          "title": {
            "type": "string",
            "description": "A new title. An empty string keeps the current one.",
            "examples": [
              "Compact tractor financing explained"
            ]
          },
          "brief": {
            "type": "string",
            "description": "A new brief. An empty string clears it.",
            "examples": [
              "For first-time buyers: compare dealer financing with a bank loan."
            ]
          },
          "targetKeyword": {
            "type": "string",
            "description": "A new target keyword. An empty string clears it.",
            "examples": [
              "tractor financing"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "skipped"
            ],
            "description": "Skip an entry, or put a skipped (or failed) one back."
          }
        }
      },
      "UpdatePostDto": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "number",
            "description": "The `versionCount` you read. If the post changed since, the save is refused with 409 and nothing changes. Leave it out to save regardless.",
            "examples": [
              3
            ]
          },
          "title": {
            "type": "string",
            "description": "A new title, up to 500 characters. An empty string keeps the current one.",
            "examples": [
              "How to choose a compact tractor in 2026"
            ]
          },
          "contentHtml": {
            "type": "string",
            "description": "The whole post as HTML, replacing the current text. It is cleaned on save to the editor’s HTML (headings, paragraphs, lists, links, images, tables and inline formatting); anything else, such as scripts, is removed. The Markdown copy and the word count follow.",
            "examples": [
              "<p>A compact tractor is the workhorse of a smallholding…</p><h2>How much horsepower do you need?</h2>"
            ]
          },
          "seo": {
            "description": "The whole SEO pack, replacing the current one, so send every field: a text field left out is saved empty (except `focusKeyword`, which falls back to the post’s target keyword). A `slug` in it also becomes the post’s `slug`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "publicAttribution": {
            "description": "Replace this language’s public authors and publisher, exactly as shown on its page. Null clears; omitted preserves. No source-language or internal identity fallback. Names are 1–250 characters, up to 10 authors; URLs must be absolute HTTP(S) without credentials. Versioned with the content.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "in_review",
              "ready",
              "published",
              "archived"
            ],
            "description": "Move the post to `draft`, `ready`, `published` or `archived`. `in_review` goes through Send a post for review; a post sent for review needs its approval before `ready` or `published`. `published` also sets `publishedAt` and sends the `post.published` webhook event.",
            "examples": [
              "published"
            ]
          },
          "publishedUrl": {
            "type": "string",
            "description": "Where the post is live: an HTTP or HTTPS URL. It feeds the post’s structured data, hreflang links and analytics. An empty string clears it.",
            "examples": [
              "https://example.com/blog/how-to-choose-a-compact-tractor"
            ]
          },
          "note": {
            "type": "string",
            "description": "A note on the new version, up to 500 characters, shown in List versions.",
            "examples": [
              "Tightened the intro"
            ]
          },
          "aiAssisted": {
            "type": "boolean",
            "description": "Send `true` when the save carries text an AI action wrote (the `outputText` of Run an editor action or Refresh from analytics). Such a save is not counted as a person’s editing work.",
            "examples": [
              false
            ]
          }
        }
      },
      "UpdateSiteDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name. An empty string keeps the current one.",
            "examples": [
              "Acme Tractors"
            ]
          },
          "websiteUrl": {
            "type": "string",
            "description": "The website, as in Add a website. A sitemap URL here also sets `sitemapUrl` unless you send one.",
            "examples": [
              "https://example.com/blog"
            ]
          },
          "sitemapUrl": {
            "type": "string",
            "description": "The sitemap. An empty string clears it.",
            "examples": [
              "https://example.com/sitemap.xml"
            ]
          },
          "defaults": {
            "description": "Defaults to change: merged into the current ones key by key, so send only what changes. `null` clears a key; send `memoryIds: []` to clear the memories.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SiteDefaultsDto"
              }
            ]
          }
        }
      },
      "UpdateTopicDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "suggested",
              "dismissed"
            ],
            "description": "`dismissed` hides the topic from the backlog; `suggested` puts it back.",
            "examples": [
              "dismissed"
            ]
          }
        }
      },
      "UpdateTranslationDto": {
        "type": "object",
        "properties": {
          "expectedUpdatedAt": {
            "type": "string",
            "description": "The translation’s `updatedAt` when you read it. If it changed since, the save is refused with 409 and nothing changes. Leave it out to save regardless.",
            "examples": [
              "2026-10-07T09:44:03.512Z"
            ]
          },
          "title": {
            "type": "string",
            "description": "The translated title, up to 500 characters. An empty string keeps the current one.",
            "examples": [
              "Comment choisir un tracteur compact"
            ]
          },
          "contentHtml": {
            "type": "string",
            "description": "The whole translated text as HTML, replacing the current one. It is cleaned to the editor’s HTML on save (headings, paragraphs, lists, links, images, tables and inline formatting); anything else, such as scripts, is removed.",
            "examples": [
              "<h2>De quelle puissance avez-vous besoin ?</h2><p>Pour la plupart des petites exploitations, 25 à 50 ch suffisent.</p>"
            ]
          },
          "seo": {
            "description": "The translation’s whole SEO pack, replacing the current one, so send every field: a text field left out is saved empty (except `focusKeyword`, which keeps the current one). A `slug` in it also becomes the translation’s `slug`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PostSeoDto"
              }
            ]
          },
          "publicAttribution": {
            "description": "Replace this language’s public authors and publisher, exactly as shown on its page. Null clears; omitted preserves. No source-language or internal identity fallback. Names are 1–250 characters, up to 10 authors; URLs must be absolute HTTP(S) without credentials. Versioned with the content.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAttributionDto"
              }
            ]
          },
          "publishedUrl": {
            "type": "string",
            "description": "Where this language version is live: an HTTP or HTTPS URL. The post’s hreflang links are built from it. An empty string clears it.",
            "examples": [
              "https://example.com/fr/blog/comment-choisir-un-tracteur-compact"
            ]
          }
        }
      },
      "UpdateWebhookDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "A new endpoint, checked as at registration: a public `https://` URL, up to 1,000 characters. Retries still queued go to the new URL.",
            "examples": [
              "https://hooks.example.com/vitra"
            ]
          },
          "events": {
            "type": "array",
            "description": "The events to receive, replacing the current list. At least one.",
            "items": {
              "type": "string",
              "enum": [
                "post.generated",
                "post.failed",
                "post.review_requested",
                "post.approved",
                "post.published",
                "translation.done",
                "translation.failed",
                "audio.done",
                "autopilot.finished",
                "webhook.test"
              ]
            },
            "examples": [
              [
                "post.generated",
                "post.failed",
                "translation.done",
                "translation.failed"
              ]
            ]
          },
          "description": {
            "type": "string",
            "description": "A new label, up to 200 characters. An empty string clears it.",
            "examples": [
              "CMS sync"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "`false` pauses the webhook: events that happen while it is paused are never sent, and retries already queued are dropped. `true` resumes it and clears its failure streak and `disabledReason`.",
            "examples": [
              true
            ]
          }
        }
      },
      "UpsertCadenceDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "default": false,
            "description": "Turn the cadence on or off. On, it plans the calendar now and runs every day at `hour`; off, it stops running and keeps its entries."
          },
          "mode": {
            "type": "string",
            "enum": [
              "plan",
              "auto"
            ],
            "description": "`plan` fills the calendar from the topic backlog; `auto` also writes each entry on its day, within the weekly credit budget. Defaults to the current mode, else `plan`."
          },
          "postsPerWeek": {
            "type": "number",
            "default": 2,
            "minimum": 1,
            "maximum": 14,
            "description": "Posts a week to plan, from 1 to 14.",
            "examples": [
              2
            ]
          },
          "weekdays": {
            "description": "The days entries land on: 0 = Sunday … 6 = Saturday, one to seven of them.",
            "default": [
              1,
              3
            ],
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                1,
                3
              ]
            ]
          },
          "hour": {
            "type": "number",
            "default": 9,
            "minimum": 0,
            "maximum": 23,
            "description": "The hour (0 to 23, in `timezone`) the cadence runs every day.",
            "examples": [
              9
            ]
          },
          "timezone": {
            "type": "string",
            "default": "UTC",
            "description": "An IANA time zone, such as `America/Chicago` or `Asia/Kolkata`.",
            "examples": [
              "America/Chicago"
            ]
          },
          "weeklyBudgetCredits": {
            "type": "number",
            "default": 5000,
            "description": "Credits `auto` mode may spend on writing entries per ISO week (Monday to Sunday), from 0 to 10,000,000.",
            "examples": [
              5000
            ]
          },
          "requireReview": {
            "type": "boolean",
            "default": true,
            "description": "Send every post the calendar writes for review."
          },
          "horizonWeeks": {
            "type": "number",
            "default": 4,
            "minimum": 1,
            "maximum": 12,
            "description": "How many weeks ahead to keep planned, from 1 to 12.",
            "examples": [
              4
            ]
          },
          "targetWordCount": {
            "type": [
              "object",
              "null"
            ],
            "minimum": 300,
            "maximum": 8000,
            "description": "Words per post the calendar writes, from 300 to 8,000. `null` keeps each topic’s own suggested length.",
            "examples": [
              1200
            ]
          }
        }
      },
      "VoiceCheckDto": {
        "type": "object",
        "properties": {
          "brandKitId": {
            "type": "string",
            "format": "uuid",
            "description": "The brand kit to check against (`id` from List brand kits in the Image Translation API). Defaults to the post’s brand kit, then the website’s.",
            "examples": [
              "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a"
            ]
          }
        }
      },
      "WebhookDeliveryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Delivery ID: the `id` of its payload and the `x-vitra-delivery` header. It stays the same across retries.",
            "examples": [
              "0d6f0c2e-6c2a-4c4e-9d2a-3b0f2f0a1e11"
            ]
          },
          "webhookId": {
            "type": "string",
            "format": "uuid",
            "description": "The webhook it was sent to.",
            "examples": [
              "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5e"
            ]
          },
          "event": {
            "type": "string",
            "enum": [
              "post.generated",
              "post.failed",
              "post.review_requested",
              "post.approved",
              "post.published",
              "translation.done",
              "translation.failed",
              "audio.done",
              "autopilot.finished",
              "webhook.test"
            ],
            "description": "The event.",
            "examples": [
              "post.generated"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "delivered",
              "failed",
              "exhausted"
            ],
            "description": "`pending`: queued, or an attempt is under way. `delivered`: your endpoint answered with a 2xx. `failed`: the latest attempt failed and another is due at `nextAttemptAt`. `exhausted`: it will not be tried again, because six attempts failed, a test delivery failed (tests are not retried), or the webhook was paused, switched off or deleted before a retry.",
            "examples": [
              "delivered"
            ]
          },
          "attempts": {
            "type": "number",
            "description": "Attempts made so far, the successful one included. At most 6.",
            "examples": [
              1
            ]
          },
          "payload": {
            "description": "The JSON body sent to your endpoint, exactly as signed. Every attempt sends the same body.",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookPayloadDto"
              }
            ]
          },
          "lastStatusCode": {
            "type": [
              "number",
              "null"
            ],
            "description": "HTTP status your endpoint answered on the latest attempt. Null before the first attempt, or when the latest got no answer.",
            "examples": [
              200
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the latest attempt failed, up to 2,000 characters: `HTTP <status>: <the start of your response body>`, `Timed out after 10000 ms`, a refusal of the URL such as `The URL must point to a public address.`, or `The endpoint could not be reached. Check that the URL is a public https:// address that accepts connections.` A retry dropped because the webhook was paused, switched off or deleted says `Webhook is disabled` or `Webhook no longer exists`. Null after a success.",
            "examples": [
              null
            ]
          },
          "nextAttemptAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the next attempt is due. Set while `failed` (and while an attempt is under way); null once `delivered` or `exhausted`.",
            "examples": [
              null
            ]
          },
          "deliveredAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When your endpoint accepted it with a 2xx. Null until then.",
            "examples": [
              "2026-10-07T09:41:12.902Z"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the delivery was queued.",
            "examples": [
              "2026-10-07T09:41:12.326Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the delivery last changed.",
            "examples": [
              "2026-10-07T09:41:12.902Z"
            ]
          }
        },
        "required": [
          "id",
          "webhookId",
          "event",
          "status",
          "attempts",
          "payload",
          "lastStatusCode",
          "lastError",
          "nextAttemptAt",
          "deliveredAt",
          "createdAt",
          "updatedAt"
        ]
      },
      "WebhookPayloadDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Delivery ID, also sent in the `x-vitra-delivery` header. A retry sends the same `id` and the same body: de-duplicate on it.",
            "examples": [
              "0d6f0c2e-6c2a-4c4e-9d2a-3b0f2f0a1e11"
            ]
          },
          "event": {
            "type": "string",
            "enum": [
              "post.generated",
              "post.failed",
              "post.review_requested",
              "post.approved",
              "post.published",
              "translation.done",
              "translation.failed",
              "audio.done",
              "autopilot.finished",
              "webhook.test"
            ],
            "description": "What happened. Also sent in the `x-vitra-event` header.",
            "examples": [
              "post.generated"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the event happened.",
            "examples": [
              "2026-10-07T09:41:12.318Z"
            ]
          },
          "orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "8f0b7f5e-2c1d-4c7e-9b2f-1a2b3c4d5e6f"
            ]
          },
          "siteId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The website the event belongs to. Null for a post that belongs to no website.",
            "examples": [
              "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b"
            ]
          },
          "data": {
            "type": "object",
            "additionalProperties": true,
            "description": "What happened; its keys depend on `event`. `post.generated`: `post`, `model` (the model that wrote the draft) and `credits` (what the draft was charged when it started; the charge is settled to the words written right after). `post.failed`: `post` and `error`. `post.review_requested` and `post.approved`: `post`, `reviewerMemberId` and `note`; `reviewerMemberId` is the member asked to review (null when anyone who can review may) or, for `post.approved`, the member who approved. `post.published`: `post`, `publishedUrl` and `publishedAt`. `translation.done`: `translation` and `postId`; `translation.failed` adds `error`. `translation` is as List translations returns it, without `contentHtml`: read the text with Get a translation. `audio.done`: `audio` and `postId`; `audio` is the recording with `url` and `downloadUrl` null, so get working links with Get a recording. `autopilot.finished`: `run`, with `id`, `siteId`, `status` (`succeeded` or `failed`), `progress`, `credits`, `finishedAt`, and `error` when it failed. `webhook.test`: `message`. `post` is the post without its content: `id`, `siteId`, `title`, `slug`, `status`, `sourceLanguage`, `wordCount`, `publishedUrl`, `seo` (null until its SEO pack is written) and `updatedAt`; read the content with Get a post.",
            "examples": [
              {
                "post": {
                  "id": "5e8d1c2b-7a6f-4b3e-9c1d-2e3f4a5b6c7d",
                  "siteId": "c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
                  "title": "How to choose a compact tractor",
                  "slug": "how-to-choose-a-compact-tractor",
                  "status": "draft",
                  "sourceLanguage": "en-US",
                  "wordCount": 1540,
                  "publishedUrl": null,
                  "seo": null,
                  "updatedAt": "2026-10-07T09:41:12.301Z"
                },
                "model": "gpt-5.6-terra",
                "credits": 770
              }
            ]
          }
        },
        "required": [
          "id",
          "event",
          "createdAt",
          "orgId",
          "siteId",
          "data"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
