hosting
POST /v1/site-blueprints/{siteBlueprintId}/screenshot
Mint a time-limited URL for a blueprint's screenshot.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/site-blueprints/{siteBlueprintId}/screenshot \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Returns a presigned URL the browser fetches directly from object storage. ⛔ POST, despite reading nothing — the same rule downloadSiteBackup follows: the response body is a signed credential for customer content (a picture of their site, which can show unlaunched branding or a page behind a login), so a GET would invite it into browser history, proxy logs and shared caches. The grant expires in ten minutes; take a new one rather than storing it. A blueprint with no screenshot is a 422, not a 404 — the blueprint exists, the picture does not. Requires sites.view.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteBlueprintId (path) | Uuid | Да | A SITE blueprint's id (UUIDv7) — one of the customer's own captured sites. ⛔ Not a blueprintId: that names a published stack recipe, and the two are different resources that… |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
url | string | Да | ⛔ A bearer credential for the picture until it expires — never log it, never store it, hand it straight to the browser. |
expires_at | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429