Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>. Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.

Path Parameters

vk_id
string
required

Virtual key ID

Body

application/json

Update virtual key request

name
string
description
string
provider_configs
object[]
mcp_configs
object[]
team_id
string
customer_id
string
budgets
object[]

Budget quotas assigned directly to this virtual key. Replaces all direct virtual-key budgets when provided.

rate_limit
object

Update rate limit request

is_active
boolean
calendar_aligned
boolean
reset_budget_usage
boolean

When true, zeroes current usage on the budgets reconciled by this update. The reset window is left alone: last_reset only ever advances, and never as a side effect of a configuration write, so the current window keeps its existing start and end.

expires_at
string

RFC3339 timestamp to set a new expiry (must be in the future), empty string to clear an existing expiry, omitted to leave it unchanged.

Response

Virtual key updated successfully

Virtual key operation response

message
string
required
virtual_key
object
required

Virtual key configuration