organization-keys

Rotate the secret of one of the caller's own API keys, in place.

Same contract as the operator's rotate: the row keeps its identity, the new raw key is returned once, and the previous secret stops authenticating immediately with no grace window.

post/api/v1/organizations/me/keys/{key_id}/rotate

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Path parameters

key_idstring required

Response

Successful Response

allowed_modelsstring[] nullable required
capture_agent_telemetryboolean nullable required
created_atstring required
end_user_budget_idstring nullable required
end_user_budget_idsstring[] required
exclude_from_budgetboolean required
expires_atstring nullable required
idstring required
is_activeboolean required
is_service_keyboolean required
keystring required
key_namestring nullable required
key_prefixstring nullable required
key_suffixstring nullable required
metadataobject required
reject_user_mismatchboolean nullable required
user_idstring nullable required

Changes