a4sx Flywheel API
The Flywheel API from a4sx — 17 operation(s) for flywheel.
The Flywheel API from a4sx — 17 operation(s) for flywheel.
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-flywheel-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 Flywheel API
version: 0.1.0
description: 'Operations tagged Flywheel 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: Flywheel
paths:
/flywheel/policy:
get:
summary: Get Policy
operationId: get_policy_flywheel_policy_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Policy Flywheel Policy Get
tags:
- Flywheel
/flywheel/understudy:
post:
summary: Set Understudy
description: 'Tenant admin: shadow-run `model` for `agent` (or clear with model=null).'
operationId: set_understudy_flywheel_understudy_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Set Understudy Flywheel Understudy Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/promote:
post:
summary: Promote
description: 'Tenant admin: serve the configured understudy for `agent` for real (or demote).'
operationId: promote_flywheel_promote_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Promote Flywheel Promote Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/stats:
get:
summary: Stats
description: 'The router''s stats, with each understudy row stamped with the server''s promotion verdict
(`eligible`, `ineligible_reason`) and the criteria (`promotion_gate`) — the panel shows this
verdict and holds no thresholds of its own (S-44).'
operationId: stats_flywheel_stats_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Flywheel
/flywheel/models:
get:
summary: Models
operationId: models_flywheel_models_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Flywheel
/flywheel/export/{what}:
get:
summary: Export
description: 'The tenant''s own Data-Flywheel data. Default: the tenant''s COPY (portability — also open in the
cancellation grace, WP-20), unchanged and marked `X-A4SX-Training-Gate: not-applied`.
`?purpose=training`: the harness P1 training gate is applied (collector/harness_policy.py,
`filter_corpus_tgz`) — this is the only export a training run may consume (runbook step 2). The
knowledge export has no classifiable records, so it refuses `purpose=training` (fail closed).'
operationId: export_flywheel_export__what__get
parameters:
- name: what
in: path
required: true
schema:
type: string
title: What
- name: purpose
in: query
required: false
schema:
type: string
default: ''
title: Purpose
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/purge:
delete:
summary: Purge
operationId: purge_flywheel_purge_delete
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Flywheel
/flywheel/training:
get:
summary: Training Status
description: Is training open, and has this tenant registered interest?
operationId: training_status_flywheel_training_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Training Status Flywheel Training Get
tags:
- Flywheel
/flywheel/train/interest:
post:
summary: Register Interest
description: 'While training is gated: a tenant admin tells us they''d use it. Emits
`flywheel.train.interest {tenant, agents?, note, by}`; ops read it at GET /flywheel/interest.'
operationId: register_interest_flywheel_train_interest_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Register Interest Flywheel Train Interest Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/interest:
get:
summary: List Interest
operationId: list_interest_flywheel_interest_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response List Interest Flywheel Interest Get
tags:
- Flywheel
/flywheel/runs:
get:
summary: List Runs
operationId: list_runs_flywheel_runs_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response List Runs Flywheel Runs Get
tags:
- Flywheel
/flywheel/train:
post:
summary: Request Training
description: 'Tenant admin: queue a LoRA training run on this tenant''s corpus for `agent` (€49 per
completed run, billed when the adapter is trained). One active run per operator. The run
carries a review packet so the launching operator needs nothing else.'
operationId: request_training_flywheel_train_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Request Training Flywheel Train Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/queue:
get:
summary: Training Queue
description: Every queued/running run across tenants — the launching operator's worklist.
operationId: training_queue_flywheel_queue_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Training Queue Flywheel Queue Get
tags:
- Flywheel
/flywheel/automation:
get:
summary: Automation Report
description: 'S-35: what the manual flywheel chain owes right now (stale queued/running runs, trained
adapters not served, promotions due review). Read-only — never acts (collector/flywheel_automation.py).'
operationId: automation_report_flywheel_automation_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Automation Report Flywheel Automation Get
tags:
- Flywheel
/flywheel/runs/{run_id}/status:
post:
summary: Set Run Status
description: 'Operator: started | trained {adapter, adapter_repo?, hours?, notes?, cost_cents?} | failed
{reason, cost_cents?}. `cost_cents` = what the run cost the platform (S-18, Platform ▸ Modules).'
operationId: set_run_status_flywheel_runs__run_id__status_post
parameters:
- name: run_id
in: path
required: true
schema:
type: string
title: Run Id
requestBody:
content:
application/json:
schema:
type: object
additionalProperties: true
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Set Run Status Flywheel Runs Run Id Status Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/runs/{run_id}/served:
post:
summary: Mark Served
description: 'Operator: the adapter is loaded and routable under router model key `model` — the tenant''s
panel may now offer it as an understudy / promotion target.
fleet-router #62: the fleet table''s `models.` is written with `owner` = the adapter''s
training-data tenant (collector/flywheel_adapter_owner.py) BEFORE the run is marked served.
`entry` (optional) is the router target to add; without it the entry must already be in the fleet
table. No derivable single owner → 409, nothing written, the run stays trained. Any `owner` /
`tenant` the caller sends is never used.'
operationId: mark_served_flywheel_runs__run_id__served_post
parameters:
- name: run_id
in: path
required: true
schema:
type: string
title: Run Id
requestBody:
content:
application/json:
schema:
type: object
additionalProperties: true
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Mark Served Flywheel Runs Run Id Served Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
/flywheel/runs/{run_id}/unserved:
post:
summary: Mark Unserved
description: 'Operator: take a served adapter out of service — THE intentional unserve path (fleet-router
#62). Removes the run''s router key from the fleet table and marks every run served on it
`unserved`, atomically. Body: {if_version: int (the fleet table version you read — required),
reason?: str}. Idempotent: a run that is not served answers 200 with its state, nothing written.'
operationId: mark_unserved_flywheel_runs__run_id__unserved_post
parameters:
- name: run_id
in: path
required: true
schema:
type: string
title: Run Id
requestBody:
content:
application/json:
schema:
type: object
additionalProperties: true
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Mark Unserved Flywheel Runs Run Id Unserved Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Flywheel
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