Skip to main content
PATCH
Update an API key

Authorizations

Authorization
string
header
required

A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.

Headers

HTTP-Referer
string

The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.

X-OpenRouter-Title
string

The app display name allows you to customize how your app appears in OpenRouter's dashboard.

X-OpenRouter-Categories
string

Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.

Path Parameters

hash
string
required

The hash identifier of the API key to update

Example:

"f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"

Body

application/json
disabled
boolean

Whether to disable the API key

Example:

false

include_byok_in_limit
boolean

Whether to include BYOK usage in the limit

Example:

true

limit
number<double> | null

New spending limit for the API key in USD

Required range: x >= 0
Example:

75

limit_reset
enum<string> | null

New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.

Available options:
daily,
weekly,
monthly,
null
Example:

"daily"

name
string

New name for the API key

Required string length: 1 - 256
Example:

"Updated API Key Name"

workspace_id
string

Move the API key to this workspace. The key keeps its value; guardrail selections move with it, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key's current workspace is a no-op.

memory_off
boolean

Memory off, for an app rather than a coding agent: requests under the key are sent as written, with no memory and no added tokens, even with tools, as OpenRouter would send them. Can be changed at any time.

Example:

false

jobs
boolean

Jobs permission (nemonist): the key may submit, rerun, run, cancel and upload with the cluster jobs tool. Off on a new key unless set true; a management key never has it; keys made before Nov 18 2026 keep it. Reading job status, logs and outputs needs no permission. Can be changed at any time.

Example:

false

Response

API key updated successfully

data
object
required

The updated API key information

Example: