Autentifikatsiya
API kalitini bearer token sifatida yuboring. Kalit sites.view ruxsatiga ega boʻlishi shart; ruxsatsiz kalit 404 emas, balki 403 xatosi bilan rad etiladi.
Bu yakuniy nuqta hech qanday tashkilot identifikatorini qabul qilmaydi. Sizning kalitingiz unga tegishli tashkilotni allaqachon aniqlaydi va javob shunga qarab cheklanadi.
Sinab ko'rish
Qavslardagi har qanday narsani o'z qiymatlaringiz bilan, kalit pleysxolderini эsa boshqaruv panelingizdagi kalit bilan almashtiring.
curl -X GET https://api.zinndigital.com/v1/site-blueprints \
-H "Authorization: Bearer zdk_live_…"Tizimga kirganmisiz? Boshqaruv panelingizdagi API konsoli haqiqiy tashkilot ID raqamingiz va shaxsiy kalitingizni avtomatik to'ldiradi hamda haqiqiy javobni ko'rishingiz uchun so'rovni jonli API orqali bajaradi. Ushbu yakuniy nuqtani API konsolida oching
Tafsilotlar
The management screen's data. A cheap database read, polled while a capture is in flight, so it never calls object storage — `has_screenshot` reports whether a picture exists and each tile asks for its own short-lived URL. Filter by `stack_type` to get exactly the blueprints that can be deployed onto a site of that stack; that is the same field the engine refuses a mismatch on, so a picker built on it cannot drift from the guard. Requires `sites.view`.
Parametrlar
| Nomi | Turi | Majburiy | Nima bu |
|---|---|---|---|
stack_type (query) | StackType | Yo'q | Only blueprints captured from a site of this stack. The compatibility axis — a WordPress blueprint can only be deployed onto WordPress. |
cursor (query) | string | Yo'q | Opaque cursor from a previous page's `page.next_cursor`. |
limit (query) | integer | Yo'q | Maximum items to return (page size). |
ordering (query) | string | Yo'q | Sort key, optionally `-`-prefixed for descending. One of `created` or `name`; defaults to `-created` (newest first). An unrecognised key is a `422`, never a silent fall back to… |
Javob
| Nomi | Turi | Majburiy | Nima bu |
|---|---|---|---|
data | SiteBlueprint[] | Ha | — |
page | PageMeta | Ha | — |
Ushbu yakuniy nuqta qaytarishi mumkin bo'lgan xatolar
401 · 403 · 429