Аутентификација

Пошаљите 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).

Одговор

НазивТипОбавезноШта је ово
dataSiteRedirect[]ДаThe redirect rules on the package.
limitVendorAllowanceДаThe effective ceiling on redirects. As with scheduled tasks, the platform publishes this capability as a boolean with no count.
permittedbooleanДаWhether the package type includes redirects at all.
can_createbooleanДаpermitted, and the effective ceiling has room.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 429 · 503