hosting

GET /v1/sites/{siteId}/redirects

List a site's redirects.

Alle hosting-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie sites.view beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.

Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/redirects \
  -H "Authorization: Bearer zdk_live_…"

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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.

Parameters

NaamTypeVerplichtWat dit is
siteId (path)UuidJaSite ID (UUIDv7).

Reactie

NaamTypeVerplichtWat dit is
dataSiteRedirect[]JaThe redirect rules on the package.
limitVendorAllowanceJaThe effective ceiling on redirects. As with scheduled tasks, the platform publishes this capability as a boolean with no count.
permittedbooleanJaWhether the package type includes redirects at all.
can_createbooleanJa`permitted`, **and** the effective ceiling has room.

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 429 · 503