---
title: "Ai Store Key"
method: POST
path: "/api/ai/store-key"
tags: ["settings", "sync", "ai"]
---

# Ai Store Key

`POST /api/ai/store-key`

## Request

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

Store an encrypted API key for a provider.

## Response `200`

Successful Response

- SettingsActionResponse: Shared loose response_model for settings/AI-keys/sync/preferences routes. These routes have varied response shapes (per-action) + are user-private (not part of the public typed-client API). Declared for OpenAPI doc coverage.

---

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