Skip to main content
Duckie API requests use API keys created in Duckie. Send the full key in the Authorization header using the bearer scheme.

Create an API Key

Create keys from Settings -> API & MCP. The full key is shown once after creation, so store it before closing the dialog. Keys start with dk_live_. Duckie stores only a hash and a display preview after creation.

Example Request

Scopes

Every key has one or more scopes. A request fails with 403 permission_denied when the key does not include the required scope. The create-key dialog groups scopes into Customer API scopes and Duckie Assistant MCP scopes. You can remove scopes when you want a key to access only a subset of the API or MCP tools.

Invalid or Expired Keys

The API returns 401 unauthenticated when a key is missing, malformed, unknown, expired, or revoked.
Revoking a key in Settings stops new requests with that key immediately.