From 41e0ac583f007ba3170d6a073fcb07cdf73b63c0 Mon Sep 17 00:00:00 2001 From: bensynapse <118375461+bensynapse@users.noreply.github.com> Date: Tue, 17 Nov 2026 01:35:45 +0200 Subject: [PATCH 1/3] Take the document at API version 1.21.2 The curated document moves from API 1.21.0 to 1.21.2. Version 1.21.1 changed only info.version here. Subscription gains cancel_at and ends_at, both required and nullable. create_subscription_checkout gains a description, and its 409 names plan_active and checkout_open. OneTimeConfirmSummary.state gains link_canceled. The fax history export and its 403 name both of its scopes. The description of OneTimeOrder is split into shorter sentences. Its fields do not change. 132 paths, 165 operations and 175 schemas, the same as 1.21.0. --- CHANGELOG.md | 25 +++++++++++++++++ README.md | 18 +++++++++---- docs/llms.txt | 2 +- docs/reference.html | 19 ++++++------- openapi.yaml | 54 ++++++++++++++++++++++++++++--------- scripts/server-openapi.json | 2 +- 6 files changed, 92 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ece3a4c..eabf94c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to the public OpenAPI document are listed here. The version is the API's `info.version` as served at `https://api.faxforagents.com/openapi.json`. +## 1.21.2 (2026-11-16) + +API version 1.21.2, curated from the server document at that release. 132 paths, 165 operations and +175 schemas, the same as 1.21.0. No operation or schema is new. This document skips 1.21.1, which +changed only `info.version` here. + +- `Subscription` gains `cancel_at` and `ends_at`. Both are required and nullable. `cancel_at` is + when Stripe is set to end the subscription. A cancel in the billing portal sets it to the end of the + period and leaves `cancel_at_period_end` false. +- `ends_at` is when the plan ends without another charge. It is `cancel_at` when that comes no later + than `current_period_end`, or `current_period_end` after a cancel at the period's end. It is null + while the plan renews. +- `create_subscription_checkout` gains a description. It answers the address of Stripe's payment page + for the plan. +- Its 409 has its own text, written by the server. `error.code` is `conflict` and + `error.details.reason` says why. `plan_active` means the plan is active, here or at Stripe right + after a payment. `checkout_open` means a Checkout of the plan is still open. Then `error.details.url` + is its page and `error.details.expires_at` is when it closes. The same 409 names + `idempotency_key_conflict`. +- `OneTimeConfirmSummary.state` gains `link_canceled`, for an order that was canceled with its hold + released. The description of the schema names it. +- The descriptions of `get_fax_history_csv` and of its 403 name both scopes. `x-required-scope` is + `fax:read`, and the export needs `inbox:read` as well. +- The description of `OneTimeOrder` is split into shorter sentences. Its fields do not change. + ## 1.21.0 (2026-11-16) API version 1.21.0, curated from the server document at that release. 132 paths, 165 operations and diff --git a/README.md b/README.md index 4eebc6b..5e26406 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ repository holds the public OpenAPI document of the API. | File | What it is | |---|---| -| [`openapi.yaml`](openapi.yaml) | OpenAPI 3.1, 165 operations in 132 paths, 175 schemas, version 1.21.0 | +| [`openapi.yaml`](openapi.yaml) | OpenAPI 3.1, 165 operations in 132 paths, 175 schemas, version 1.21.2 | | [`docs/`](docs/) | The rendered reference, published at | | [`docs/llms.txt`](docs/llms.txt) | The same contract written for a model | | [`scripts/curate.py`](scripts/curate.py) | Produces `openapi.yaml` from the server's own document | @@ -109,6 +109,13 @@ with it. While the plan is active, each credential may make 3000 requests a minu `RateLimit-Limit` header of every answer. The plan pays the monthly charge of the oldest live local number, and that number reads `included_with_workspace` true. +`POST /v1/subscriptions/checkout` answers the address of Stripe's payment page for the plan. While the +plan is active, or a payment page for it is still open, the answer is 409 `conflict`, so the plan is +never paid twice. `error.details.reason` is then `plan_active` or `checkout_open`, and `checkout_open` +carries the open page's `url` and its `expires_at`. Each subscription names `cancel_at`, the end date +Stripe holds, and `ends_at`, when the plan ends without another charge. `ends_at` is null while the plan +renews. + `GET /v1/records/faxes.csv` and `GET /v1/records/audit.csv` export the fax history and the audit trail as CSV, for a range of UTC days. They answer while the plan is active and for 30 days after it ended. Otherwise the answer is 403 `workspace_required`. The fax history needs `inbox:read` as well as @@ -149,8 +156,9 @@ The person who pays accepts the acceptable use policy and the terms, never a key order starts with `aup_accepted` false and carries a `status_url`, the order's page. Hand that link to the person who pays. They accept the terms there and the checkout opens. `queue` on the config and on the order says whether a fax would wait for a carrier line, with `jobs_ahead` and `estimated_wait_minutes`. The confirm page -reads a mailed link with `POST /v1/one-time-sends/by-token` and the token in the body. The older -`GET /v1/one-time-sends/by-token/{token}` is deprecated. +reads a mailed link with `POST /v1/one-time-sends/by-token` and the token in the body. The answer's +`state` is `link_canceled` once the order was canceled. The older `GET /v1/one-time-sends/by-token/{token}` +is deprecated. ## States @@ -216,8 +224,8 @@ The errors an operation can answer are declared on it. The shared ones are in `c 401, 402, 403, 404, 409, 410, 413, 422, 429 and 503, each the envelope above. Where the shared words are not true of a route, it carries its own. The document and inbox routes name their 410. The billing routes that refuse a test key name `environment_not_billable` under 403, and the records export names -`workspace_required` there. Key rotation, top-up cancel and the replay of a webhook delivery name the -`details` of their 409. A field that fails validation answers 422 +`workspace_required` there. Key rotation, top-up cancel, the replay of a webhook delivery and the +workspace checkout name the `details` of their 409. A field that fails validation answers 422 `invalid_request` in the same envelope. Repeat a mutating call with the same `Idempotency-Key` and the same resource comes back with `Idempotent-Replayed: true`. diff --git a/docs/llms.txt b/docs/llms.txt index 6388a9c..17b8f04 100644 --- a/docs/llms.txt +++ b/docs/llms.txt @@ -12,7 +12,7 @@ A fax job is `queued`, `active`, `partial`, `failed`, `unknown` or `delivered`. Errors are one envelope: `{"error": {"code", "message", "retryable", "correlation_id", "details"}}`. Rate limits answer 429 with `Retry-After`. -Base URL: https://api.faxforagents.com. Version 1.21.0. +Base URL: https://api.faxforagents.com. Version 1.21.2. Authentication: `Authorization: Bearer ffa_live_...` or `X-API-Key`. Test keys are `ffa_test_...` and reach the sandbox only. ## Documents diff --git a/docs/reference.html b/docs/reference.html index 43dba4a..4aa838d 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -4,7 +4,7 @@ Fax for Agents API reference - +