Error
A valid request URL is required to generate request examples{
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_secret": "<string>",
"grace_hours": 123
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Environments
Rotate the identity secret
Requires api_keys:write. The previous secret keeps verifying for a 24-hour grace window — long enough for a fleet to redeploy, short enough that a stolen old secret has a deadline.
POST
/
v1
/
organization
/
environments
/
{id}
/
identity
/
rotate
Error
A valid request URL is required to generate request examples{
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identity_secret": "<string>",
"grace_hours": 123
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Autorizações
Cabeçalhos
The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.