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}

オペレーション ID tamper_evident_logs.records.package.get
アクセス Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. または: An access token the site's ZanAuth issuer minted for its app, or a static key. または: サインインの有無を問わず全員

パラメータ

名前場所型説明
package パス 必須 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.

レスポンス

ステータス説明スキーマコンテンツタイプ
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
その他のステータス 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.

プロパティ型説明
record_id string (snowflake) 必須 The id of the record at this address.
standing one of: "intact", "changed", "erased", "expired", "removed", "erasure", "pending" 必須 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 必須 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 必須 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 必須 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 必須 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 必須 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 必須 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 必須 How many records the checkpoint behind the proof covers. It's null until a checkpoint covers this record.
checkpoint string, or null 必須 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) 必須 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 必須 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 必須 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 必須 The log's public page, with every checkpoint and the signing key.

422 The input was rejected; errors names each failure.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.
errors InputErrors 必須 What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

例

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

すべてのドキュメント

0件のデータベースステートメント · キャッシュからの読み取り 14件 · データベース待機時間 0.0 ms · ピークメモリ 32.0 MiB
public.settingsSELECTキャッシュから
public.mesh_nodesSELECTキャッシュから
public.fqdnsSELECTキャッシュから
public.sitesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから