{"openapi":"3.1.0","info":{"title":"Tribune Desk CMS API","description":"Contract between a CMS and Tribune Desk. The CMS is the client: it polls changes with a cursor (`GET /changes`) and sends its own.\n\n**Authentication:** `Authorization: Bearer tdcms_...`. A super admin issues the token for one organization with scopes `media:read`, `media:write`, `settings:read`, `settings:write`, `backfill:write`, `articles:read`, `articles:write`.\n\n**Limits:** 600 requests per minute per token (`429` with `Retry-After`).\n\n**Errors:** every error of every route has the body `ApiError` (`code`, `message`, `retry_after`).\n\nOperations marked `x-status: planned` require their scope but answer `501 not_implemented`.","version":"3.9.1-draft"},"servers":[{"url":"https://api.tribunedesk.com"}],"paths":{"/v3/cms/openapi.json":{"get":{"tags":["cms-v3"],"summary":"This OpenAPI document","description":"The contract as an OpenAPI 3.1 document. No token needed.","operationId":"getOpenapi","responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}},"security":[]}},"/v3/cms/status":{"get":{"tags":["cms-v3"],"summary":"Integration status","operationId":"getStatus","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/changes":{"get":{"tags":["cms-v3"],"summary":"Changes for the CMS since a cursor","description":"Changed fields, new files (`new_asset`), settings changes and, with `td_deletion_marks_in_cms`, files trashed (`deleted`) or restored (`restored`) in Tribune Desk, oldest first; skip kinds you do not know. Every read of a `new_asset` change renews its `file_url`; a file that was trashed, deleted or linked meanwhile is left out and the cursor still moves on. A `settings` change carries no `asset_id` and no values: re-read `GET /settings`. `cursor` omitted means: start from now - no history is returned, only an empty list and a `next_cursor`. `next_cursor` is present on every 200, so a client always has a cursor to continue from. Pass it to acknowledge and continue. Changes are kept 90 days; an older cursor gives `410 cursor_expired`: run `POST /resync` and resume with the cursor it returns. `409 state_conflict` when the integration is not enabled (a super admin enables it).","operationId":"getChanges","security":[{"BearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last acknowledged cursor; omit to start from now.","title":"Cursor"},"description":"Last acknowledged cursor; omit to start from now."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`state_conflict`: the integration is not enabled. A frozen organization (`project_deactivated`) rejects writes only, so a read still works.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"410":{"description":"`cursor_expired`: the cursor is older than 90 days, or the integration was disabled and enabled again. Run `POST /resync`, then resume with the cursor it returns.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/resync":{"post":{"tags":["cms-v3"],"summary":"Compare fields after an outage or an expired cursor","description":"Two forms. Preview: upload the CMS state, up to 100 items per request, in pages (`is_last` closes the upload), for either direction; nothing changes and the answer carries the number of differences. Confirm: `{resync_id, confirm: true}` applies a `ready` preview within 24 hours and returns the cursor to resume `/changes` from. The chosen direction wins. Resync covers only paired files; it does not restore new files or deletions - those need `POST /media/push-existing`. `409 state_conflict`: the integration is not enabled for the organization, a preview with more than 50000 differences, a page sent to a closed or expired session or with a different direction than its first page, or confirming a preview that is not `ready` or has expired, or a session started before the integration was re-enabled (run a new resync). Repeating the confirmation of an applied or held resync changes nothing and gives the same answer. Only fields enabled in the settings for the direction are compared and applied. Over `mass_change_threshold` differences the confirmation changes nothing and answers `status: held` with `held_batch_id` and the cursor: decide with `POST /held/{id}/decision`.","operationId":"resync","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResyncPreviewRequest"},{"$ref":"#/components/schemas/ResyncConfirmRequest"}],"title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResyncPreviewResponse"},{"$ref":"#/components/schemas/ResyncConfirmResponse"}],"title":"Response Resync"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such object in this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/held":{"get":{"tags":["cms-v3"],"summary":"Batches held by the mass-change threshold","description":"Batches of the organization, newest first. A `sent` batch stays listed while it is applied, and a decided batch for 24 hours after the end.","operationId":"listHeld","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldList"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/held/{held_id}/decision":{"post":{"tags":["cms-v3"],"summary":"Send or discard a held batch","description":"`send` answers `state: sent` at once; the changes are then applied in the background, in portions, and the cursor from `POST /resync` stays valid. `discard` changes nothing. `409 state_conflict`: the batch is no longer `pending`, the integration is not enabled, or `send` on a batch older than the change history (after re-enabling the integration or after 90 days), or `send` on a `cms_to_td` batch older than 7 days (`td_to_cms` has no such limit): discard it and run a new resync. `discard` always works. A `sent` batch that becomes older than the change history is not applied and turns `discarded`.","operationId":"decideHeld","security":[{"BearerAuth":[]}],"parameters":[{"name":"held_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Held Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldBatch"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such object in this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/media/fields":{"post":{"tags":["cms-v3"],"summary":"Field changes from the CMS","description":"Up to 100 items, each with at most one write per field and values up to 5000 characters. The result lists per-field outcomes; on `conflict` `winning_value` carries the value that won. A write without `base_version` applies when its `changed_at` is not older than the last change of the field in Tribune Desk (a `changed_at` in the future counts as now); otherwise `conflict_rule` decides, and a tie goes to the CMS. A run is the 60 minutes after the first counted change from the CMS; changes past `mass_change_threshold` in a run change nothing yet: their fields answer `held` and `held_batch_id` is set; decide with `POST /held/{id}/decision`. Values equal to the current ones answer `unchanged` and do not count. An unknown or trashed file answers `unknown`. `409 state_conflict` when the integration is not enabled.","operationId":"postFields","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/media":{"post":{"tags":["cms-v3"],"summary":"New files from the CMS","description":"Up to 100 items, downloaded later at their own pace; `cms_media_id` is any text of yours. `ok`: accepted; `known`: already received. Both carry `asset_id` once the file exists in Tribune Desk. An accepted item has no file yet: the pair appears after the import, and until then `POST /media/fields`, `POST /media/deletions` and `POST /resync` treat the id as unknown. Repeat the item to learn the `asset_id`; it stays `null` while the import runs. `rejected` with `reason`: `new_files_disabled`, `before_since`, `below_min_width`, `missing_metadata` (`width`, `height` and `mime_type` are required here), `host` (the URL is not `https` on a host allowed for the organization), `too_small` (under 800 pixels wide), `mime` (not JPEG, PNG or WebP), `excluded_agency`; `collage`, `screenshot`, `graphic`, `import_failed` (the import refused a file it already received). A refusal by the settings is not remembered: send the item again after the settings change. A refusal by the import is final. New files are not subject to `mass_change_threshold`; initial `fields` only help describe the file (see the schema). `409 state_conflict` when the integration or the media library is not enabled.","operationId":"postMedia","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMediaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/media/{asset_id}/link":{"post":{"tags":["cms-v3"],"summary":"CMS confirms it took a file from TD","description":"Call it after adding a `new_asset` file to your library, also when you already had the file (for example from an article delivery). `ok`: recorded; `known`: the same values were already recorded. `id` in the answer is your `cms_media_id`. After a change Tribune Desk adds a `fields` change with the current texts allowed by the settings, so a text changed after you read `new_asset` is not lost. Also the way to clear the missing mark of a file you sent yourself: take `asset_id` from `POST /media`. `404 not_found`: unknown or trashed file. `422 validation_error`: the URL is not `https` on a host allowed for the organization. `409 state_conflict`: the integration is not enabled, the `cms_media_id` belongs to another file, this file already has another `cms_media_id`, or Tribune Desk keeps no copy of this file and the URL differs.","operationId":"linkMedia","security":[{"BearerAuth":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResult"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such object in this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/media/push-existing":{"post":{"tags":["cms-v3"],"summary":"Send existing TD files to the CMS","description":"Queues up to 1000 files as `new_asset` changes, oldest first; `queued` says how many. Send `next_after` back as `after` until it is `null`: that ends the run, not `queued`. It skips files already linked and files whose change you have not acknowledged yet, so it does not duplicate. A file you acknowledged without linking it is not offered again within a run, so a file you cannot download does not block the rest; a new run, without `after`, offers it again. Only images allowed by the settings (`new_files_td_to_cms` with `td_to_cms_editor_files` or `td_to_cms_graphics`) are queued. Keep polling with your cursor: a poll without a cursor starts from now and skips what was queued. Files only add, so `mass_change_threshold` does not apply and `held_batch_id` stays `null`. `409 state_conflict` when the integration is not enabled or `GET /changes` has not been polled yet: poll first, so you hold a cursor from before the queued files. `422 validation_error`: an invalid `after`.","operationId":"pushExisting","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushExistingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushExistingResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/media/deletions":{"post":{"tags":["cms-v3"],"summary":"Deletions from the CMS","description":"Up to 100 items, each `cms_media_id` once. The file is marked as missing from the CMS and is no longer suggested to editors, whatever the settings say; the mark is set to `deleted_at`. With `cms_deletion_trashes_in_td` the file also goes to the trash; nothing is ever deleted permanently. `ok`: recorded. `known`: this deletion was already recorded. `unknown`: no such file in this organization yet; a file sent with `POST /media` and not imported yet answers this too, so report it again later. Moves to the trash count towards `mass_change_threshold` in the same 60-minute run as field changes; past it the file only gets the mark and the item answers `ok` with `reason: threshold`. That is final: repeating answers `known` and does not trash it. `held_batch_id` stays `null`: nothing waits for a decision. A trash caused here can also produce a `deleted` change in `GET /changes` when `td_deletion_marks_in_cms` is on; ignore it for a file you no longer have. Link the file again with `POST /media/{asset_id}/link` when it is back in your library: that clears the mark. `409 state_conflict` when the integration is not enabled.","operationId":"postDeletions","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/settings":{"get":{"tags":["cms-v3"],"summary":"Publisher settings","description":"`409 state_conflict` when the integration is not enabled for the organization (a super admin enables it).","operationId":"getSettings","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`state_conflict`: the integration is not enabled. A frozen organization (`project_deactivated`) rejects writes only, so a read still works.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]},"put":{"tags":["cms-v3"],"summary":"Save publisher settings","description":"`variant` is required. `options` is required exactly when `variant` is `custom` and forbidden otherwise; every option must then be given explicitly. A write that would change an option locked by the super admin, directly or through a variant, gives `409 option_locked` and saves nothing. `409 state_conflict` when the integration is not enabled.","operationId":"putSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `option_locked`: the option is locked by the super admin. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/backfill/requests":{"get":{"tags":["cms-v3"],"summary":"Export requests for the historical import","description":"Requests still waiting for candidates. A request leaves this list after its last page, when it reaches `max_files`, when it is cancelled and while it is paused; a paused request comes back when it resumes.","operationId":"listBackfillRequests","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillRequestList"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/backfill/requests/{request_id}/pages":{"post":{"tags":["cms-v3"],"summary":"A page of export results, newest first","description":"Up to 1000 candidates per page. Per item: `ok` (held for the request, also when you repeat a page), `known` (the file or its identifier is already in Tribune Desk) or `rejected` with `reason`: `host`, `too_small`, `mime`, `missing_metadata`, `agency` (the `credit`, or the `caption` when `credit` is empty, names an agency excluded for this organization) or `max_files` (the request is full). `is_last` closes the request, and so does reaching `max_files`; a request with no candidates closes with an empty last page. `409 state_conflict` when the request is closed (it took its last page, is full or cancelled), paused, or was never listed for your CMS. To tell a pause from the end, send an empty page with `is_last` false: a paused or open request answers `200` with `accepted: 0`, so keep your position; `409` again means the end. `404 not_found`: no such request in this organization.","operationId":"postBackfillPage","security":[{"BearerAuth":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillPageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillPageResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such object in this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/taxonomy/terms":{"post":{"tags":["cms-v3"],"summary":"Send categories and tags","description":"Level 3: send the categories and tags of your CMS, 1 to 1000 per request, so the editor can pick them and Tribune Desk can set them on a delivery. `run_id` marks a full run: send the same `run_id` on every page and `is_last: true` on the last; after that page the terms of your organization that the run did not send are removed. A run that never sends its last page removes nothing. Run one full run at a time; a page with a new `run_id` abandons the previous run. Without `run_id` the items are single changes (`deleted: true` removes a term; `unknown` when it was not there). Each item gets its own status. `409 state_conflict` when a full run was left open for more than 24 hours or a newer run abandoned it (nothing is applied; start a new run). `items` may be empty only on the last page of a full run, which then removes every term.","operationId":"postTaxonomyTerms","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyPageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}},"/v3/cms/articles/awaiting":{"get":{"tags":["cms-v3"],"summary":"List sends waiting for a result (read mode)","description":"Read mode: the sends your CMS has not reported a result for yet, oldest first, up to 100 per page. Use it after `410 cursor_expired` on `GET /changes` when your token has no `media:write` for `POST /resync`: handle these sends, then poll `GET /changes` again without a cursor. A send replaced by a newer send of the same article is not listed.","operationId":"listAwaitingArticles","security":[{"BearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous page.","title":"Cursor"},"description":"`next_cursor` of the previous page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwaitingArticlesPage"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/articles/{article_id}":{"get":{"tags":["cms-v3"],"summary":"Read a sent article (read mode)","description":"Read mode, for a CMS without a public endpoint: the same body the `article.delivered` webhook would carry, built from the current state of the article. Fetch it after an `article_sent` change in `GET /changes`, then report the outcome with `POST /articles/{article_id}/result`, passing the `X-Delivery-Id` header of this answer as `delivery_id`. `sent_at` is when the editor made that send. `404 not_found`: no such article in the organization, or it was never sent to the CMS.","operationId":"getArticle","security":[{"BearerAuth":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDelivery"}}},"headers":{"X-Delivery-Id":{"description":"The send this body belongs to; pass it as `delivery_id` of `POST /articles/{article_id}/result`.","schema":{"type":"string","format":"uuid"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such object in this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/articles/{article_id}/result":{"post":{"tags":["cms-v3"],"summary":"Report the outcome of a sent article (read mode)","description":"Read mode: the body your webhook would answer with, plus `delivery_id` and `error` (`ArticleResultReport`). Tribune Desk stores `social_queue_exclude`, `permalink`, `cms_post_id`, `edit_url`, `publication` and `taxonomy` and marks the send as delivered; with `error` it marks the send as failed and stores nothing else. Unlike a webhook answer, this request is validated: a field of the wrong type gives `422 validation_error`. A field of the right type that is not stored (an `edit_url` that is not `http(s)`, a `permalink` that is not a public address) is listed in `ignored_fields`. Repeating the result is safe: with `delivery_id` of a send already delivered the answer is the same and nothing is stored again. `404 not_found`: no such article in the organization. `409 state_conflict`: the article was never sent to the CMS, or `delivery_id` names a send that a newer send replaced (fetch the article again) or a webhook send waiting for its retry; nothing is stored.","operationId":"reportArticleResult","security":[{"BearerAuth":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleResultReport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleResultAck"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such object in this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes. `state_conflict`: the object is not in a state that allows this; the route description says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v3/cms/articles/published":{"post":{"tags":["cms-v3"],"summary":"Report where articles were published (link back)","description":"Level 2 (link back): tell Tribune Desk the public address of posts made from delivered articles, 1 to 100 per request. Tribune Desk shows the link to the editor and uses the article as a target of internal links. Each item gets its own status; a bad item does not fail the others. Repeating an item with the same address changes nothing.","operationId":"reportPublishedArticles","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishedArticlesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishedArticlesResponse"}}}},"401":{"description":"`unauthorized`: missing, unknown or revoked token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`forbidden`: the token lacks the scope of this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`project_deactivated`: the organization is frozen and rejects writes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"`validation_error`: the request does not match the schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`rate_limited`: retry after `retry_after` seconds (the `Retry-After` header carries the same whole number of seconds).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"`internal_error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"`unavailable`: temporary; retry after `retry_after` seconds (also `Retry-After`).","headers":{"Retry-After":{"description":"Whole seconds to wait before retrying; the same as `retry_after`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"BearerAuth":[]}]}}},"webhooks":{"article.delivered":{"post":{"summary":"An article is sent to your CMS","description":"Sent when an editor clicks \"Send to CMS\" (or a newsroom widget sends the article). Tribune Desk makes a `POST` with a JSON body to the webhook address set for the organization.\n\n**Signature:** every request carries `webhook-id`, `webhook-timestamp` and `webhook-signature` as defined by Standard Webhooks: HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the base64-decoded secret, as `v1,<base64>`. Two active secrets give two space-separated signatures; any match is valid. Reject a timestamp more than 5 minutes from your clock. `webhook-id` is the same for every attempt of one send. The signature is the only proof that a request comes from Tribune Desk. An organization without a signing secret (`whsec_...`, issued by a super admin) gets no deliveries, so a request without these headers is not from Tribune Desk.\n\n**Headers:** `X-Delivery-Id` stays the same for every attempt of one send, so you can drop duplicates; `X-Delivery-Attempt` is the attempt number, starting at 1. `User-Agent` is `ArticleWriter/2`. Deliveries come from no fixed IP address: the signature, not the address, proves the sender.\n\n**Your answer:** any `2xx` means delivered. Answer within 30 seconds.\n\n**Retries:** after a network error, a timeout, `5xx` or `408, 425, 429`, Tribune Desk tries again after 2, 10, 30, 120, 360, 840 minutes. Any other status (another `4xx`, or a `3xx`: redirects are not followed) ends the send at once.\n\n**Idempotency:** the same article comes again with the same `article_id` when it is resent or edited: update the post you created the first time, do not create a second one.\n\n**Order:** a newer send of the same article cancels the pending retries of an older one, and every attempt carries the current state of the article. An attempt of an older send that was already on its way can still arrive after a newer one: skip a body whose `sent_at` is older than the `sent_at` you last applied for that `article_id`.","operationId":"articleDelivered","parameters":[{"description":"Id of the send, the same for every attempt (Standard Webhooks).","required":true,"schema":{"type":"string"},"name":"webhook-id","in":"header"},{"description":"Unix time of this attempt, in seconds.","required":true,"schema":{"type":"integer"},"name":"webhook-timestamp","in":"header"},{"description":"One or more `v1,<base64>` signatures, space-separated.","required":true,"schema":{"type":"string"},"name":"webhook-signature","in":"header"},{"description":"The same as `webhook-id`.","required":true,"schema":{"type":"string","format":"uuid"},"name":"X-Delivery-Id","in":"header"},{"description":"Attempt number, starting at 1.","required":true,"schema":{"type":"integer"},"name":"X-Delivery-Attempt","in":"header"},{"description":"`ArticleWriter/2`.","required":true,"schema":{"type":"string"},"name":"User-Agent","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDelivery"}}},"required":true},"responses":{"200":{"description":"Delivered. Any `2xx` counts; the body is optional.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDeliveryResult"}}}},"4XX":{"description":"Not delivered. `408, 425, 429` are retried; any other `4xx` ends the send at once (for example a failed signature check or an unknown organization)."},"3XX":{"description":"Not delivered; redirects are not followed, the send ends."},"5XX":{"description":"Not delivered; retried."}}}}},"components":{"schemas":{"AiProvenance":{"properties":{"claims":{"$ref":"#/components/schemas/ProvenanceClaims","description":"The signed claims."},"jws":{"type":"string","title":"Jws","description":"The claims signed as a compact JWS."}},"type":"object","required":["claims","jws"],"title":"AiProvenance","description":"Signed statement that the text was produced with AI (EU AI Act, art. 50(2))."},"ApiError":{"properties":{"code":{"type":"string","enum":["unauthorized","forbidden","not_found","project_deactivated","option_locked","cursor_expired","validation_error","rate_limited","internal_error","unavailable","not_implemented","state_conflict"],"title":"Code","description":"Stable machine-readable code."},"message":{"type":"string","title":"Message","description":"Human-readable description; never echoes request bodies."},"retry_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After","description":"Seconds to wait before retrying."}},"type":"object","required":["code","message"],"title":"ApiError","description":"The one error body of every `/v3/cms` route, whatever the status code."},"ArticleDelivery":{"properties":{"article_id":{"type":"string","title":"Article Id","description":"Level 1 (receive article). Tribune Desk id of the article. Repeated sends of the same article carry the same id: update the post you created the first time."},"org_code":{"type":"string","title":"Org Code","description":"Level 1 (receive article). The newsroom's code in Tribune Desk."},"sent_at":{"type":"string","title":"Sent At","description":"Level 1 (receive article). When this send was made (ISO 8601)."},"topic":{"type":"string","title":"Topic","description":"Optional (editorial extras). The topic the article was written on."},"title":{"type":"string","title":"Title","description":"Level 1 (receive article). The article's headline. Not repeated in `html`."},"alternative_titles":{"items":{"type":"string"},"type":"array","title":"Alternative Titles","description":"Optional (editorial extras). Other headline proposals; may be empty."},"twitter_posts":{"items":{"type":"string"},"type":"array","title":"Twitter Posts","description":"Optional (editorial extras). Proposed posts for X."},"reel_captions":{"items":{"type":"string"},"type":"array","title":"Reel Captions","description":"Optional (editorial extras). Proposed captions for reels."},"custom_content":{"items":{"$ref":"#/components/schemas/CustomBlock"},"type":"array","title":"Custom Content","description":"Optional (editorial extras). Extra text blocks defined by the newsroom."},"facebook_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facebook Title","description":"Optional (editorial extras). The chosen title for Facebook. Use it only on Facebook, not as the post title."},"facebook_titles":{"items":{"type":"string"},"type":"array","title":"Facebook Titles","description":"Optional (editorial extras). All title proposals for Facebook."},"facebook_teaser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facebook Teaser","description":"Optional (editorial extras). The chosen teaser for Facebook."},"facebook_teasers":{"items":{"type":"string"},"type":"array","title":"Facebook Teasers","description":"Optional (editorial extras). All teaser proposals for Facebook."},"html":{"type":"string","title":"Html","description":"Level 1 (receive article). The article body as HTML, without the headline. Internal links are already resolved (see `internal_links`). May contain images from the media library as `figure`; see guide 1."},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt","description":"Level 1 (receive article). A short summary of the article for the post excerpt (the chosen meta description); null when there is none."},"featured_image":{"anyOf":[{"$ref":"#/components/schemas/DeliveryImage"},{"type":"null"}],"description":"Level 1 (receive article). The main image: the same object as the first entry of `generated_images`; null when the article has no images."},"raw_facts":{"type":"string","title":"Raw Facts","description":"Optional (editorial extras). Facts the article was written from, one per line."},"related_topics":{"items":{"$ref":"#/components/schemas/RelatedTopic"},"type":"array","title":"Related Topics","description":"Optional (editorial extras). Follow-up topics."},"internal_links":{"items":{"$ref":"#/components/schemas/InternalLinkRef"},"type":"array","title":"Internal Links","description":"Level 3 (full content). Links to other articles of the newsroom placed in `html`."},"link_placeholder_prefix":{"type":"string","title":"Link Placeholder Prefix","description":"Level 3 (full content). Every link in `html` to an article that has no address in your CMS yet is `link_placeholder_prefix` followed by that article's `article_id`. Replace it with your address of that article, or keep only the link text. Do not hard-code the prefix."},"evergreen":{"type":"boolean","title":"Evergreen","description":"Level 3 (full content). True when the article stays current (not tied to news)."},"generated_images":{"items":{"$ref":"#/components/schemas/DeliveryImage"},"type":"array","title":"Generated Images","description":"Level 3 (full content). Images made for the article; the first one is the main image."},"seo_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Title","description":"Level 3 (full content). The chosen SEO title."},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description","description":"Level 3 (full content). The chosen meta description."},"focus_keyphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus Keyphrase","description":"Level 3 (full content). The focus keyphrase for SEO."},"ai_provenance":{"anyOf":[{"$ref":"#/components/schemas/AiProvenance"},{"type":"null"}],"description":"Level 3 (full content). AI provenance statement, also embedded in `html`; null when the newsroom turned marking off."},"sent_by":{"anyOf":[{"$ref":"#/components/schemas/DeliveryPerson"},{"type":"null"}],"description":"Level 3 (full content). Who clicked \"Send to CMS\"; null for automatic sends."},"author":{"anyOf":[{"$ref":"#/components/schemas/DeliveryPerson"},{"type":"null"}],"description":"Level 3 (full content). Who ordered the article. Use it as the post author when `sent_by` cannot be matched."},"metadata":{"$ref":"#/components/schemas/DeliveryMetadata","description":"Level 1 (receive article). Where the article comes from."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Level 1 (receive article). The newsroom's writing language (e.g. `pl`). Omitted when not set."},"backlink_sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/BacklinkSource"},"type":"array"},{"type":"null"}],"title":"Backlink Sources","description":"Level 3 (full content). Older articles that should link to this one. Omitted = leave existing links alone; an empty list = no article should link here."},"publication":{"anyOf":[{"$ref":"#/components/schemas/DeliveryPublication"},{"type":"null"}],"description":"Optional (editorial extras). How to publish the post: as a draft, now, or at a set time. Omitted = publish as your CMS does today. A scheduled post is not public yet: a new send updates it like a draft. Never unpublish a published post because of this field."},"taxonomy":{"anyOf":[{"$ref":"#/components/schemas/DeliveryTaxonomy"},{"type":"null"}],"description":"Optional (editorial extras). The categories and tags the editor chose. Set them by `cms_term_id`, else by `name` (any letter case); never create a term. Omitted = leave the post's categories and tags alone; a missing `categories` or `tags` key inside it means the same for that taxonomy."}},"type":"object","required":["article_id","org_code","sent_at","topic","title","alternative_titles","twitter_posts","reel_captions","custom_content","facebook_title","facebook_titles","facebook_teaser","facebook_teasers","html","excerpt","featured_image","raw_facts","related_topics","internal_links","link_placeholder_prefix","evergreen","generated_images","seo_title","meta_description","focus_keyphrase","ai_provenance","sent_by","author","metadata"],"title":"ArticleDelivery","description":"The article Tribune Desk sends to your webhook when an editor clicks \"Send to CMS\".\n\nFields marked as omitted are absent from the body, not null, when they do not apply.\nNew fields may be added in a minor version; ignore the ones you do not know."},"ArticleDeliveryResult":{"properties":{"cms_post_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Cms Post Id","description":"Level 1 (receive article). Your identifier of the post, as text. Tribune Desk stores it with the article."},"post_id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Post Id","description":"Deprecated: the same as `cms_post_id`, read only when that is absent."},"status":{"anyOf":[{"type":"string","enum":["created","updated","skipped_already_published"]},{"type":"null"}],"title":"Status","description":"Level 1 (receive article). `created`, `updated`, or `skipped_already_published` when you left an already published post alone. Informational: Tribune Desk does not act on it today."},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink","description":"Level 2 (link back). The public address of the post. Tribune Desk uses it to link to this article from other articles."},"edit_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Edit Url","description":"Level 1 (receive article). An `http(s)` address where the editor edits the post; shown as \"Edit in CMS\". Other schemes are ignored."},"featured_image":{"anyOf":[{"$ref":"#/components/schemas/FeaturedImageResult"},{"type":"null"}],"description":"Level 4 (media library). The attachment made from the featured image, so Tribune Desk can reuse it next time."},"social_queue_exclude":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Social Queue Exclude","description":"Level 2 (link back). `true` keeps the post off the Tribune Desk Facebook queue, `false` puts it back; the same as in `POST /v3/cms/articles/published`. Stored before `permalink`, so a flagged post never enters the queue. Leaving it out keeps the stored value."},"publication":{"anyOf":[{"$ref":"#/components/schemas/PublicationResult"},{"type":"null"}],"description":"Optional (editorial extras). The state of the post after this delivery, so the editor sees whether it is a draft, scheduled or published. Leave it out for any other state."},"taxonomy":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyResult"},{"type":"null"}],"description":"Optional (editorial extras). The categories and tags of the post after this delivery, and the terms you did not set. Leave it out when you did not touch them."}},"type":"object","title":"ArticleDeliveryResult","description":"What your webhook answers with. Every field is optional: a `2xx` status alone means\nthe article was delivered. Fields that do not match their type are ignored one by one."},"ArticleResultAck":{"properties":{"article_id":{"type":"string","format":"uuid","title":"Article Id"},"state":{"type":"string","enum":["delivered","failed"],"title":"State","description":"`delivered`, also when the result is repeated; `failed` when you sent `error`."},"ignored_fields":{"items":{"type":"string"},"type":"array","title":"Ignored Fields","description":"Fields of the right type that Tribune Desk did not store, e.g. a `permalink` that is not a public `http(s)` address or a `featured_image` for a file this send did not carry."}},"type":"object","required":["article_id","state"],"title":"ArticleResultAck"},"ArticleResultReport":{"properties":{"cms_post_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Cms Post Id","description":"Level 1 (receive article). Your identifier of the post, as text. Tribune Desk stores it with the article."},"post_id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Post Id","description":"Deprecated: the same as `cms_post_id`, read only when that is absent."},"status":{"anyOf":[{"type":"string","enum":["created","updated","skipped_already_published"]},{"type":"null"}],"title":"Status","description":"Level 1 (receive article). `created`, `updated`, or `skipped_already_published` when you left an already published post alone. Informational: Tribune Desk does not act on it today."},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink","description":"Level 2 (link back). The public address of the post. Tribune Desk uses it to link to this article from other articles."},"edit_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Edit Url","description":"Level 1 (receive article). An `http(s)` address where the editor edits the post; shown as \"Edit in CMS\". Other schemes are ignored."},"featured_image":{"anyOf":[{"$ref":"#/components/schemas/FeaturedImageResult"},{"type":"null"}],"description":"Level 4 (media library). The attachment made from the featured image, so Tribune Desk can reuse it next time."},"social_queue_exclude":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Social Queue Exclude","description":"Level 2 (link back). `true` keeps the post off the Tribune Desk Facebook queue, `false` puts it back; the same as in `POST /v3/cms/articles/published`. Stored before `permalink`, so a flagged post never enters the queue. Leaving it out keeps the stored value."},"publication":{"anyOf":[{"$ref":"#/components/schemas/PublicationResult"},{"type":"null"}],"description":"Optional (editorial extras). The state of the post after this delivery, so the editor sees whether it is a draft, scheduled or published. Leave it out for any other state."},"taxonomy":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyResult"},{"type":"null"}],"description":"Optional (editorial extras). The categories and tags of the post after this delivery, and the terms you did not set. Leave it out when you did not touch them."},"delivery_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Delivery Id","description":"The `X-Delivery-Id` of the `GET /v3/cms/articles/{article_id}` answer you applied. With it the result closes exactly that send; a send replaced by a newer one gives `409 state_conflict` (fetch the article again). Without it the result closes the newest waiting send (kept for older clients)."},"error":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Error","description":"Set when your CMS could not take the article: the send is recorded as failed with this text (the editor sees its first 200 characters), and the other fields are ignored."}},"type":"object","title":"ArticleResultReport","description":"Read mode: the body of `POST /v3/cms/articles/{article_id}/result`. The fields of\n`ArticleDeliveryResult`, plus the send it answers and an optional failure."},"AwaitingArticle":{"properties":{"delivery_id":{"type":"string","format":"uuid","title":"Delivery Id"},"article_id":{"type":"string","format":"uuid","title":"Article Id"},"sent_at":{"type":"string","format":"date-time","title":"Sent At","description":"When the editor sent the article."}},"type":"object","required":["delivery_id","article_id","sent_at"],"title":"AwaitingArticle"},"AwaitingArticlesPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AwaitingArticle"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass it as `cursor` for the next page; `null` on the last page."}},"type":"object","required":["items","next_cursor"],"title":"AwaitingArticlesPage"},"BackfillCandidate":{"properties":{"cms_media_id":{"type":"string","maxLength":255,"minLength":1,"title":"Cms Media Id","description":"Your identifier of the file: any text of 1 to 255 characters."},"file_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"File Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Height"},"sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Sha256"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"credit":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Credit","description":"Who supplied the file (e.g. IPTC credit); used to identify its source."},"caption":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Caption","description":"The caption shown under the file. Identifies its source when `credit` is empty, and helps describe the file when `iptc_caption` is empty."},"iptc_caption":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Iptc Caption","description":"The caption embedded in the file; helps describe it."},"post_title":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Post Title","description":"The file's own title in the CMS; helps describe it."},"parent_title":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Parent Title","description":"Title of the content the file is attached to; helps describe it."},"attached_to_published":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Attached To Published"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"}},"additionalProperties":false,"type":"object","required":["cms_media_id","file_url"],"title":"BackfillCandidate"},"BackfillFilters":{"properties":{"date_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From","description":"File creation date, inclusive."},"date_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To","description":"File creation date, inclusive."},"min_width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Min Width","description":"Replaces the default minimum of 800 pixels."},"mime_types":{"items":{"type":"string"},"type":"array","title":"Mime Types","description":"Empty means any allowed type."},"only_attached_to_published":{"type":"boolean","title":"Only Attached To Published","description":"Only files used in published content, as far as you know it.","default":false},"categories":{"items":{"type":"string"},"type":"array","title":"Categories","description":"A file in any of them; ignore this filter if your CMS has no categories."},"max_files":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Files","description":"Enforced by the server: past it candidates answer `max_files`."}},"type":"object","title":"BackfillFilters","description":"You apply these when you choose candidates. The server re-checks only `min_width` and\n`max_files`; it cannot see the rest."},"BackfillPageRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BackfillCandidate"},"type":"array","maxItems":1000,"title":"Items"},"is_last":{"type":"boolean","title":"Is Last","description":"Last page of the request's results.","default":false}},"additionalProperties":false,"type":"object","required":["items"],"title":"BackfillPageRequest"},"BackfillPageResponse":{"properties":{"accepted":{"type":"integer","minimum":0.0,"title":"Accepted","description":"Candidates of this page held for the request; `ok` in `results`."},"results":{"items":{"$ref":"#/components/schemas/ItemResult"},"type":"array","title":"Results"}},"type":"object","required":["accepted","results"],"title":"BackfillPageResponse"},"BackfillRequest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","const":"collecting","title":"Status"},"filters":{"$ref":"#/components/schemas/BackfillFilters"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","filters","created_at"],"title":"BackfillRequest"},"BackfillRequestList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BackfillRequest"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"BackfillRequestList"},"BacklinkSource":{"properties":{"article_id":{"type":"string","title":"Article Id","description":"Tribune Desk id of the older article."},"distance":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Distance","description":"Semantic distance; lower means closer in topic."}},"type":"object","required":["article_id","distance"],"title":"BacklinkSource","description":"An older article that should link to this one."},"BatchResult":{"properties":{"results":{"items":{"$ref":"#/components/schemas/ItemResult"},"type":"array","title":"Results"},"held_batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Held Batch Id","description":"Set when part of the request went over `mass_change_threshold` within a 60-minute run and is held. The server counts the whole run, not one request. May be null with `held` fields when a newer value of the same field already waits in a batch that is no longer pending: there is nothing to decide and nothing to resend."}},"type":"object","required":["results"],"title":"BatchResult"},"Change":{"properties":{"cursor":{"type":"string","title":"Cursor","description":"Opaque cursor of this change. Passing it acknowledges this change and everything before it, so to retry a change, keep the cursor of the change before it."},"kind":{"type":"string","enum":["new_asset","fields","deleted","restored","settings","article_sent"],"title":"Kind","description":"`new_asset` is a file to fetch from `file_url` (no `cms_media_id`). `settings` has no `asset_id` and no values: re-read `GET /settings`. `deleted` and `restored` say that a paired file went to the Tribune Desk trash or came back; they carry `cms_media_id`, `asset_id` and `changed_at`, and `fields` is empty. Permanent deletions are never reported. `article_sent` (read mode, tokens with `articles:read`) says an editor sent an article: fetch it with `GET /articles/{article_id}`. A token sees only the kinds of its scopes: `article_sent` needs `articles:read`, every other kind `media:read`. Skip kinds you do not know."},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"article_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Article Id","description":"`article_sent` only: fetch the article with `GET /articles/{article_id}`."},"cms_media_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"description":"Your identifier of the file: any text of 1 to 255 characters."},{"type":"null"}],"title":"Cms Media Id"},"fields":{"items":{"$ref":"#/components/schemas/FieldChange"},"type":"array","title":"Fields"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url","description":"Signed file URL (`new_asset`)."},"file_url_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"File Url Expires At","description":"`new_asset` only: every read of the change renews the URL."},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type","description":"`new_asset` only."},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename","description":"`new_asset` only."},"sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Sha256","description":"`new_asset` only; `null` when Tribune Desk has no checksum."},"width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Width","description":"`new_asset` only; `null` when unknown."},"height":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Height","description":"`new_asset` only; `null` when unknown."},"changed_at":{"type":"string","format":"date-time","title":"Changed At"}},"type":"object","required":["cursor","kind","changed_at"],"title":"Change"},"ChangesResponse":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/Change"},"type":"array","title":"Changes"},"next_cursor":{"type":"string","title":"Next Cursor","description":"Always present, also when `changes` is empty (including the first poll without `cursor`): pass it as `cursor` in the next poll to acknowledge and continue."},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["changes","next_cursor"],"title":"ChangesResponse"},"CustomBlock":{"properties":{"label":{"type":"string","title":"Label","description":"Name of the block, set by the newsroom."},"items":{"items":{"type":"string"},"type":"array","title":"Items","description":"Proposals for the block; the first one is chosen."}},"type":"object","required":["label","items"],"title":"CustomBlock","description":"A text block the newsroom defined for its own use (e.g. a lead or a box)."},"Deletion":{"properties":{"cms_media_id":{"type":"string","maxLength":255,"minLength":1,"title":"Cms Media Id","description":"Your identifier of the file: any text of 1 to 255 characters."},"deleted_at":{"type":"string","format":"date-time","title":"Deleted At"}},"additionalProperties":false,"type":"object","required":["cms_media_id","deleted_at"],"title":"Deletion"},"DeletionsRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Deletion"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"DeletionsRequest"},"DeliveryImage":{"properties":{"label":{"type":"string","title":"Label","description":"Short label of the image (its name in Tribune Desk)."},"url":{"type":"string","title":"Url","description":"Where to download the image. When the CMS already holds this file (level 4), this is the CMS copy's address."},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id","description":"Graphic template the image was made from."},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"When the image was made (ISO 8601)."},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename","description":"Suggested file name. Omitted when empty."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Image title. Omitted when empty."},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","description":"Image caption. Omitted when empty."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Longer image description. Omitted when empty."},"alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt","description":"Alternative text. Omitted when empty."},"asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id","description":"Level 4 (media library). Identifier of the file in the Tribune Desk media library. Omitted when the image is not in the library."},"cms_attachment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cms Attachment Id","description":"Level 4 (media library). Your attachment identifier for this file, when you reported it earlier. Reuse that attachment instead of downloading the file again.","deprecated":true},"cms_media_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Cms Media Id","description":"Level 4 (media library). Your identifier of this file, as text: the same `cms_media_id` as in the media library, also when it is a number. Reuse that file instead of downloading it again. Omitted when the file has none."}},"type":"object","required":["label","url","template_id","created_at"],"title":"DeliveryImage","description":"One image generated for the article."},"DeliveryMetadata":{"properties":{"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"When the article was created (ISO 8601)."},"domain":{"type":"string","title":"Domain","description":"The newsroom's domain in Tribune Desk."}},"type":"object","required":["created_at","domain"],"title":"DeliveryMetadata","description":"Where the article comes from."},"DeliveryPerson":{"properties":{"id":{"type":"string","title":"Id","description":"Stable user identifier in Tribune Desk."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Display name, or null when unknown."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"E-mail address, or null when unknown."}},"type":"object","required":["id","name","email"],"title":"DeliveryPerson","description":"A Tribune Desk user."},"DeliveryPublication":{"properties":{"mode":{"type":"string","enum":["draft","schedule","publish"],"title":"Mode","description":"`draft` keeps the post unpublished, `publish` publishes it now, `schedule` publishes it at `at`."},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At","description":"When to publish, ISO 8601 in UTC (ending in `Z`). Present only with `schedule`."}},"type":"object","required":["mode"],"title":"DeliveryPublication","description":"How the newsroom wants the post published (spec 2026-11-24 tryb publikacji, D1)."},"DeliveryTaxonomy":{"properties":{"categories":{"anyOf":[{"items":{"$ref":"#/components/schemas/DeliveryTerm"},"type":"array"},{"type":"null"}],"title":"Categories","description":"Categories to set. Omitted = leave the categories alone."},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/DeliveryTerm"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Tags to set. Omitted = leave the tags alone."}},"type":"object","title":"DeliveryTaxonomy","description":"The categories and tags to set on the post. A key that is present means \"set exactly\nthis\" for that taxonomy (an empty list removes all terms); a missing key means \"leave it\nalone\"."},"DeliveryTerm":{"properties":{"cms_term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cms Term Id","description":"Your identifier of the term, as text. Present when the term comes from the taxonomy you sent to `POST /v3/cms/taxonomy/terms`."},"name":{"type":"string","title":"Name","description":"The name of the term."}},"type":"object","required":["name"],"title":"DeliveryTerm","description":"A category or tag the editor chose (spec 2026-11-25 kategorie i tagi CMS, D2)."},"FeaturedImageResult":{"properties":{"asset_id":{"type":"string","title":"Asset Id","description":"`asset_id` of the image you received."},"cms_media_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Cms Media Id","description":"Your identifier of the file, as text (any text of 1 to 255 characters, as `cms_media_id` in the media library)."},"attachment_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Attachment Id","description":"Deprecated: a numeric identifier; use `cms_media_id`.","deprecated":true},"url":{"type":"string","title":"Url","description":"Address of the file in your CMS."}},"type":"object","required":["asset_id","url"],"title":"FeaturedImageResult","description":"The attachment your CMS made from `featured_image` (level 4). Give `cms_media_id`;\n`attachment_id` is the older numeric form, read only when `cms_media_id` is absent."},"FieldChange":{"properties":{"field":{"type":"string","enum":["title","alt","caption","description"],"title":"Field"},"value":{"type":"string","title":"Value"},"version":{"type":"integer","minimum":1.0,"title":"Version","description":"May equal the version you already hold: a resync `td_to_cms` and a link repeat the current value without a new version. Apply when it is not lower than yours."},"base_version":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Base Version"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"changed_by":{"type":"string","enum":["editor","model","import","cms"],"title":"Changed By","description":"Today the feed carries `editor` and `model`; a change from the CMS or an import never enters it. A repeated current value says `editor`, whoever wrote it."}},"type":"object","required":["field","value","version","changed_at","changed_by"],"title":"FieldChange"},"FieldResult":{"properties":{"field":{"type":"string","enum":["title","alt","caption","description"],"title":"Field"},"status":{"type":"string","enum":["ok","unchanged","conflict","rejected","held"],"title":"Status"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"The current version of the field after processing the item, also on `conflict`. `null` only when the file is unknown."},"winning_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Winning Value","description":"On `conflict`: the value that won, so the CMS can adopt it."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["field","status"],"title":"FieldResult"},"FieldState":{"properties":{"field":{"type":"string","enum":["title","alt","caption","description"],"title":"Field"},"value":{"type":"string","maxLength":5000,"title":"Value","description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."}},"additionalProperties":false,"type":"object","required":["field","value"],"title":"FieldState"},"FieldToggles":{"properties":{"title":{"type":"boolean","title":"Title"},"alt":{"type":"boolean","title":"Alt"},"caption":{"type":"boolean","title":"Caption"},"description":{"type":"boolean","title":"Description"}},"additionalProperties":false,"type":"object","required":["title","alt","caption","description"],"title":"FieldToggles"},"FieldTogglesOut":{"properties":{"title":{"type":"boolean","title":"Title"},"alt":{"type":"boolean","title":"Alt"},"caption":{"type":"boolean","title":"Caption"},"description":{"type":"boolean","title":"Description"}},"type":"object","required":["title","alt","caption","description"],"title":"FieldTogglesOut","description":"`FieldToggles` in answers: open to fields added in a minor version (spec E8 D2)."},"FieldUpdate":{"properties":{"cms_media_id":{"type":"string","maxLength":255,"minLength":1,"title":"Cms Media Id","description":"Your identifier of the file: any text of 1 to 255 characters."},"fields":{"items":{"$ref":"#/components/schemas/FieldWrite"},"type":"array","maxItems":4,"minItems":1,"title":"Fields"}},"additionalProperties":false,"type":"object","required":["cms_media_id","fields"],"title":"FieldUpdate"},"FieldWrite":{"properties":{"field":{"type":"string","enum":["title","alt","caption","description"],"title":"Field"},"value":{"type":"string","maxLength":5000,"title":"Value","description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},"base_version":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Base Version","description":"The version you last saw; `1` when you do not know it. Ignored in `POST /media`."},"changed_at":{"type":"string","format":"date-time","title":"Changed At","description":"When the edit happened in the CMS: ISO 8601 with a time zone (a value without one gives `422`). A future time counts as now. Ignored in `POST /media`."}},"additionalProperties":false,"type":"object","required":["field","value","changed_at"],"title":"FieldWrite"},"FieldsRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FieldUpdate"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"FieldsRequest"},"HeldBatch":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["fields","files"],"title":"Kind","description":"Always `fields` today; `files` is reserved: new files are never held."},"direction":{"type":"string","enum":["cms_to_td","td_to_cms"],"title":"Direction"},"state":{"type":"string","enum":["pending","sent","discarded"],"title":"State"},"count":{"type":"integer","minimum":0.0,"title":"Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","direction","state","count","created_at"],"title":"HeldBatch"},"HeldDecisionRequest":{"properties":{"decision":{"type":"string","enum":["send","discard"],"title":"Decision"}},"additionalProperties":false,"type":"object","required":["decision"],"title":"HeldDecisionRequest"},"HeldList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HeldBatch"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"HeldList"},"InternalLinkRef":{"properties":{"article_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Id","description":"Tribune Desk id of the linked article."},"anchor_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Text","description":"Text of the link in `html`."},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href","description":"Address the link points to in `html`: the linked article's address in your CMS, or a placeholder while that article has none yet."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Current address of the linked article."},"kind":{"anyOf":[{"type":"string","enum":["cms","placeholder"]},{"type":"null"}],"title":"Kind","description":"`cms` when the linked article has an address in your CMS, `placeholder` otherwise."},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline","description":"Headline of the linked article."}},"type":"object","title":"InternalLinkRef","description":"A link to another article of the same newsroom, placed in `html`."},"ItemResult":{"properties":{"id":{"type":"string","maxLength":255,"title":"Id","description":"Identifier of the item from the request."},"status":{"type":"string","enum":["ok","known","unknown","conflict","rejected","held"],"title":"Status"},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id","description":"`POST /media` only, on `ok`, `known` and `rejected`: the Tribune Desk file paired with this id, once it exists. `null` means not imported yet, not imported at all, or in the trash."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why, for `conflict` and `rejected`; `threshold` on a reported deletion."},"fields":{"items":{"$ref":"#/components/schemas/FieldResult"},"type":"array","title":"Fields","description":"Per-field outcomes."}},"type":"object","required":["id","status"],"title":"ItemResult"},"LinkRequest":{"properties":{"cms_media_id":{"type":"string","maxLength":255,"minLength":1,"title":"Cms Media Id","description":"Your identifier of the file: any text of 1 to 255 characters."},"file_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"File Url"},"reencoded":{"type":"boolean","title":"Reencoded","description":"The CMS re-encoded the file: verification then checks that the URL answers with an image instead of comparing sha256, and the file is marked `verified_by=cms`.","default":false}},"additionalProperties":false,"type":"object","required":["cms_media_id","file_url"],"title":"LinkRequest"},"NewMedia":{"properties":{"cms_media_id":{"type":"string","maxLength":255,"minLength":1,"title":"Cms Media Id","description":"Your identifier of the file: any text of 1 to 255 characters."},"file_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"File Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Height"},"sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Sha256","description":"Accepted and not used today: the import computes its own."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"When the file was created in the CMS."},"credit":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Credit","description":"Who supplied the file (e.g. IPTC credit); used to identify its source."},"post_title":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Post Title","description":"Title of the post the file was uploaded to, as context."},"iptc_caption":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Iptc Caption","description":"Caption embedded in the file (IPTC), as context."},"iptc_title":{"anyOf":[{"type":"string","maxLength":5000,"description":"Plain text, up to 5000 Unicode characters. Stored as sent, without cleaning or normalization; do not send markup. An empty string clears the field. A NUL character fails the whole request with `422`."},{"type":"null"}],"title":"Iptc Title","description":"Title embedded in the file (IPTC), as context."},"fields":{"items":{"$ref":"#/components/schemas/FieldWrite"},"type":"array","maxItems":4,"title":"Fields","description":"Context for describing the file, not its values: they are not stored in the fields. `caption` also names the source when `credit` is empty. To set the values, call `POST /media/fields` once the file is paired."}},"additionalProperties":false,"type":"object","required":["cms_media_id","file_url"],"title":"NewMedia"},"NewMediaRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NewMedia"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"NewMediaRequest"},"ProvenanceClaims":{"properties":{"article_id":{"type":"string","title":"Article Id","description":"Tribune Desk id of the article."},"generated_at":{"type":"string","title":"Generated At","description":"When the text was produced (ISO 8601)."},"content_sha256":{"type":"string","title":"Content Sha256","description":"SHA-256 (hex) of the normalized text."},"generator":{"type":"string","title":"Generator","description":"Who produced the text."},"v":{"type":"integer","title":"V","description":"Version of this claims format."},"models":{"items":{"type":"string"},"type":"array","title":"Models","description":"AI models used; may be empty."},"digital_source_type":{"type":"string","title":"Digital Source Type","description":"IPTC digital source type of the text."}},"type":"object","required":["article_id","generated_at","content_sha256","generator","v","models","digital_source_type"],"title":"ProvenanceClaims","description":"What the AI provenance signature states."},"PublicationResult":{"properties":{"status":{"type":"string","enum":["draft","scheduled","published"],"title":"Status","description":"`draft`, `scheduled` (waiting for its time) or `published`."},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At","description":"When the post is or was published, ISO 8601 with a time zone (UTC preferred); required with `scheduled`, null for a draft."}},"type":"object","required":["status"],"title":"PublicationResult","description":"The state of the post after your CMS applied the delivery (spec tryb publikacji, D1)."},"PublishedArticleItem":{"properties":{"article_id":{"type":"string","format":"uuid","title":"Article Id","description":"Tribune Desk id of the article (`article_id` of the delivery)."},"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url","description":"The public `http(s)` address of the post. Other schemes give `invalid_url`."},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At","description":"When the post was published, ISO 8601 with a time zone. Optional."},"social_queue_exclude":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Social Queue Exclude","description":"Optional. `true`: the post must not go to Facebook, so Tribune Desk does not add the article to its Facebook queue and takes it off every queue it waits in; posts already published stay. `false`: the post may go to Facebook again; an article that never reached the queue and was published at most 48 hours ago joins it as a new article. Leave the field out to keep the stored value; send it every time if your CMS has such a setting, also as `false`."}},"additionalProperties":false,"type":"object","required":["article_id","url"],"title":"PublishedArticleItem"},"PublishedArticleResult":{"properties":{"article_id":{"type":"string","format":"uuid","title":"Article Id"},"status":{"type":"string","enum":["ok","not_found","forbidden","invalid_url"],"title":"Status","description":"`ok`: stored. `not_found`: no such article in the organization of the token (also an article of another organization). `invalid_url`: the address was rejected. `forbidden` is no longer returned; it stays in the list for older clients."}},"type":"object","required":["article_id","status"],"title":"PublishedArticleResult"},"PublishedArticlesRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublishedArticleItem"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"PublishedArticlesRequest"},"PublishedArticlesResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/PublishedArticleResult"},"type":"array","title":"Results","description":"One result per item, in order."}},"type":"object","required":["results"],"title":"PublishedArticlesResponse"},"PushExistingRequest":{"properties":{"since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since","description":"Only files whose original or creation date is not older."},"after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After","description":"`next_after` of the previous answer, as is; omit to start a new run. Send the same `since` on every page of a run."}},"additionalProperties":false,"type":"object","title":"PushExistingRequest"},"PushExistingResponse":{"properties":{"queued":{"type":"integer","minimum":0.0,"title":"Queued"},"next_after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next After","description":"Pass it as `after` for the next page. `null` ends the run, whatever `queued` says."},"held_batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Held Batch Id","description":"Always `null` for files."}},"type":"object","required":["queued"],"title":"PushExistingResponse"},"RecentError":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["at","code","message"],"title":"RecentError"},"RelatedTopic":{"properties":{"title":{"type":"string","title":"Title","description":"The topic."},"reason":{"type":"string","title":"Reason","description":"Why it is suggested; may be empty."}},"type":"object","required":["title","reason"],"title":"RelatedTopic","description":"A follow-up topic suggested for the newsroom."},"ResultTerm":{"properties":{"cms_term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cms Term Id","description":"Your identifier of the term, as text."},"name":{"type":"string","title":"Name","description":"The name of the term."}},"type":"object","required":["name"],"title":"ResultTerm","description":"A category or tag now on the post."},"ResyncConfirmRequest":{"properties":{"resync_id":{"type":"string","format":"uuid","title":"Resync Id"},"confirm":{"type":"boolean","const":true,"title":"Confirm"}},"additionalProperties":false,"type":"object","required":["resync_id","confirm"],"title":"ResyncConfirmRequest","description":"Apply a `ready` preview (valid for 24 hours). Impossible without a preview."},"ResyncConfirmResponse":{"properties":{"status":{"type":"string","enum":["applied","held"],"title":"Status"},"cursor":{"type":"string","title":"Cursor","description":"Always present, also when `status` is `held`: after `410 cursor_expired`, resume `/changes` from this cursor."},"held_batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Held Batch Id","description":"Set when the result is over the mass-change threshold."}},"type":"object","required":["status","cursor"],"title":"ResyncConfirmResponse"},"ResyncItem":{"properties":{"cms_media_id":{"type":"string","maxLength":255,"minLength":1,"title":"Cms Media Id","description":"Your identifier of the file: any text of 1 to 255 characters."},"fields":{"items":{"$ref":"#/components/schemas/FieldState"},"type":"array","maxItems":4,"title":"Fields","description":"A field left out is not compared and does not change. An empty `value` is compared like any other: with `cms_to_td` it clears the field in Tribune Desk, with `td_to_cms` it brings the Tribune Desk value to you."}},"additionalProperties":false,"type":"object","required":["cms_media_id","fields"],"title":"ResyncItem"},"ResyncPreviewRequest":{"properties":{"direction":{"type":"string","enum":["cms_to_td","td_to_cms"],"title":"Direction"},"items":{"items":{"$ref":"#/components/schemas/ResyncItem"},"type":"array","maxItems":100,"title":"Items"},"resync_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resync Id","description":"Omit on the first page; send the returned id on the next."},"is_last":{"type":"boolean","title":"Is Last","description":"`true` on the last page; the preview is then `ready` (an empty `items` is fine). Repeating a page replaces it. A page after the last one gives `409`: start again."}},"additionalProperties":false,"type":"object","required":["direction","items","is_last"],"title":"ResyncPreviewRequest","description":"Upload (a page of) the CMS state to preview a resync. Nothing changes yet."},"ResyncPreviewResponse":{"properties":{"resync_id":{"type":"string","format":"uuid","title":"Resync Id"},"status":{"type":"string","enum":["collecting","ready"],"title":"Status"},"differences":{"type":"integer","minimum":0.0,"title":"Differences","description":"Fields that differ, not files."},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["resync_id","status","differences","expires_at"],"title":"ResyncPreviewResponse"},"SettingsLimits":{"properties":{"max_batch_items":{"type":"integer","title":"Max Batch Items"},"max_backfill_page_items":{"type":"integer","title":"Max Backfill Page Items"},"max_field_value_length":{"type":"integer","title":"Max Field Value Length"},"requests_per_minute":{"type":"integer","title":"Requests Per Minute"},"file_url_ttl_hours":{"type":"integer","title":"File Url Ttl Hours"}},"type":"object","required":["max_batch_items","max_backfill_page_items","max_field_value_length","requests_per_minute","file_url_ttl_hours"],"title":"SettingsLimits"},"SettingsOptions":{"properties":{"new_files_cms_to_td":{"type":"boolean","title":"New Files Cms To Td"},"new_files_cms_to_td_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"New Files Cms To Td Since"},"new_files_cms_to_td_min_width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"New Files Cms To Td Min Width"},"new_files_td_to_cms":{"type":"boolean","title":"New Files Td To Cms"},"td_to_cms_editor_files":{"type":"boolean","title":"Td To Cms Editor Files"},"td_to_cms_graphics":{"type":"boolean","title":"Td To Cms Graphics"},"fields_cms_to_td":{"$ref":"#/components/schemas/FieldToggles"},"fields_td_to_cms":{"$ref":"#/components/schemas/FieldToggles"},"conflict_rule":{"type":"string","enum":["last_change","cms","td"],"title":"Conflict Rule"},"keep_nonempty_cms_to_td":{"type":"boolean","title":"Keep Nonempty Cms To Td"},"keep_nonempty_td_to_cms":{"type":"boolean","title":"Keep Nonempty Td To Cms"},"model_texts_to_cms":{"type":"string","enum":["never","empty_only"],"title":"Model Texts To Cms"},"mass_change_threshold":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Mass Change Threshold","description":"Changes in one run, 1 to 500; above it they are held for a decision. A resync preview is one run; for field changes sent from the CMS a run is the 60 minutes after the first counted change."},"cms_deletion_trashes_in_td":{"type":"boolean","title":"Cms Deletion Trashes In Td"},"td_deletion_marks_in_cms":{"type":"boolean","title":"Td Deletion Marks In Cms"},"keep_copies_in_td":{"type":"boolean","title":"Keep Copies In Td"}},"additionalProperties":false,"type":"object","required":["new_files_cms_to_td","new_files_cms_to_td_since","new_files_cms_to_td_min_width","new_files_td_to_cms","td_to_cms_editor_files","td_to_cms_graphics","fields_cms_to_td","fields_td_to_cms","conflict_rule","keep_nonempty_cms_to_td","keep_nonempty_td_to_cms","model_texts_to_cms","mass_change_threshold","cms_deletion_trashes_in_td","td_deletion_marks_in_cms","keep_copies_in_td"],"title":"SettingsOptions"},"SettingsOptionsOut":{"properties":{"new_files_cms_to_td":{"type":"boolean","title":"New Files Cms To Td"},"new_files_cms_to_td_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"New Files Cms To Td Since"},"new_files_cms_to_td_min_width":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"New Files Cms To Td Min Width"},"new_files_td_to_cms":{"type":"boolean","title":"New Files Td To Cms"},"td_to_cms_editor_files":{"type":"boolean","title":"Td To Cms Editor Files"},"td_to_cms_graphics":{"type":"boolean","title":"Td To Cms Graphics"},"fields_cms_to_td":{"$ref":"#/components/schemas/FieldTogglesOut"},"fields_td_to_cms":{"$ref":"#/components/schemas/FieldTogglesOut"},"conflict_rule":{"type":"string","enum":["last_change","cms","td"],"title":"Conflict Rule"},"keep_nonempty_cms_to_td":{"type":"boolean","title":"Keep Nonempty Cms To Td"},"keep_nonempty_td_to_cms":{"type":"boolean","title":"Keep Nonempty Td To Cms"},"model_texts_to_cms":{"type":"string","enum":["never","empty_only"],"title":"Model Texts To Cms"},"mass_change_threshold":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Mass Change Threshold","description":"Changes in one run, 1 to 500; above it they are held for a decision. A resync preview is one run; for field changes sent from the CMS a run is the 60 minutes after the first counted change."},"cms_deletion_trashes_in_td":{"type":"boolean","title":"Cms Deletion Trashes In Td"},"td_deletion_marks_in_cms":{"type":"boolean","title":"Td Deletion Marks In Cms"},"keep_copies_in_td":{"type":"boolean","title":"Keep Copies In Td"}},"type":"object","required":["new_files_cms_to_td","new_files_cms_to_td_since","new_files_cms_to_td_min_width","new_files_td_to_cms","td_to_cms_editor_files","td_to_cms_graphics","fields_cms_to_td","fields_td_to_cms","conflict_rule","keep_nonempty_cms_to_td","keep_nonempty_td_to_cms","model_texts_to_cms","mass_change_threshold","cms_deletion_trashes_in_td","td_deletion_marks_in_cms","keep_copies_in_td"],"title":"SettingsOptionsOut","description":"`SettingsOptions` in answers: open to options added in a minor version (spec E8 D2)."},"SettingsResponse":{"properties":{"variant":{"type":"string","enum":["full","cms_to_td_only","td_to_cms_only","custom"],"title":"Variant"},"options":{"$ref":"#/components/schemas/SettingsOptionsOut"},"locked_options":{"items":{"type":"string"},"type":"array","title":"Locked Options","description":"Options locked by the super admin, as dotted names of `options` such as `conflict_rule` or `fields_cms_to_td.alt`. Writing one gives `409 option_locked`."},"limits":{"$ref":"#/components/schemas/SettingsLimits"},"image_hosts":{"items":{"type":"string"},"type":"array","title":"Image Hosts","description":"Hosts that image URLs in deliveries and in the change feed come from: the Tribune Desk file storage and the hosts of your CMS set for the organization. Download images only from these hosts."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["variant","options","locked_options","limits"],"title":"SettingsResponse"},"SettingsUpdate":{"properties":{"variant":{"type":"string","enum":["full","cms_to_td_only","td_to_cms_only","custom"],"title":"Variant"},"options":{"anyOf":[{"$ref":"#/components/schemas/SettingsOptions"},{"type":"null"}],"description":"Required when `variant` is `custom`, forbidden otherwise."}},"additionalProperties":false,"type":"object","required":["variant"],"title":"SettingsUpdate"},"StatusResponse":{"properties":{"org_code":{"type":"string","title":"Org Code"},"contract_version":{"type":"string","title":"Contract Version"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"state":{"type":"string","enum":["active","stalled","disabled"],"title":"State","description":"`disabled` until a super admin enables the integration (and again if they disable it); `stalled` when the CMS has not polled `/changes` for 24 hours; `active` otherwise."},"last_changes_poll_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Changes Poll At","description":"Last `/changes` poll by any token of the organization. `null` before the first."},"pending_changes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pending Changes","description":"Changes not yet acknowledged by the CMS. `null` while `disabled`."},"held_batches":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Held Batches","description":"Batches held by the mass-change threshold, waiting for a decision. `null` while `disabled`."},"recent_errors":{"items":{"$ref":"#/components/schemas/RecentError"},"type":"array","title":"Recent Errors","description":"Always empty today: nothing fills it yet, so an empty list proves nothing."},"image_hosts":{"items":{"type":"string"},"type":"array","title":"Image Hosts","description":"Hosts that image URLs in deliveries and in the change feed come from: the Tribune Desk file storage and the hosts of your CMS set for the organization. Download images only from these hosts. Never empty; an empty list is an error on our side, so download nothing."},"taxonomy":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyStatus"},{"type":"null"}],"description":"The categories and tags you sent with `POST /v3/cms/taxonomy/terms`. `null` until you send any."}},"type":"object","required":["org_code","contract_version","scopes","state"],"title":"StatusResponse"},"TaxonomyIgnored":{"properties":{"name":{"type":"string","title":"Name","description":"The `name` of the term as delivered."},"reason":{"type":"string","minLength":1,"title":"Reason","description":"Why the term was not set. Known values: `unknown_term` (no such term, and you must not create one) and `wrong_taxonomy` (a term of that name exists, but in the other taxonomy). New values may be added; treat an unknown value as not set."}},"type":"object","required":["name","reason"],"title":"TaxonomyIgnored","description":"A term of the delivery your CMS did not set."},"TaxonomyPageRequest":{"properties":{"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id","description":"Set for a full run: the same value on every page of it. After the page with `is_last`, terms the run did not send are removed. `null` = single changes."},"is_last":{"type":"boolean","title":"Is Last","description":"Last page of the full run; needs `run_id`.","default":false},"items":{"items":{"$ref":"#/components/schemas/TaxonomyTerm"},"type":"array","maxItems":1000,"title":"Items","description":"1 to 1000 terms. Empty only on the last page of a full run (`run_id` set, `is_last: true`), so a CMS that has no terms left can finish the run and clear them."}},"additionalProperties":false,"type":"object","required":["items"],"title":"TaxonomyPageRequest"},"TaxonomyResult":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/ResultTerm"},"type":"array","title":"Categories","description":"The categories now on the post."},"tags":{"items":{"$ref":"#/components/schemas/ResultTerm"},"type":"array","title":"Tags","description":"The tags now on the post."},"ignored":{"items":{"$ref":"#/components/schemas/TaxonomyIgnored"},"type":"array","title":"Ignored","description":"Terms of the delivery you did not set, with the reason."}},"type":"object","title":"TaxonomyResult","description":"The categories and tags of the post after your CMS applied the delivery."},"TaxonomyStatus":{"properties":{"terms":{"type":"integer","minimum":0.0,"title":"Terms","description":"Categories and tags Tribune Desk holds for you."},"last_full_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Full Sync At","description":"When a full run last finished. `null` if none has."}},"type":"object","required":["terms"],"title":"TaxonomyStatus"},"TaxonomyTerm":{"properties":{"taxonomy":{"type":"string","enum":["category","tag"],"title":"Taxonomy","description":"Which taxonomy the term is in."},"cms_term_id":{"type":"string","maxLength":64,"minLength":1,"title":"Cms Term Id","description":"Your identifier of the term, as text."},"name":{"type":"string","maxLength":5000,"minLength":1,"title":"Name","description":"The name of the term: plain text, 1 to 5000 Unicode characters, stored as sent. An empty name fails the request with `422`."},"slug":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Slug","description":"The slug of the term."},"parent_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Parent Id","description":"`cms_term_id` of the parent, for a category."},"post_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Post Count","description":"How many posts carry the term."},"deleted":{"type":"boolean","title":"Deleted","description":"`true` when the term no longer exists in your CMS.","default":false}},"additionalProperties":false,"type":"object","required":["taxonomy","cms_term_id","name"],"title":"TaxonomyTerm"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Integration token: `Authorization: Bearer tdcms_...`."}}}}