Replace the signing key; the old one stays published a day for tokens it signed
POST
/org/identity/rotate
const url = 'https://api.global.stillbox.example/v1/org/identity/rotate';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/org/identity/rotate \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The issuer, with its new key
Media typeapplication/json
object
enabled
required
False when the region can’t keep signing keys.
boolean
issuer
required
string
discovery_url
required
string
jwks_url
required
string
token_url
required
Where an agent asks for a token, from inside its sandbox.
string
subject_format
required
string
keys
required
Array<object>
object
kid
required
string
created_at
required
string format: date-time
retired_at
string format: date-time
Example
{ "subject_format": "sandbox:<sandbox ID>"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}