# Changelog

Dated changes to the API, the MCP server and these docs. The API is in beta: it can still change, and breaking changes are
announced here first.

## 2026-11-25

- Channel options now also say `preview` and `note`.

## 2026-11-24

Smaller fixes, also before the beta opens:

- `server_error` is a documented error code: it is what an unexpected failure on our side returns.
- The `Idempotency-Key` is 1 to 255 printable ASCII characters without spaces (the docs said spaces were fine; they
  were always refused).
- On the MCP server, a missing or invalid tool argument comes back as a tool error in the same shape as every other
  error (`required` or `validation_error`, with the field), and a call that takes longer than 90 seconds is answered
  with `server_error` (a write with the same `idempotency_key` is safe to retry).
- Retrying `delete-published` with `variant_ids` for a copy that is already down answers `already_removed`, not
  `failed`. A replayed write no longer asks TikTok for the account's settings again.
- A failed media item's message is in the language of the request that reads it, for a failed `PUT` upload as well
  as for a failed URL download.
- Failed authentications are counted per key (30 a minute) and per address (300 a minute). A valid key or token is never
  refused because of failures from its address, and a request with no credential at all (the discovery challenge) is not a
  failure. Failed requests to `/oauth/token` and `/oauth/revoke` are limited per client and per address; a request that
  works is never refused.
- A workspace has at most 1 URL download running at a time; more wait in the queue.
- Webhook deliveries: at most 2 in flight per endpoint and 4 per workspace; the rest wait for the next minute's sweep.
- A client is shown as unverified when its metadata document is on any host under a public-suffix private domain
  (`web.app`, `workers.dev`, `cloudfront.net`, `github.io` and so on), not only a short list.

Security hardening before the beta opens. Changes you may notice:

- Webhooks (`GET`, `POST` and `DELETE /webhooks`) belong to the workspace owner: a key or app connected by an editor or
  approver gets 403 `forbidden`.
- `POST /posts/{id}/delete-published` and `postaki_delete_published` need `"confirm": true`; without it the answer is 422
  `confirmation_required` and nothing is taken down. The deletion record names the key or app.
- After an edit puts an approved copy back to waiting, `approval.state` is `awaiting` (it was `approved`).
- A workspace can have 5 media items arriving or processing at a time; announced uploads reserve their size against the
  storage allowance; URL downloads stop after 10 minutes.
- New limits: 600 requests a minute and 20,000 a day per workspace over all its credentials, and 30 failed
  authentications a minute per address. The replay of a `POST /media/uploads` with the same `Idempotency-Key` returns
  `upload_url: null` (the URL is a credential and is not kept).
- Clients that publish their metadata document on a shared hosting host (for example `github.io` or
  `storage.googleapis.com`) are shown to the person approving as unverified.

## 2026-11-23

First version of the public API, the MCP server and the docs, in beta.

- REST API at `https://app.postaki.io/api/v1/`, OpenAPI 3.1 at `/api/v1/openapi.json`: brands, channels and their
  capabilities, live channel options, posts (validate, create, update, submit, delete, delete published), media (signed
  upload and from a URL), webhooks.
- Approval stays with a person: no credential can approve a post. `ai_generated` is required on every post.
- API keys (`pk_live_...`) with `read` and `write` scopes, made by workspace owners in the app.
- OAuth 2.1 authorization server: PKCE S256, scopes `read`, `write`, `offline_access`, resource binding, Client ID Metadata
  Documents and dynamic client registration.
- Remote MCP server at `https://app.postaki.io/mcp` with 16 tools, each with explicit `readOnlyHint`, `destructiveHint`
  and `openWorldHint`. `idempotency_key` is required on every write tool.
- Limits: 120 requests a minute and 5,000 a day per credential, 100 posts a day per workspace. `Idempotency-Key` kept for
  24 hours.
- Webhooks with signed deliveries (`Postaki-Signature`), retries and automatic switch-off after 3 days of failures.
- Settings pages, "API and AI agents": keys, connected apps, webhooks, request log (90 days).
- Docs wiki, with a Markdown copy of every page, `llms.txt` and `llms-full.txt`.
