Check whether a record is intact and get proof that it is included in the log.
GET /tamper_evident_logs/records/{package}
GET https://zanpki.com/tamper_evident_logs/records/{package}
| Operation ID |
tamper_evident_logs.records.package.get
|
|---|---|
| Access | Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key. Or: Anyone, signed in or not |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
package
| Path | Required | string | The record locator provided by the site, combining the record ID and its fingerprint so record pages cannot be guessed. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | Whether the record is intact, its entry in the log, and the proof that the entry is part of the latest checkpoint. | RecordProofAnswer | application/json, text/html, text/markdown |
| 422 | The request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json, text/html, text/markdown |
| Any other status | The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. | Problem | application/json, text/html, text/markdown |
200 Whether the record is intact, its entry in the log, and the proof that the entry is part of the latest checkpoint.
| Property | Type | Description | |
|---|---|---|---|
record_id
| string (snowflake) | Required | The ID of the record at this URL. |
standing
| one of: "intact", "changed", "erased", "expired", "removed", "erasure", "pending" | Required | The verification status of the record: intact, changed, erased (intentionally deleted), expired (deleted at the end of its retention period), removed (missing without a deletion record), erasure (this entry is itself a deletion record), or pending (waiting to be added to the log). |
kind
| string, or null | Required | The type of record, such as an audited change. Null while the record is waiting to be added. |
leaf_index
| integer (int64), or null | Required | The 0-based position of the record in the log, or null while it is waiting to be added. |
leaf
| string (byte), or null | Required | The raw bytes of the record's log entry (its stored fingerprint) from which the hash tree is built, or null while the record is waiting to be added. |
erases_record_id
| string (snowflake), or null | Required | The ID of the deleted record when this entry is a deletion record, or null otherwise. |
erased_record_url
| string, or null | Required | The URL of the deleted record's page when this entry is a deletion record, or null otherwise. |
erasure_url
| string, or null | Required | The URL of the log's deletion record (which has its own proof) when this record was intentionally deleted, or null otherwise. |
checkpoint_tree_size
| integer (int64), or null | Required | The number of records covered by the checkpoint used for this proof, or null until a checkpoint covers this record. |
checkpoint
| string, or null | Required | The signed checkpoint that this proof verifies against, exactly as signed, or null until a checkpoint covers this record. |
inclusion_path
| list of string (byte) | Required | The sibling hashes linking the record's entry to the checkpoint root, ordered from the leaf upward (an RFC 6962 inclusion proof). Empty until a checkpoint covers this record. |
proof_checks
| boolean | Required | Whether the site verified both the inclusion proof against the checkpoint and the checkpoint's signature against the signing key. You can verify them independently using the same data. |
verifier_key
| string, or null | Required | The signing key for the checkpoint, formatted for signed-note verification tools, or null until a checkpoint covers this record. |
mldsa87_verifier_key
| string, or null | Required | The ML-DSA-87 public signing key for the checkpoint, formatted for signed-note verification tools. Null when the checkpoint has no ML-DSA-87 signature. |
log_url
| string | Required | The URL of the log's public page listing all checkpoints and the signing key. |
422 The request input was rejected. The errors object lists each validation failure.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure. |
Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X GET 'https://zanpki.com/tamper_evident_logs/records/{package}'