Skip to main content
GET
/
v1
/
tenants
/
{tenant_id}
/
subjects
/
{subject_type}
/
{subject_id}
/
chain-proof
Get chain proof
curl --request GET \
  --url https://tally-platform-api-xwka6vu2kq-ue.a.run.app/v1/tenants/{tenant_id}/subjects/{subject_type}/{subject_id}/chain-proof \
  --header 'Authorization: Bearer <token>'
{
  "subject_type": "<string>",
  "subject_id": "<string>",
  "chain": [
    {
      "snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "snapshot_version": 123,
      "envelope_hash": "<string>",
      "prev_hash": "<string>",
      "chain_valid": true,
      "generated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "chain_valid": true
}

Authorizations

Authorization
string
header
required

Firebase Auth JWT issued by Google Identity Platform. Obtain a token by signing in at your app domain and calling firebase.auth().currentUser.getIdToken().

Path Parameters

tenant_id
string
required

Tenant identifier.

subject_type
enum<string>
required

Subject type discriminator.

Available options:
entity,
individual
subject_id
string
required

Stable subject identifier within its type namespace.

Query Parameters

depth
integer
default:50

Maximum chain depth to return.

Required range: x <= 200

Response

Chain proof.

subject_type
string
subject_id
string
chain
object[]
chain_valid
boolean

Whether all links in the returned chain are valid.