create_delivery_key
Mint an admin-only Delivery API key for published content in site builds or draft content in previews; store the one-time secret immediately.
Instructions
Mint a Delivery API key for this site (Admin only). A public key reads published content only — safe for a website build; a preview key also reads drafts, so keep it server-side. The secret is returned ONCE in this response; store it now.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label for where it is used, e.g. 'Astro site production'. | |
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| type | Yes | public = published only; preview = drafts too. |