Authenticatie
Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie sites.view beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/databases \
-H "Authorization: Bearer zdk_live_…"Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
The MySQL databases on the site's hosting package, with the user bound to each so a connection string can be assembled. **No password is returned**: a database password exists in exactly one response on this platform, the one that created it, and there is no endpoint that reads one back. `limit` is the effective ceiling — the lower of what the package permits and what the customer bought. `permitted` and `can_create` answer the two different questions a screen must distinguish before it offers an "add" button. This is the customer's own control surface. It is deliberately **not** a link to any vendor database tool: no customer is ever sent to a vendor control panel (docs/62 §3.7). `404` for a site with no vendor hosting package. Requires `sites.view`.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
siteId (path) | Uuid | Ja | Site ID (UUIDv7). |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
data | SiteHostingDatabase[] | Ja | The databases on the package. |
limit | VendorAllowance | Ja | The effective ceiling on databases for this site. |
permitted | boolean | Ja | Whether the package type includes databases at all. |
can_create | boolean | Ja | `permitted`, **and** the effective ceiling has room. |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404 · 429 · 503