---
title: "Save Api Key"
method: POST
path: "/api-keys"
tags: ["models"]
---

# Save Api Key

`POST /api-keys`

Save API key for a provider.

## Headers

- `authorization` string, nullable

## Request body

- SaveApiKeyRequest — Request to save API keys.
  - `provider` string, required
  - `api_key` string, required
  - `base_url` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-22** `2d9291c3821d` — 2 info
  - `header` request parameter `authorization` list-of-types was widened by adding types `null`
  - for the `header` request parameter `authorization`, the type/format was generalized from `string`/`` to ``/``

[Change history](https://skmtc.dev/morphik-org/apis/fastapi/changes/api-keys/post.md)

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/2d9291c3821d/schema)
