Последние ежедневные якоря аудита
GET /v1/audit-anchors
https://verify.tanba-ooh.kz/v1/audit-anchors
Технический текст справочника написан на английском.
Новейшие 30 якорей, сначала самые свежие. Каждый день подписывающий сервис подписывает ключом статуса голову цепочки аудита; цепочка якорей (prev_anchor_hash) и подписанные файлы позволяют любому проверить, что прежние записи аудита не менялись. Выдается на хостах verify и app, кэшируется на 60 секунд.
Аутентификация
Не требуется. Вызов открытый.
Ответы
200 The anchors.
application/json
| Имя | Тип | Обязательный | Описание | Пример |
|---|---|---|---|---|
items | array of AuditAnchorItem | да | The anchors, newest first. | |
items[].day | string (date) | да | The Asia/Almaty day the anchor covers. | "2026-10-05" |
items[].env | string | да | Environment the anchor belongs to. test, prod | |
items[].first_id | integer | да | Number of the first audit event of the day. | 15021 |
items[].last_id | integer | да | Number of the last audit event of the day. | 15874 |
items[].event_count | integer | да | Number of audit events of the day. | 854 |
items[].head_hash | string | да | SHA-256 of the last audit event of the day, hex. | "b958946e30b0a4e6e69434dde89c1b1d7b631bc091ff027b0668027f7dc07bf7" |
items[].prev_anchor_hash | string | да | SHA-256 of the previous anchor body, hex; 64 zeros for the first. | "672d8fb820c1922f71e00aff2be44d87bb1bef45300381ed434814cb4c6a6b65" |
items[].signed_at | string | да | When the anchor was signed. | "2026-10-06T00:05:12+05:00" |
items[].url | string | да | Address of the signed anchor. | "/v1/audit-anchors/2026-10-05" |
Пример
{
"items": [
{
"day": "2026-10-05",
"env": "test",
"first_id": 15021,
"last_id": 15874,
"event_count": 854,
"head_hash": "b958946e30b0a4e6e69434dde89c1b1d7b631bc091ff027b0668027f7dc07bf7",
"prev_anchor_hash": "672d8fb820c1922f71e00aff2be44d87bb1bef45300381ed434814cb4c6a6b65",
"signed_at": "2026-10-06T00:05:12+05:00",
"url": "/v1/audit-anchors/2026-10-05"
}
]
}
Ошибки
Ошибки приходят документом problem (application/problem+json) со стабильным полем code.
| Статус | Значение |
|---|---|
| 429 | Превышен предел частоты; см. Retry-After. |
Примеры кода
curl
curl 'https://verify.tanba-ooh.kz/v1/audit-anchors'
Python
import requests
response = requests.get(
"https://verify.tanba-ooh.kz/v1/audit-anchors",
)
print(response.status_code, response.text)
Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://verify.tanba-ooh.kz/v1/audit-anchors", nil)
if err != nil {
panic(err)
}
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
data, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, string(data))
}