Skip to main content
PUT
Update API key

Authorizations

X-Api-Key
string
header
required

Management token from the RouteMesh dashboard (Settings → Management Tokens). Required for customer API endpoints (/api-keys, /usage). Tokens are prefixed rmtm_ and scoped to your account. Authenticate by passing the token in the X-Api-Key header. Separate from RPC service keys (rm_), which authenticate dApp traffic to the routing layer.

Path Parameters

id
integer
required

Numeric API key ID (from GET /api-keys). Not the secret rm_ key string.

Body

application/json
allowed_domains
string[] | null

Replace allowed domains list. Omit to keep current value.

name
string | null

Update friendly name. Omit to keep current value.

active
boolean | null

Activate or deactivate the key. Omit to keep current value.

Response

API key updated

id
integer
required

Internal key ID (for filtering /usage).

name
string | null
required

Friendly name.

active
boolean
required

Whether the key is active.

allowed_domains
string[]
required

Allowed domains.

routing_strategy
enum<string>
required
Available options:
economy,
performance
created_at
string<date-time>
required
updated_at
string<date-time>
required