Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Session Exchange Com Modules API
version: 0.1.0
description: 'Operations tagged Modules 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: Modules
paths:
/modules:
get:
summary: Modules Catalog
description: 'Public catalog of purchasable MODULES (subscriptions). This is the agent-discoverable
surface for modules — they are sold separately from content collections and so do NOT appear
in /memory/discover. Each entry carries the exact call to acquire it.'
operationId: modules_catalog_modules_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/world-sim/templates:
get:
summary: World Sim Templates
operationId: world_sim_templates_modules_world_sim_templates_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/world-sim/ai-labs:
get:
summary: World Sim Ai Labs
description: '#1323 AMDX-2: whether /world-sim shows its "For AI labs" section (public, like the template
catalog). `for_ai_labs` is the AGENT_MDX_WORLD_SIM_AI_LABS switch only; the page also hides the
section while any of its strings is still an owner placeholder (ui/src/lib/routes/forAiLabs.ts,
collector/page_content.py `ai_labs_fragment`).'
operationId: world_sim_ai_labs_modules_world_sim_ai_labs_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/site-hosts:
get:
summary: Site Hosts
description: '#1620 item 6 (public): the configured platform./lab. landing hosts the footer''s "Builders" group
links. `{"hosts": {}}` while AGENT_MDX_SITE_HOSTS has no platform host, so the group never renders.'
operationId: site_hosts_modules_site_hosts_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/pricing-page:
get:
summary: Pricing Page
description: '#1620 C6 (public): the /pricing page''s facts that no other public read has. The page is public since #1933
(`review-pricing-public` A); `pricing_page` stays `true` for the readers that ask whether it is live (the
Marketplace''s workspace card leaves for it). `world_sim_monthly_eur`: the World-Sim monthly price;
`mesh_limits`: the free and paid mesh limits (collector/mesh_open.py `public_limits`, null while they don''t
apply); `router_public`: whether model access through the router is on sale (AGENT_MDX_ROUTER_PUBLIC). Every
other figure on the page comes from GET /tenants/plans and GET /billing/config.'
operationId: pricing_page_modules_pricing_page_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/mine:
get:
summary: Modules Mine
operationId: modules_mine_modules_mine_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/admin/test-expiry/plan:
get:
summary: Test Expiry Plan
description: 'S-23 (docs/world-sim-test-expiry-runbook.md): every World-Sim request still `requested`, with
its age, test/real/uncertain classification, workload evidence and the decision the test-request
expiry would take — computed NOW, read-only, whatever AGENT_MDX_MODULE_TEST_EXPIRY says. Plus the
plan the last `dry_run` / `on` tick recorded. Ids, status, age and classification only.'
operationId: test_expiry_plan_modules_admin_test_expiry_plan_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/world-sim/checkout/{ref}:
get:
summary: World Sim Checkout Arrival
description: '#1130: the World-Sim behind the caller''s own checkout `ref` — the post-purchase page polls this
until `stage` is `ready`, then focuses that instance. Owner-only: the caller must resolve to a
user (`acting_user_id` — a signed-in human, or a machine token bound to that user; a library
token is refused), and only that user''s own checkout and instances are ever read. Anyone else''s
ref is a 404, like the checkout status.'
operationId: world_sim_checkout_arrival_modules_world_sim_checkout__ref__get
parameters:
- name: ref
in: path
required: true
schema:
type: string
title: Ref
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/instances/{instance_id}/cancel:
post:
summary: Cancel Module Instance
description: 'Cancel ONE World-Sim at the end of its paid period (§ 312k: no further charge, usable until
then). Owner-only (a signed-in human, never a library or machine token acting for one); goes
through the same Stripe call, receipt mail and event as `POST /billing/subscriptions/cancel`.
Idempotent: a second call answers `already_scheduled`. Refuses (409) when the instance''s
subscription can''t be resolved exactly, pointing at /cancel.'
operationId: cancel_module_instance_modules_instances__instance_id__cancel_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/instances/{instance_id}/resume:
post:
summary: Resume Module Instance
description: 'Keep ONE World-Sim running: withdraw its scheduled end-of-period cancellation (Stripe
`cancel_at_period_end=false`), so it renews as before. Owner-only human session; the same exact
instance → subscription join as cancel (409 → /cancel otherwise). Idempotent (`not_scheduled`
when nothing is scheduled). Refused (409 `period_ended`) once the paid period is over or the
instance has ended — that would be a new purchase.'
operationId: resume_module_instance_modules_instances__instance_id__resume_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/instances/{instance_id}/snapshot/delete:
post:
summary: Delete Instance Snapshot
description: 'Ask the operator to delete an ENDED World-Sim''s kept snapshot now instead of after
SNAPSHOT_RETENTION_DAYS. Owner-only human session; only when `gone` (409 `not_ended`). Emits
`module.snapshot_delete.requested` once (idempotent: `already_requested` / `already_deleted`).
Cannot be undone. The instance shows `snapshot: delete_requested` until the operator answers
`module.snapshot_deleted`.'
operationId: delete_instance_snapshot_modules_instances__instance_id__snapshot_delete_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/instances/{instance_id}/hide:
post:
summary: Hide Module Instance
description: 'Remove an ENDED World-Sim from the owner''s list (GET /modules/mine leaves it out unless
`?include_hidden=1`). Display only: never touches data, the snapshot or billing. Owner-only human
session; only when `gone` (409 `not_ended`); idempotent (`already_hidden`).'
operationId: hide_module_instance_modules_instances__instance_id__hide_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/instances/{instance_id}/agent-tokens:
get:
summary: List Agent Tokens
description: The owner's unexpired agent tokens for one World-Sim — metadata only, never a value.
operationId: list_agent_tokens_modules_instances__instance_id__agent_tokens_get
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
post:
summary: Create Agent Token
description: 'Mint an agent token for THIS World-Sim: `{label?, ttl_s?}` (300 s … 1 h). The value is in
this response only; afterwards only its metadata can be listed.'
operationId: create_agent_token_modules_instances__instance_id__agent_tokens_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/instances/{instance_id}/agent-tokens/{jti}/revoke:
post:
summary: Revoke Agent Token
description: Revoke one of the owner's agent tokens for this World-Sim (idempotent).
operationId: revoke_agent_token_modules_instances__instance_id__agent_tokens__jti__revoke_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
- name: jti
in: path
required: true
schema:
type: string
title: Jti
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/world-sim/revoked:
get:
summary: World Sim Revoked
description: 'Revoked, not-yet-expired World-Sim agent-token ids of THIS host''s tenant (public: a jti of a
revoked token grants nothing). For the engine to consult — see the operator contract § 7.'
operationId: world_sim_revoked_modules_world_sim_revoked_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
/modules/instances/{instance_id}/board-session:
post:
summary: Board Session
description: 'Start a board sign-in for a signed-in owner. Only when the instance''s operator advertises
`endpoints.board_login` (the engine-side half, contract § 7): a single-use 60 s code in the URL
FRAGMENT (never sent in a request line, so never in a server log), which the board''s gateway
exchanges server-side at POST /modules/world-sim/board/exchange and turns into its own cookie.'
operationId: board_session_modules_instances__instance_id__board_session_post
parameters:
- name: instance_id
in: path
required: true
schema:
type: string
title: Instance Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Modules
/modules/world-sim/board/exchange:
post:
summary: Board Exchange
description: 'Server-to-server, called by the board''s gateway: `{code}` → a board JWT (`aud: world-sim`,
`ws_instance`, `ws_use: board`, 10 min). The code is the credential: single-use, 60 s, bound to
one instance; the instance must still be the code issuer''s and running. Unavailable (404) while
per-instance tokens are off; rate-limited per client address.'
operationId: board_exchange_modules_world_sim_board_exchange_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Modules
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
x-refined-from:
- openapi.json
- session-exchange-com-openapi.json