Set the maximum key lifetime
Sets maxKeyLifetimeDays, from 0 to 3650, and returns the saved settings. New API keys must expire within that many days; 0 lets keys never expire. Requires a signed-in session.
Required permission
Requires the guardrail.manage permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl authz key-setting update --max-key-lifetime-days <max-key-lifetime-days>apiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
application/json- body
maxKeyLifetimeDays*integerNew keys must expire within this many days; 0 means keys may never expire.
0 <= value <= 3650updatedBy?stringupdatedAt?stringUpdated
application/json- response
maxKeyLifetimeDays*integerNew keys must expire within this many days; 0 means keys may never expire.
0 <= value <= 3650updatedBy?stringupdatedAt?stringcurl -X PUT 'https://api.openrelay.inc/v1/authz/settings' \ -H 'Content-Type: application/json' \ -d '{ "maxKeyLifetimeDays": 0}'{ "maxKeyLifetimeDays": 0, "updatedBy": "string", "updatedAt": "string"}Get the organization's key settings GET
Returns the organization's maximum API key lifetime in days (0 means keys may never expire), with who last changed it and when.
Request access to a product POST
Submits a request for access to a product, from the dashboard's Request access flow. An operator reviews it in the ops queue.