TAŇBA-OOH Разработчикам

Последние ежедневные якоря аудита

GET /v1/audit-anchors

https://verify.tanba-ooh.kz/v1/audit-anchors

Технический текст справочника написан на английском.

Новейшие 30 якорей, сначала самые свежие. Каждый день подписывающий сервис подписывает ключом статуса голову цепочки аудита; цепочка якорей (prev_anchor_hash) и подписанные файлы позволяют любому проверить, что прежние записи аудита не менялись. Выдается на хостах verify и app, кэшируется на 60 секунд.

Аутентификация

Не требуется. Вызов открытый.

Ответы

200 The anchors.

application/json

ИмяТипОбязательныйОписаниеПример
itemsarray of AuditAnchorItemдаThe anchors, newest first.
items[].daystring (date)даThe Asia/Almaty day the anchor covers."2026-10-05"
items[].envstringдаEnvironment the anchor belongs to. test, prod
items[].first_idintegerдаNumber of the first audit event of the day.15021
items[].last_idintegerдаNumber of the last audit event of the day.15874
items[].event_countintegerдаNumber of audit events of the day.854
items[].head_hashstringдаSHA-256 of the last audit event of the day, hex."b958946e30b0a4e6e69434dde89c1b1d7b631bc091ff027b0668027f7dc07bf7"
items[].prev_anchor_hashstringдаSHA-256 of the previous anchor body, hex; 64 zeros for the first."672d8fb820c1922f71e00aff2be44d87bb1bef45300381ed434814cb4c6a6b65"
items[].signed_atstringдаWhen the anchor was signed."2026-10-06T00:05:12+05:00"
items[].urlstringда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))
}