Skip to content

List published sites

GET
/content/delivery/v1/sites
curl --request GET \
--url https://api.ebitex.io/content/delivery/v1/sites \
--header 'Authorization: Bearer <token>'

Lists the published sites in the key’s delivery environment, with the hostnames mapped to each. A site with locale addressing also carries an addressing member.

Send the returned deliveryEnvironmentId back as env= on later /sites and /locales requests. With it, and with a key that has no IP allow-list, the response can be cached at the edge: it carries Cache-Control: public and an ETag, and a matching If-None-Match answers 304 Not Modified. Compare ETags weakly, because a proxy that compresses the response turns a strong one into W/"…".

Key: a delivery key (content.delivery.read).

env
string format: uuid

OK

environment_mismatch: env names a different delivery environment than the key’s.

missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired.

scope_denied: the key lacks this route’s scope. origin_denied or ip_denied: a browser-safe key was used from an origin or address outside its restrictions. app_not_available: Content is not enabled for the organization.

Quota exceeded; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.