hosting

GET /v1/sites/{siteId}/wordpress/config

The site's wp-config.php settings (memory limit, table prefix).

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

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

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

WP_MEMORY_LIMIT and $table_prefix, read from the site's wp-config.php on every call (never our record of what we last set). Only these two names are read: no database password or salt is ever read or returned. memory_limit is null when the constant is absent (WordPress's own default, 40M; 64M on multisite). supported: false means the platform hosting this site has no wp-config surface. Requires sites.view.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).

Response

NameTypeRequiredWhat it is
supportedbooleanYesFalse where this platform cannot read the site's wp-config.php.
memory_limitobjectNoWP_MEMORY_LIMIT as written in wp-config.php, or null when it is absent (WordPress's own default).
memory_limit_choicesstring[]NoThe values PUT accepts besides "" (WordPress's default).
table_prefixstringNoThe database table prefix ($table_prefix). Read only.
file_edit_lockedbooleanNoTrue when DISALLOW_FILE_EDIT is set, so wp-admin's theme and plugin file editor is off. Set by the platform for security on every site. Read only.
cron_by_schedulerbooleanNoTrue when DISABLE_WP_CRON is set, so WordPress's scheduled tasks are run by the platform's scheduler rather than by page visits. Read only.

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 503