a4sx Environments API
The Environments API from a4sx — 8 operation(s) for environments.
The Environments API from a4sx — 8 operation(s) for environments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/session-exchange-com:session-exchange-com-environments-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Session Exchange Com Environments API
version: 0.1.0
description: 'Operations tagged Environments across 2 of this provider''s published API definitions: openapi.json, session-exchange-com-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Environments
paths:
/environments:
get:
summary: List Environments
operationId: list_environments_environments_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Environments
post:
summary: Create Environment
operationId: create_environment_environments_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentCreateRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}:
get:
summary: Get Environment
operationId: get_environment_environments__env_id__get
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}/trust:
post:
summary: Set Trust
operationId: set_trust_environments__env_id__trust_post
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentTrustRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}/eval-oracle:
post:
summary: Set Eval Oracle
description: 'Register the environment''s evaluation oracle for SCORE VERIFICATION
(collector/receipts.py): the shared HMAC key (stored server-side only — every
read path scrubs it) plus `require_receipt`. Once set, request_authorization
verifies that a reported `score` IS the oracle''s signed, measured fitness;
with `require_receipt` it rejects anything else. Governed/meta: the loop can
never see or set the key — admin only.'
operationId: set_eval_oracle_environments__env_id__eval_oracle_post
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentEvalOracleRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}/gate-enforce:
post:
summary: Set Gate Enforce
description: 'Per-environment STRICT at_target-gate opt-in. `legs` REPLACES the env''s own
enforced-leg set — a leg listed here makes that gate hard for THIS environment
even when the tenant-wide MODEL_GATE_ENFORCE doesn''t list it (per-env can only
ADD enforcement; it never relaxes a tenant-wide gate). Governed/meta: admin only
— a loop can never opt its own env into (or out of) strict grading. Empty list
clears the env''s enforcement.'
operationId: set_gate_enforce_environments__env_id__gate_enforce_post
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentGateEnforceRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}/frontier-policy:
post:
summary: Set Frontier Policy
description: 'Opt an environment in/out of frontier-coverage (spec frontier-coverage/v0.1).
Sets `kind` (drives the expected-dimension prior) and/or `frontier_policy`
(`distinctness_theta`, `require_probe_before_complete`,
`external_integration_required`) on the env record — which `GET /model/{env}/
coverage|frontier` and the at_target gate then read. MERGE semantics at both
levels: only fields present in the body are changed, and within
`frontier_policy` only the KEYS SENT are changed (a key set to null is removed,
reverting it to its default) — so tweaking one knob can''t silently drop
another (e.g. a theta tweak must not flip the completeness gate on). Send
`frontier_policy: null` to opt back out wholesale to legacy
`complete = all at_target`. Governed/meta: the loop reads this, never writes it.'
operationId: set_frontier_policy_environments__env_id__frontier_policy_post
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EnvironmentFrontierPolicyRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}/deactivate:
post:
summary: Deactivate Environment
description: 'Retire an environment: mark its record `status=deactivated`. The default
environment can''t be deactivated (it owns the pre-existing stations).
2e — the data plane: by default this is a record-level flag only, and the env''s
stations keep emitting (the contradiction the crypto-portfolio deactivation hit).
Pass `?cascade_stations=true` to also QUARANTINE the env''s stations — reassign
them to an inert ``_retired:`` environment so their events stop folding into
any active env''s model. Reversible: reassign a station''s environment to restore it.'
operationId: deactivate_environment_environments__env_id__deactivate_post
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
- name: cascade_stations
in: query
required: false
schema:
type: boolean
default: false
title: Cascade Stations
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
/environments/{env_id}/archive:
post:
summary: Archive Environment
operationId: archive_environment_environments__env_id__archive_post
parameters:
- name: env_id
in: path
required: true
schema:
type: string
title: Env Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ArchiveEnvRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Environments
components:
schemas:
EnvironmentGateEnforceRequest:
properties:
legs:
items:
type: string
type: array
title: Legs
type: object
title: EnvironmentGateEnforceRequest
description: 'Per-environment STRICT at_target-gate opt-in (model-gate hardening). `legs`
REPLACES this environment''s enforced-leg set: a leg listed here makes that gate
hard for THIS env even when the tenant-wide MODEL_GATE_ENFORCE does not list it
(per-env can only ADD enforcement, never relax a tenant-wide gate). Empty list
clears the env''s own enforcement. Unknown legs are rejected.'
ArchiveEnvRequest:
properties:
purge:
type: boolean
title: Purge
default: false
dry_run:
type: boolean
title: Dry Run
default: true
type: object
title: ArchiveEnvRequest
EnvironmentCreateRequest:
properties:
id:
type: string
maxLength: 100
minLength: 1
pattern: ^[a-z][a-z0-9_-]*$
title: Id
reads_from:
items:
type: string
type: array
title: Reads From
description:
type: string
title: Description
default: ''
min_objective_tier:
anyOf:
- type: string
- type: 'null'
title: Min Objective Tier
type: object
required:
- id
title: EnvironmentCreateRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
EnvironmentTrustRequest:
properties:
reads_from:
items:
type: string
type: array
title: Reads From
type: object
title: EnvironmentTrustRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
EnvironmentEvalOracleRequest:
properties:
url:
anyOf:
- type: string
- type: 'null'
title: Url
hmac_key:
type: string
minLength: 16
title: Hmac Key
require_receipt:
type: boolean
title: Require Receipt
default: false
type: object
required:
- hmac_key
title: EnvironmentEvalOracleRequest
description: 'Register an environment''s evaluation oracle for score verification
(collector/receipts.py). `hmac_key` is the shared receipt-signing key —
stored server-side only, NEVER returned by any read endpoint. With
`require_receipt`, request_authorization REJECTS scores that don''t carry a
valid receipt binding score == measured fitness; without it, verification
is advisory (`score_verified` is recorded either way).'
EnvironmentFrontierPolicyRequest:
properties:
kind:
anyOf:
- type: string
- type: 'null'
title: Kind
frontier_policy:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Frontier Policy
type: object
title: EnvironmentFrontierPolicyRequest
description: 'Opt an environment in/out of frontier-coverage (spec frontier-coverage/v0.1).
`kind` drives the expected-dimension prior; `frontier_policy` (a loose dict:
``distinctness_theta``, ``require_probe_before_complete``,
``external_integration_required``) turns the gate on. Only fields *present in
the request* are changed — omit one to leave it untouched, or send
``frontier_policy: null`` to opt back out to legacy ``complete = all at_target``.'
x-refined-from:
- openapi.json
- session-exchange-com-openapi.json