hosting
GET /v1/site-blueprints
List your site blueprints.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/site-blueprints \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
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.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
stack_type (query) | StackType | Не | Only blueprints captured from a site of this stack. The compatibility axis — a WordPress blueprint can only be deployed onto WordPress. |
cursor (query) | string | Не | Opaque cursor from a previous page's page.next_cursor. |
limit (query) | integer | Не | Maximum items to return (page size). |
ordering (query) | string | Не | 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… |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | SiteBlueprint[] | Да | — |
page | PageMeta | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 429