Agents

Activate a provider as the platform-wide default. Refuses to activate a provider that doesn't have a credential saved yet — the UI enforces the same rule on the button, but we re-check server-side so a stale tab can't bypass it.

Changed on
post/settings/ai-providers/{provider_id}/activate

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

provider_idstring required

AI provider ID

Response

default_providerstring required

Changes