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 | nullUSD spend limit. Send null to clear the existing limit.
limit_resetstring | nullOptional reset interval: daily, weekly, monthly, or null for lifetime. Resets at midnight UTC; weeks are Mon–Sun.
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_dailynumberCredits used in the current UTC day.
data.usage_weeklynumberCredits used in the current UTC week (Mon–Sun).
data.usage_monthlynumberCredits used in the current UTC month.
data.limitnumber | nullConfigured USD spend limit, or null if unlimited.
data.limit_remainingnumber | nullRemaining credits in the current limit window, or null if unlimited.
data.limit_resetstring | nulldaily | weekly | monthly | null (lifetime).
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.