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

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Где се уноси ID ваше организације

Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.

Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Lists the sites the principal can view across its tenancy subtree. Cursor-paginated. RLS guarantees no site outside the principal's subtree is ever returned (CLAUDE.md §2.3). Sites with status deleted are not listed by default — they are a terminal state with their own endpoint, GET /v1/sites/deleted, which also reports how long each one stays recoverable. Pass status=deleted explicitly to list them here. Every other status, including deleting, is listed as normal.

Параметри

НазивТипОбавезноШта је ово
X-Zinn-Org (header)stringНеWhich organisation this call acts for. Send a client organisation's id and every org-scoped endpoint answers for that client alone; omit it and the answer covers everything…
cursor (query)stringНеOpaque cursor from a previous page's page.next_cursor.
limit (query)integerНеMaximum items to return (page size).
org_id (query)UuidНеRestrict to one organization in scope (default — the whole subtree).
status (query)SiteStatusНеFilter by site lifecycle status. Omitted, every status except deleted is returned; pass deleted to list deleted sites here rather than at GET /v1/sites/deleted.
product_line (query)stringНеFilter by product line code (e.g. footprint_free, mainstream).
group (query)stringНеRestrict to the sites in one site group (#2729). A group id belonging to another tenant matches nothing and returns an empty page rather than a 404 — the queryset is already…
search (query)stringНеCase-insensitive substring match on the site's primary domain or its name. Applied in the database across the whole collection in scope — not to the page already fetched — so a…
ordering (query)string<domain, -domain, name, -name, status, -status, line, -line, stack, -stack, region, -region, plan, -plan, created, -created, authority, -authority, indexed, -indexed>НеSort key, optionally --prefixed for descending. Defaults to -created (newest first). Sorting is applied across the whole collection and the cursor carries the sort position,…

Одговор

НазивТипОбавезноШта је ово
dataSite[]Да—
pagePageMetaДа—

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

401 · 403 · 422 · 429