---
title: "Add Api Key"
method: POST
path: "/api/workspaces/me/api-keys"
tags: ["workspaces"]
---

# Add Api Key

`POST /api/workspaces/me/api-keys`

## Request

- Base URL: `https://api.modelwatch.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.modelwatch.app/api/workspaces/me/api-keys`
- Auth: HTTP bearer

## Request body

- ApiKeyCreate
  - `provider` 'openai' | 'anthropic', required
  - `api_key` string, required
  - `label` string

## Response `201`

Successful Response

- ApiKeyOut
  - `id` string, uuid, required
  - `provider` 'openai' | 'anthropic', required
  - `label` string, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/modelwatch/apis/modelwatch-api.md) · [All operations](https://skmtc.dev/modelwatch/apis/modelwatch-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelwatch/apis/modelwatch-api/revisions/fdec2114300a?raw)
