Check whether a record is intact, and get the proof that it is in the log.

GET /tamper_evident_logs/records/{package}

GET https://dev.zanpki.com/tamper_evident_logs/records/{package}

Operation ID tamper_evident_logs.records.package.get
Access Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Or: An access token the site's ZanAuth issuer minted for its app, or a static key. Or: Anyone, signed in or not

Parameters

NameInTypeDescription
package Path Required string The record's address, as the site that keeps the record gives it: the record's id and its fingerprint in one, so a record's page can't be found by guessing.

Responses

StatusDescriptionSchemaContent 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 input was rejected; errors names each failure. ValidationProblem application/json, text/html, text/markdown
Any other status The request was refused. The problem's type names why, and its detail explains it for people to read. 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.

PropertyTypeDescription
record_id string (snowflake) Required The id of the record at this address.
standing one of: "intact", "changed", "erased", "expired", "removed", "erasure", "pending" Required Whether the record is intact: intact; changed; erased, when it was deleted on purpose; expired, when it was deleted at the end of its retention; removed, when it is missing with no note of a deletion; erasure, when this entry is itself the note of a deletion; or pending, while it waits to be added.
kind string, or null Required What kind of record it is, such as an audited change. It's null while the record waits to be added.
leaf_index integer (int64), or null Required The record's position in the log, counting from 0. It's null while the record waits to be added.
leaf string (byte), or null Required The record's entry in the log: the bytes its fingerprint is stored as, which the hash tree is built from. It's null while the record waits to be added.
erases_record_id string (snowflake), or null Required When this entry is the note of a deletion, the id of the record that was deleted. Otherwise it's null.
erased_record_url string, or null Required When this entry is the note of a deletion, the page of the record that was deleted. Otherwise it's null.
erasure_url string, or null Required When the record was deleted on purpose, the page of the log's note of its deletion, which has its own proof. Otherwise it's null.
checkpoint_tree_size integer (int64), or null Required How many records the checkpoint behind the proof covers. It's null until a checkpoint covers this record.
checkpoint string, or null Required The checkpoint the proof leads to, exactly as it was signed. It's null until a checkpoint covers this record.
inclusion_path list of string (byte) Required The hashes that link the record's entry to the checkpoint's root, starting next to the entry (an RFC 6962 inclusion proof). It's empty until a checkpoint covers this record.
proof_checks boolean Required Whether the site checked the proof against the checkpoint, and the checkpoint's signature against the key, and both held. You can check them yourself with the same data.
verifier_key string, or null Required The key the checkpoint is signed with, written the way signed-note tools take it. It's null until a checkpoint covers this record.
log_url string Required The log's public page, with every checkpoint and the signing key.

422 The input was rejected; errors names each failure.

PropertyTypeDescription
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 An explanation of what went wrong, written for people to read.
instance string Required The path the request was sent to.
errors InputErrors Required What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Any other status: The request was refused. The problem's type names why, and its detail explains it for people to read.

PropertyTypeDescription
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 An explanation of what went wrong, written for people to read.
instance string Required The path the request was sent to.

Example

curl -X GET 'https://dev.zanpki.com/tamper_evident_logs/records/{package}'

All documentation

0 database statements · 14 reads from the cache · 0.0 ms waiting for the database · 34.0 MiB peak memory
public.settingsSELECTfrom the cache
public.mesh_nodesSELECTfrom the cache
public.fqdnsSELECTfrom the cache
public.sitesSELECTfrom the cache
public.api_buildsSELECTfrom the cache
public.docs_guidesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.filesSELECTfrom the cache
public.api_buildsSELECTfrom the cache
public.docs_guidesSELECTfrom the cache