Status of anchoring
const url = 'https://example.com/api/v1/evidence/anchoring';const options = { method: 'GET', headers: {cookie: 'bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/evidence/anchoring \ --cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3EWhether anchoring at the notary works, as anchoring in /healthz: degraded when the notary refuses the chain (reason: fork), or when new evidence has waited longer than BL_ANCHOR_STALE_AFTER for an anchor (reason: stale), for example because the authority is unreachable. With the last anchor and the last failure and its reason.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK.
The anchoring of this connector, as GET /api/v1/evidence/anchoring
shows it.
object
When an anchor was last made.
The last entry an anchor covers.
When anchoring last failed.
Why it last failed.
Failed attempts since the last anchor.
Since when the notary refuses the chain because it does not continue what was anchored before (#58), for example after restoring a backup. Cleared by the next anchor.
ok or degraded, as anchoring in /healthz.
The oldest evidence entry that no anchor covers yet.
Evidence may wait this long for an anchor before anchoring is
degraded (BL_ANCHOR_STALE_AFTER).
Example
{ "reason": "fork"}No valid session, DPoP-bound token or API key.
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).
The body of every failed call to a management API.
object
object
Stable, machine-readable: invalid_request, unauthenticated,
forbidden, not_found, conflict, upstream_unavailable,
unavailable, internal, or a more specific code of the operation.
For people; may change between versions.
Example
{ "error": { "code": "not_found", "message": "unknown negotiation" }}