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 कंसोल आपकी वास्तविक संगठन आईडी और आपकी अपनी कुंजी स्वतः भर देता है, और लाइव 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