Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Кілтте sites.view рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.
Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.
Әрекет етіп көру
Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/ftp-users \
-H "Authorization: Bearer zdk_live_…"Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз
Мәліметтер
The FTP accounts on the site's hosting package, including the package's own primary account so the customer can see it exists. **No password is returned for any of them, and none can be read back**: the vendor does expose the primary account's live credentials in cleartext, and this platform deliberately never calls that endpoint. `limit` is the **effective** ceiling — the lower of what the package permits and what the customer bought, with either side being unlimited yielding to the other. `permitted` and `can_create` are separate because the screen says different things: *"your plan does not include this"* is not *"you have used all of them"*. `404` for a site with no vendor hosting package. Requires `sites.view`.
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
siteId (path) | Uuid | Иә | Site ID (UUIDv7). |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
data | SiteFtpUser[] | Иә | The accounts on the package, the primary one first. |
limit | VendorAllowance | Иә | The effective ceiling on FTP accounts for this site. |
permitted | boolean | Иә | Whether the package type includes FTP at all. This is the flag behind *"your plan does not include this"*. |
can_create | boolean | Иә | `permitted`, **and** the effective ceiling has room. This is the flag behind *"you have used all of them"*. Two fields rather than one because those are different sentences, and… |
Бұл соңғы нүкте қайтара алатын қателер
401 · 403 · 404 · 429 · 503