---
title: "Update Key"
method: PATCH
path: "/api/v1/api-keys/{api_key_id}"
tags: ["api-keys"]
---

# Update Key

`PATCH /api/v1/api-keys/{api_key_id}`

## Request

- Base URL: `https://api.withverifa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.withverifa.com/api/v1/api-keys/{api_key_id}`
- Auth: none declared

Update an API key's metadata, scopes, allowed IPs, or expiry.

## Path parameters

- `api_key_id` string, required

## Request body

- UpdateApiKeyRequest
  - `label` string, nullable
  - `note` string, nullable
  - `scopes` string[], nullable
  - `allowed_ips` string[], nullable
  - `expires_at` string, nullable
  - `allowed_origins` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/withverifa/apis/verifa.md) · [All operations](https://skmtc.dev/withverifa/apis/verifa/llms.txt) · [OpenAPI document](https://skmtc.dev/withverifa/apis/verifa/revisions/7288c82c9e33?raw)
