Get this key's environment
The environment this API key is bound to, including whether it is currently halted.
/api/v2/environmentAuthorizationBearer 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 invocations are blocked, deliveries defer, workflow steps pause, and writes to memory, files, sessions, cache and Connect are refused. Publishes still queue, approvals can still be decided, and reads still answer.
haltedAtstring<date-time> | nullrequiredhaltedReasonstring | nullrequiredcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectNot Found - Resource does not exist
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
