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.zankms.com/tamper_evident_logs/records/{package}

ID da operação tamper_evident_logs.records.package.get
Acesso Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Ou: An access token the site's ZanAuth issuer minted for its app, or a static key. Ou: Qualquer pessoa, conectada ou não

Parâmetros

NomeEmTipoDescrição
package Caminho Obrigatório 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.

Respostas

StatusDescriçãoEsquemaTipo de conteúdo
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
Qualquer outro 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.

PropriedadeTipoDescrição
record_id string (snowflake) Obrigatório The id of the record at this address.
standing one of: "intact", "changed", "erased", "expired", "removed", "erasure", "pending" Obrigatório 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 Obrigatório 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 Obrigatório 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 Obrigatório 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 Obrigatório 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 Obrigatório 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 Obrigatório 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 Obrigatório How many records the checkpoint behind the proof covers. It's null until a checkpoint covers this record.
checkpoint string, or null Obrigatório 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) Obrigatório 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 Obrigatório 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 Obrigatório 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 Obrigatório The log's public page, with every checkpoint and the signing key.

422 The input was rejected; errors names each failure.

PropriedadeTipoDescrição
type string Obrigatório 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 Obrigatório The HTTP status as text, such as Not Found.
status integer (int32) Obrigatório The HTTP status code of the response.
detail string Obrigatório An explanation of what went wrong, written for people to read.
instance string Obrigatório The path the request was sent to.
errors InputErrors Obrigatório What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

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

PropriedadeTipoDescrição
type string Obrigatório 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 Obrigatório The HTTP status as text, such as Not Found.
status integer (int32) Obrigatório The HTTP status code of the response.
detail string Obrigatório An explanation of what went wrong, written for people to read.
instance string Obrigatório The path the request was sent to.

Exemplo

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

Toda a documentação

0 instrução de banco de dados · 14 leituras do cache · 0.0 ms aguardando o banco de dados · 30,0 MiB de pico de memória
public.settingsSELECTdo cache
public.mesh_nodesSELECTdo cache
public.fqdnsSELECTdo cache
public.sitesSELECTdo cache
public.api_buildsSELECTdo cache
public.docs_guidesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.api_buildsSELECTdo cache
public.docs_guidesSELECTdo cache