Bounds API
The limits an owner sets for a job, and the second signature a money bound needs.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/bounds/pending
List bounds waiting for a signature
Versions waiting for a co-owner to sign, newest first. Needs bounds: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 bounds:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | No | How many items to return. Default 50, at most 100. |
cursor | query | string | No | The `next_cursor` of the previous page. Opaque; never built by the client. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/bounds/{kind}/{id}
Get the latest bounds of a thing
The highest version, whatever its status. Private figures are not sent. Needs bounds:read.
Scope bounds:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
kind | path | string | Yes | What the bounds are about, for example `job`. |
id | path | string | Yes | The thing the bounds are about. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/bounds/{kind}/{id}/versions/{version}/approve
Sign a bounds version
Adds your signature. The last signature needed makes the version active. Signing twice, signing an expired or closed version, or signing without the owner role is refused. Needs bounds:write.
Scope bounds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
kind | path | string | Yes | What the bounds are about, for example `job`. |
id | path | string | Yes | The thing the bounds are about. |
version | path | integer | Yes | The version of the bounds. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/bounds/{kind}/{id}/versions/{version}/revoke
Revoke a bounds version
Closes the version. Later steps stop relying on it. Needs bounds:write and the owner role.
Scope bounds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
kind | path | string | Yes | What the bounds are about, for example `job`. |
id | path | string | Yes | The thing the bounds are about. |
version | path | integer | Yes | The version of the bounds. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |