Update API key
/v1/keys/{hash}Update an existing API key owned by the authenticated user.
Use the hash returned by GET /v1/key, GET /v1/keys, or POST /v1/keys. The raw API key string is not accepted as the path identifier.
Authentication
Authorization Bearer
Use either a Token360 API key (sk-token360-...) or a signed-in user JWT.
Path Parameters
hashstringrequiredAPI key hash identifier.
Request Body
namestringNew API key name. Blank values are ignored.
disabledbooleantrue disables the key. false enables it only when it has not expired.
limitnumber | nullAccepted but ignored.
limit_resetstring | nullAccepted but ignored.
Response
dataobjectUpdated API key details.
data.hashstringHash identifier used by management endpoints.
data.namestringAPI key name.
data.labelstringHuman-readable label. Matches name.
data.disabledbooleanTrue when the key status is not ACTIVE or expires_at is in the past.
data.workspace_idstringWorkspace code for the key.
data.creator_user_idstring | nullOwner user ID.
data.created_atstringCreate timestamp in UTC ISO-8601 format.
data.updated_atstring | nullLast update timestamp.
data.expires_atstring | nullUTC expiration timestamp, or null.
data.usagenumberTotal Token360 credit usage in USD.
data.usage_dailynumberDaily usage. Currently 0.
data.usage_weeklynumberWeekly usage. Currently 0.
data.usage_monthlynumberMonthly usage. Currently 0.
data.limitnumber | nullSpending limit. Currently null.
data.limit_remainingnumber | nullRemaining spending limit. Currently null.
data.limit_resetstring | nullLimit reset interval. Currently null.
data.is_free_tierbooleanCurrently false.
data.is_management_keybooleanCurrently true for these management responses.
data.is_provisioning_keybooleanCurrently false.
data.rate_limitobjectPer-minute request limit metadata.