---
title: "Update API key"
method: POST
path: "/v1/api_keys/{key}"
---

# Update API key

`POST /v1/api_keys/{key}`

## Request

- Base URL: `https://api.sandbox.due.network`
- URL: `https://api.sandbox.due.network/v1/api_keys/{key}`
- Auth: HTTP bearer

Updates an existing API key's CIDR allowlist.

## Path parameters

- `key` string, required

## Request body

- BpDtoApiKeyUpdateRequest
  - `cidrAllowlist` TypesOptionalTypesCIDRAllowlist
    - `Val` TypesCIDR[]
    - `NotNull` boolean

## Response `200`

OK

- BpModelsApiKey
  - `key` string
  - `name` string
  - `expires_at` string
  - `cidrAllowlist` TypesCIDR[]

## Changes

- **2026-11-03** `5799e4dcc4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/due/apis/accounts-api/changes/v1/api_keys/:key/post.md)

---

[API](https://skmtc.dev/due/apis/accounts-api.md) - [All operations](https://skmtc.dev/due/apis/accounts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/due/apis/accounts-api/revisions/5799e4dcc4a8?raw)
