hosting
GET /v1/sites/{siteId}/redirects
List a site's redirects.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/redirects \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The redirect rules the site serves: which domain and path is redirected, where to, and with which status. id is ours, not the vendor's — this platform mints no identifier for a redirect, so this encodes the domain/type/path triple that addresses one. It is opaque, stable across reads, and must not be stored as a key. Requires sites.view — what a site redirects is not a secret. 404 for a site with no managed hosting package.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | SiteRedirect[] | Да | The redirect rules on the package. |
limit | VendorAllowance | Да | The effective ceiling on redirects. As with scheduled tasks, the platform publishes this capability as a boolean with no count. |
permitted | boolean | Да | Whether the package type includes redirects at all. |
can_create | boolean | Да | permitted, and the effective ceiling has room. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429 · 503