---
title: "Create Provider Config"
method: POST
path: "/v1/provider-configs/"
tags: ["v1", "protected", "provider-configs"]
---

# Create Provider Config

`POST /v1/provider-configs/`

Create a new provider configuration.

## Request body

- ProviderConfigCreate — Payload for creating an LLM provider configuration.
  - `api_key` string, nullable — Secret API key for the provider. Stored encrypted in the secret manager; never returned in responses. May be empty for proxies that accept keyless traffic — the backend suppresses the Authorization header when this is empty.
  - `description` string, nullable — Optional human-readable description of this configuration.
  - `endpoint_url` string, nullable — Optional custom endpoint URL (e.g. for self-hosted or proxied providers). Leave unset to use the provider's default.
  - `is_public` boolean — If True, the configuration is visible to all workspace members; otherwise it is scoped to the creator.
  - `name` string, required — Human-readable label for this provider configuration.
  - `provider_spec_id` string, uuid, required — UUID of the provider specification (e.g. OpenAI, Anthropic) this configuration targets. Look up via list_specs.

## Response `200`

Successful Response

- ProviderConfigResponse
  - `created_at` string, required
  - `created_by` string, required
  - `endpoint_url` string, nullable, required
  - `id` string, required
  - `is_active` boolean, required
  - `is_public` boolean, required
  - `model_instance_ids` string[]
  - `name` string, required
  - `provider_spec_id` string, required
  - `provider_spec_key` string, nullable
  - `provider_spec_name` string, nullable
  - `updated_at` string, required
  - `workspace_id` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-08** `8940d7f77282` — 2 breaking
  - the `created_at` response's property format changed from `date-time` to no format for status `200`
  - the `updated_at` response's property format changed from `date-time` to no format for status `200`
- **2026-06-18** `dad98bb65260` — 2 info
  - the request property `api_key` became optional
  - request property `api_key` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-05-25** `043c77dd6269` — 1 info
  - the `api_key` request property's minLength was decreased from `1` to `0`
- **2026-04-29** `e1a530c0a2d5` — 2 breaking, 1 warning, 1 info
  - the `api_key` request property's minLength was increased from `0` to `1`
  - the `name` request property's minLength was increased from `0` to `1`
  - the `name` request property's maxLength was set to `255`
  - added the new optional request property `description`
- **2026-03-30** `e9c153221160` — 2 breaking, 1 warning, 1 info
  - the request property `api_key` became required
  - request property `api_key` list-of-types was narrowed by removing types `null` from media type `application/json`
  - removed the request property `description`
  - the `name` request property's minLength was decreased from `1` to `0`

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/provider-configs/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/d29cbb0c8cc9/schema)
