ai

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

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

Всички крайни точки в ai

Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението sites.view; ключ без него се отхвърля с 403, а не с 404.

Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

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

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата

Детайли

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`.

Параметри

ИмеТипЗадължителноКакво представлява
site_id (path)UuidДа

Отговор

ИмеТипЗадължителноКакво представлява
site_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
sourcestring<ticket, self_serve, staff>Да
incompletebooleanДаTrue when any source could not be read or the diagnosis was partial.
refusedbooleanДа
refusal_codestringНе`allowance_exhausted` or `not_in_good_standing`.
refusal_messagestringНе
logsAiSiteAgentLogsДа
findingsAiSiteAgentFinding[]Да
appliedobject[]ДаFixes the AI applied, and under which mode.
offeredobject[]ДаFixes found but NOT applied, with why. `awaiting_your_approval` means the customer asked to be asked; anything else names a refusal.
allowanceAiSiteAgentAllowanceНе

Грешки, които този крайpoint може да върне

401 · 402 · 403 · 404 · 422 · 429