TAŇBA-OOH Әзірлеушілерге

Redirect from a typed number to its page

GET /v1/lookup

https://verify.tanba-ooh.kz/v1/lookup

Анықтамалықтың техникалық мәтіні ағылшын тілінде жазылған.

Takes the number typed into the form on the verification home page and redirects with 303 to the page of that approval. A number that is unknown or malformed gets the same 404 as the approval page, so the answer does not reveal which numbers exist. lang selects the language of the page.

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

Қажет емес. Шақыру ашық.

Параметрлер

АтауыОрныТүріМіндеттіСипаттамаМысал
numberсұрауstringжоқThe number as typed by a person.TNB-2026-000123
langсұрауstringжоқLanguage of the page: kk, ru or en. kk, ru, enkk

Жауаптар

303 Redirect to the approval page.

Денесі жоқ.

Қателер

Қателер problem құжаты (application/problem+json) түрінде, тұрақты code өрісімен келеді.

МәртебесіМағынасы
404Not an issued approval.
429Rate limit; see Retry-After.

Код мысалдары

curl

curl 'https://verify.tanba-ooh.kz/v1/lookup'
Python
import requests

response = requests.get(
    "https://verify.tanba-ooh.kz/v1/lookup",
)
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/lookup", 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))
}