Resume this key's environment
Release the deferred work and let the agent act again. A key needs environments:halt; a console session needs the admin role or higher.
/api/v2/environment/resumeAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
A single environment.
successbooleanrequiredtruedataEnvironmentrequiredShow propertiesHide properties
idstring<uuid>requiredkindstringdevelopmentstagingproductionnamestringrequiredslugstringrequiredisDefaultbooleanrequiredThe environment new keys and resources default to.
isProtectedbooleanrequiredProduction protection for destructive and promotion actions.
haltedbooleanrequiredKill switch: while true the agent cannot act and nothing leaves the environment. Action calls, hosted function runs and event publishes from an agent key are refused, and approved calls do not run. Approvals can still be decided, and reads still answer.
haltedAtstring<date-time> | nullrequiredhaltedReasonstring | nullrequiredallowedRedirectUrlsstring[]Where an end user's connect link may send them back to: each an origin plus a path prefix, matched exactly.
defaultRedirectUrlstring | nullThe redirect a connect link uses when none is given, including the links in a 409. One of allowedRedirectUrls.
connectConfirmationstringrequired: an end user's finished OAuth consent waits for your server to confirm it (the account-takeover defence). off only on an unprotected development environment.
requiredoffcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredAccepted, not applied: the change loosens a guardrail, so a workspace admin has to approve it. Location is the request to poll.
successbooleanrequiredtruesignOffRequiredbooleanrequiredtruedataSignOffRequestrequiredA governance change that loosens a guardrail, asked for by an API key, a CLI login or an MCP session, waiting for a workspace admin. Give signOffUrl to a person; poll pollUrl.
Show propertiesHide properties
objectstringrequiredsign_off_requestidstringrequiredstatusstringrequiredpending until a workspace admin decides. applied: approved and in effect. rejected, expired (after 24 hours), cancelled (withdrawn by the credential) and failed (approved but could not be applied, see error): nothing changed.
pendingappliedrejectedexpiredcancelledfailedoperationstringrequiredpolicy.createpolicy.updatepolicy.deletepolicy_file.applyimpact_limit.updateimpact_limit.archivebudget.putbudget.deleteenvironment.resumeaction.createaction.updateaction.importsecret.putsecret_store.createsecret_store.updatesecret_store_settings.updateoauth_app.putenvironmentIdstring<uuid>requiredresourceobject | nullrequiredShow propertiesHide properties
typestringrequiredidstringrequirednamestringsummarystringrequiredchangesSignOffChange[]requiredShow propertiesHide properties
SignOffChangefieldstringrequiredfromany | nullrequiredThe value before. Never a secret value.
toany | nullrequiredThe value after. Never a secret value.
directionstringrequiredtighteninglooseningneutralreasonstringrequireddiffstringrequiredThe changes as plain text
signOffUrlstring<uri>requiredThe console page where a workspace admin approves or rejects it. Give this to a person.
pollUrlstringrequiredpollAfterSecondsintegerrequiredrequestedByobjectrequiredShow propertiesHide properties
typestringrequiredapi_keyoauth_clientsystemidstring | nullrequiredonBehalfOfstring | nullFor a CLI login or an MCP session
createdAtstring<date-time>requiredexpiresAtstring<date-time>requireddecidedAtstring<date-time> | nullrequireddecidedByobject | nullrequiredShow propertiesHide properties
typestringrequireduseridstringrequiredviastringrequiredconsoleemail_linkdecisionNotestring | nullrequiredresultany | nullrequiredWhen applied, what the original request would have returned: the limit, budget, policy or action as it now is.
errorobject | nullrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectfixErrorFixHow to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.
Show propertiesHide properties
summarystringrequiredOne sentence that says what to do.
commandstringAn exact anlyon CLI command that fixes it. Absent when no command does.
urlstring<uri>An absolute console link where a person fixes it.
docsstring<uri>A docs page that explains it.
Authenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectfixErrorFixHow to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.
Show propertiesHide properties
summarystringrequiredOne sentence that says what to do.
commandstringAn exact anlyon CLI command that fixes it. Absent when no command does.
urlstring<uri>An absolute console link where a person fixes it.
docsstring<uri>A docs page that explains it.
The request conflicts with current resource state or a concurrent decision.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectfixErrorFixHow to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.
Show propertiesHide properties
summarystringrequiredOne sentence that says what to do.
commandstringAn exact anlyon CLI command that fixes it. Absent when no command does.
urlstring<uri>An absolute console link where a person fixes it.
docsstring<uri>A docs page that explains it.

