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 అనుమతిని కలిగి ఉండాలి; అది లేని కీని 404 కాకుండా 403తో తిరస్కరిస్తారు.

ఈ ఎండ్‌పాయింట్ ఎలాంటి సంస్థ ఐడీని తీసుకోదు. మీ కీ ఇప్పటికే అది ఏ సంస్థకు చెందుతుందో గుర్తిస్తుంది మరియు ప్రతిస్పందన దానికే పరిమితం చేయబడుతుంది.

ప్రయత్నించండి

కోణీయ బ్రాకెట్‌లలో ఉన్న దేన్నైనా మీ స్వంత విలువలతో భర్తీ చేయండి, మరియు కీ ప్లేస్‌హోల్డర్‌ను మీ డాష్‌బోర్డ్ నుండి తీసుకున్న కీతో భర్తీ చేయండి.

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

సైన్ ఇన్ చేశారా? మీ డ్యాష్‌బోర్డ్‌లోని API కాన్సోల్ మీ అసలైన సంస్థ ID మరియు మీ స్వంత కీని నింపుతుంది, అలాగే మీరు అసలైన ప్రతిస్పందనను చూడటానికి లైవ్ API ద్వారా ఆభ్యర్థనను రన్ చేస్తుంది. ఈ ఎండ్‌పాయింట్‌ను 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కాదు

ఈ ఎండ్‌పాయింట్ తిరిగి ఇవ్వగల లోపాలు

401 · 402 · 403 · 404 · 422 · 429