Autentifikacija
Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu sites.view; ključ bez nje se odbija sa 403, a ne sa 404.
Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.
curl -X GET https://api.zinndigital.com/v1/site-blueprints \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli
Detalji
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`.
Parametri
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
stack_type (query) | StackType | Ne | Only blueprints captured from a site of this stack. The compatibility axis — a WordPress blueprint can only be deployed onto WordPress. |
cursor (query) | string | Ne | Opaque cursor from a previous page's `page.next_cursor`. |
limit (query) | integer | Ne | Maximum items to return (page size). |
ordering (query) | string | Ne | 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… |
Odgovor
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
data | SiteBlueprint[] | Da | — |
page | PageMeta | Da | — |
Greške koje ovaj krajnji tačka može da vrati
401 · 403 · 429