---
title: "Store a BYOK API key for a provider"
method: PUT
path: "/v1/byok/{provider}"
tags: ["byok"]
---

# Store a BYOK API key for a provider

`PUT /v1/byok/{provider}`

Store a BYOK API key for a provider.
Bring your own key is reserved for enterprise clients.
If you want to use this feature, please contact us at contact@asknews.app

## Path parameters

- `provider` 'anthropic' | 'google', required — The BYOK provider

## Request body

- UpsertApiKeyRequest
  - `api_key` string, required

## Response `200`

Stored API key hint.

- ApiKeyResponse
  - `provider` 'anthropic' | 'google', required
  - `key_hint` string, required

## Other responses

- `422` — Validation Error

---

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