ApiAdmin — organizationConfig
Save AI config
Saves the AI configuration. The API key is validated against the provider before saving. Returns 400 if the key is invalid. Overwrites any existing configuration.
Get AI config
Returns the AI configuration for the shop including provider, selected model, and whether a key is configured. The actual API key is never exposed.
Badge counts by route
Returns unread notification counts grouped by admin route path. Used to render badge indicators in the admin sidebar navigation.