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

# Save Api Key

`POST /api-keys`

## Request

- Base URL: `https://api.morphik.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.morphik.ai/api-keys`
- Auth: none declared

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 was generalized from `string` to no type

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

---

[API](https://skmtc.dev/morphik-org/apis/morphik-api.md) - [All operations](https://skmtc.dev/morphik-org/apis/morphik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/morphik-org/apis/morphik-api/revisions/45d77e08d406?raw)
