public

POST /v1/wp/site-panel/{siteId}

What the must-use plugin renders on a hosted site's WordPress dashboard.

Све public крајње тачке

Сва документација за програмере →

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

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

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

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

curl -X POST https://api.zinndigital.com/v1/wp/site-panel/{siteId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

Детаљи

Called by the Zinn® Platform must-use plugin on a site we host, not by a person. It returns that site's plan, its allowances and current usage, and the cards, plan links and admin-bar items the platform is currently showing — so changing what every hosted site displays is an edit on one admin screen rather than a plugin release. Authenticated by the site's own secret, never by a bearer token: the caller is a WordPress site, not a principal. The request carries X-Zinn-Cache-Signature: sha256=HMAC(timestamp + "\n" + body) keyed with that site's ZINN_UPDATE_SECRET, and the response is signed the same way in X-Zinn-Signature so a site can prove the answer came from us before rendering any of it. ⛔ Every unknown quantity is null, never 0. A resource this kind of hosting cannot measure — a database on a static host, for instance — is permanently null, and the plugin renders that as "not measured yet". A 0 would tell the customer their database is empty. ⛔ Anything unauthenticated, stale, unknown or deleted is a 404, never a 401, so this cannot become an oracle for which site ids exist.

Параметри

НазивТипОбавезноШта је ово
siteId (path)UuidДаSite ID (UUIDv7).

Тело захтева

НазивТипОбавезноШта је ово
localestringНеThe WordPress locale of the administrator viewing the dashboard (de_DE, pt_BR). Resolved to one of the platform's languages; an unknown one gets English rather than an empty…
versionstringНеThe plugin version this site is running. ⭐ This is what makes the rollout figure real — it is reported by the site rather than inferred from what we pushed.

Одговор

НазивТипОбавезноШта је ово
planobjectДаThe governing subscription's name and renewal date. ⛔ Empty when nothing governs this site — a staff-assigned or trial site — rather than a fabricated "Free" plan, which would…
allowancesSitePanelAllowance[]Да—
plan_linksSitePanelLink[]Да—
cardsSitePanelCard[]Да—
admin_barSitePanelLink[]Да—
ttlintegerДаHow long the plugin may serve this answer before asking again, in seconds. Sent rather than hard-coded in the plugin, so the refresh cadence can change on the estate without a…

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

404 · 429