Skip to content

Insurance API

Policies, premium and renewal clocks, claims and nominee splits.

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

GET/v1/insurance/policies

Read policies

The policies of the workspace. Needs miniself:read.

Scope insurance:read. 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/insurance/policies

Add policy

Writes a policy with its clocks and nominees. The nominees' shares must make the whole. Needs miniself:write.

Scope insurance: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.

GET/v1/insurance/policies/{id}

Read policy

One policy. Needs miniself:read.

Scope insurance:read. Accepts: API key or personal access token. Open in the API reference

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

POST/v1/insurance/policies/{id}/premium-paid

Premium paid

Moves the premium clock on after a payment. Needs miniself:write.

Scope insurance:write. Accepts: API key or personal access token. Open in the API reference

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

POST/v1/insurance/policies/{id}/payout-split

Split a payout

The nominees' parts of a payout, exact to the micro. Needs miniself:write.

Scope insurance:write. Accepts: API key or personal access token. Open in the API reference

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

GET/v1/insurance/claims

Read claims

The claims of the workspace. Needs miniself:read.

Scope insurance:read. 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/insurance/claims

Add claim

Opens a claim on a policy. The papers are the ones the insurer or the pack asks for. Needs miniself:write.

Scope insurance: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.

GET/v1/insurance/claims/{id}

Read claim

One claim. Needs miniself:read.

Scope insurance:read. Accepts: API key or personal access token. Open in the API reference

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

POST/v1/insurance/claims/{id}/steps

Take a step on a claim

Marks papers in, files, records the insurer's query and answer, the decision, an appeal and the payout received. Needs miniself:write.

Scope insurance:write. Accepts: API key or personal access token. Open in the API reference

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