---
title: "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."
method: POST
path: "/settings/ai-providers/{provider_id}/activate"
tags: ["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.

`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)
- URL: `/api/settings/ai-providers/{provider_id}/activate`
- Auth: HTTP bearer

## Path parameters

- `provider_id` string, required

## Response `200`

- ActivateProviderResponse
  - `default_provider` string, required

## Other responses

- `400`: Provider not configured
- `401`: Unauthorized

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/ai-providers/:provider_id/activate/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
