प्रमाणीकरण

एपिआई कुञ्जीलाई बियरर टोकन (bearer token) को रूपमा पठाउनुहोस्। यो इन्डपोइन्टले विशिष्ट अनुमति खुलाएको छैन, त्यसैले अनुमान गर्नुको सट्टा आफ्नो कुञ्जीलाई आवश्यक पर्ने न्यूनतम अधिकार दिनुहोस् र प्रतिक्रिया जाँच गर्नुहोस्।

यो इन्डपोइन्टले कुनै संस्थाको आइडी लिँदैन। तपाईंको कुञ्जीले यस अन्तर्गत पर्ने संस्थालाई पहिल्यै पहिचान गर्छ, र प्रतिक्रिया त्यसैमा सीमित हुन्छ।

प्रयास गर्नुहोस्

कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/database \
  -H "Authorization: Bearer zdk_live_…"

लगइन गर्नुभएको छ? तपाईंको ड्यासबोर्डमा रहेको API कन्सोलले तपाईंको वास्तविक संस्थाको आईडी र आफ्नै कुञ्जी भरिदिन्छ, र लाइभ API विरुद्ध अनुरोध चलाउँछ ताकि तपाईंले वास्तविक प्रतिक्रिया हेर्न सक्नुहोस्। यो एन्डपोइन्टलाई API कन्सोलमा खोल्नुहोस्

विवरणहरू

The per-site Tools tab's Database card — the site's MySQL size and table count, plus single-use SSO links into the phpMyAdmin and File Manager panels. Requires both sites.view and sites.panel_access — the panels are full database and filesystem access, which is strictly more than listing a site — and is RLS-scoped to a site the caller holds sites.panel_access over, so holding the key in one org never reaches another org's site. An out-of-scope or unknown id is a 404, exactly like getSite; a caller who can see the site but lacks sites.panel_access gets a 403. The data source is provisioned, not synchronous. The size/table figures come from the site's fleet worker and the panels are stood up per host behind Cloudflare Access. Until a host is serving them, available is false and every figure and panel URL is null — never a fabricated 0 or a link to a panel that is not there. The shape is stable, so populating it later is not a contract change. Panel URLs, when present, are always HTTPS single-use links minted on read (a non-HTTPS panel URL is never returned).

प्यारामिटरहरू

नामप्रकारआवश्यकयो के हो
siteId (path)Uuidहुन्छSite ID (UUIDv7).

प्रतिक्रिया

नामप्रकारआवश्यकयो के हो
availablebooleanहुन्छWhether a host is serving this site's database + panels yet.
reasonstringहैनWhy a link or a figure is missing, in words a customer can act on. available: false alone cannot distinguish "this site has no server yet" from "we could not reach the box" from…
reason_codestringहैनA stable, machine-readable name for the reason above — the half a CLIENT should render. reason is English prose for staff, SDK consumers and support tickets; this platform ships…
size_mbobjectहुन्छTotal database size in MB; null when unavailable.
tablesobjectहुन्छNumber of tables in the database; null when unavailable.
phpmyadmin_sso_urlobjectहुन्छHTTPS single-use SSO link into phpMyAdmin, minted on read; null when the panel is not provisioned. Never a non-HTTPS URL.
filemanager_sso_urlobjectहुन्छHTTPS single-use SSO link into the File Manager, minted on read; null when the panel is not provisioned. Never a non-HTTPS URL.
web_ide_sso_urlobjectहुन्छHTTPS single-use SSO link into the Web IDE — real VS Code (code-server) running in the browser against this site's files. Minted on read; null when the site is not on one of our…

यो इन्डपोइन्टले फर्काउन सक्ने त्रुटिहरू

401 · 403 · 404 · 429