Skip to content

Held changes API

Changes that wait a day before they take effect: who may approve, a raised cap, a data export.

The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.

GET/v1/held-changes

List changes that are waiting

The changes still waiting to take effect, newest first. A change whose day has passed is applied before the list is read, so it is not listed. Needs held-changes:read.

Paged: limit is 1 to 100 (default 50, out of range values are clamped) and cursor is the next_cursor of the previous page. The cursor is opaque and never built by the client; a cursor this API did not return is a 400. has_more is true while another page exists. There is no total.

Scope held-changes:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
limitqueryintegerNoHow many items to return. Default 50, at most 100.
cursorquerystringNoThe `next_cursor` of the previous page. Opaque; never built by the client.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/held-changes

Hold a change

Checks the passkey answer from begin against this exact change and holds it for a day. Only an owner may. The change takes effect when the day has passed unless an owner cancels it first. Needs held-changes:write.

Scope held-changes:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/held-changes/begin

Begin proving a change

Returns the passkey ceremony made over the digest of this exact change. Pass options to the browser and send the answer, with the same request, to POST /v1/held-changes. Only an owner may. Needs held-changes:write.

Scope held-changes:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/held-changes/{id}/cancel

Cancel a held change

Stops a change that has not taken effect. A change already applied or cancelled is not found. Only an owner may. Needs held-changes:write.

Scope held-changes:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
idpathstringYes
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.