ai

POST /v1/ai/site-agent/sites/{site_id}/check

Read this site's server, diagnose it, and fix what the customer allows.

Wszystkie punkty końcowe ai

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie sites.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X POST https://api.zinndigital.com/v1/ai/site-agent/sites/{site_id}/check \
  -H "Authorization: Bearer zdk_live_…"

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

Reads the site's live server — error log, PHP faults, slow queries, disk and memory — diagnoses what is wrong, and applies the fixes this customer has allowed to run unattended. Fixes they have asked to be asked about come back in offered with the finding that triggered them, so the screen can show the button. Log text is redacted before it leaves the server: visitor IP addresses, email addresses, tokens, keys and passwords are masked, and logs.sources[].masked reports how many runs of each kind were removed. On our own fleet the server-wide error log is filtered to this account on the host, so another tenant's lines are never transferred at all. A source that could not be read is returned with state: unavailable and a reason, never omitted — "we found nothing wrong" and "we could not look" are different answers and only one of them is reassuring. incomplete is true whenever any source is in that state. Counts against the monthly allowance. A 402 means the allowance is exhausted or the account is not in good standing; the body carries the allowance and a message. Requires sites.view.

Parametry

NazwaTypWymaganeCo to jest
site_id (path)UuidTak

Odpowiedź

NazwaTypWymaganeCo to jest
site_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
sourcestring<ticket, self_serve, staff>Tak
incompletebooleanTakTrue when any source could not be read or the diagnosis was partial.
refusedbooleanTak
refusal_codestringNieallowance_exhausted or not_in_good_standing.
refusal_messagestringNie
logsAiSiteAgentLogsTak
findingsAiSiteAgentFinding[]Tak
appliedobject[]TakFixes the AI applied, and under which mode.
offeredobject[]TakFixes found but NOT applied, with why. awaiting_your_approval means the customer asked to be asked; anything else names a refusal.
allowanceAiSiteAgentAllowanceNie

Błędy, które ten punkt końcowy może zwrócić

401 · 402 · 403 · 404 · 422 · 429