a4sx Marketplace API
The Marketplace API from a4sx — 10 operation(s) for marketplace.
The Marketplace API from a4sx — 10 operation(s) for marketplace.
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-marketplace-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 Marketplace API
version: 0.1.0
description: 'Operations tagged Marketplace 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: Marketplace
paths:
/marketplace/collections/{cid}/analysis:
get:
summary: Collection Analysis
description: 'The latest intent-analysis verdict for a collection (or `null` if none yet). Anonymous-readable
for a PUBLIC collection (UX-02): a non-member of the owning tenant sees the verdict only and gets
404 for a staging/private collection. `?t=` names the item tenant.'
operationId: collection_analysis_marketplace_collections__cid__analysis_get
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
post:
summary: Write Analysis
description: 'The operator writes a verdict. Body: {analysis_id, verdict, rationale?, nearest?,
suggested_lineage?}. A duplicate/repackage verdict quarantines the collection.'
operationId: write_analysis_marketplace_collections__cid__analysis_post
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/analysis/queue:
get:
summary: Analysis Queue
description: Pending analyses (the marketplace-analyst worklist), or `?status=completed|escalated`.
operationId: analysis_queue_marketplace_analysis_queue_get
parameters:
- name: status
in: query
required: false
schema:
type: string
default: ''
title: Status
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/analysis/{aid}/escalate:
post:
summary: Escalate Analysis
description: 'The operator escalates an ambiguous analysis to a human (records it; the operator raises
agent.needs_human separately).'
operationId: escalate_analysis_marketplace_analysis__aid__escalate_post
parameters:
- name: aid
in: path
required: true
schema:
type: string
title: Aid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/collections/{cid}/lineage:
post:
summary: Declare Lineage
description: 'The author declares their collection builds on one or more others. Edges start
UNVERIFIED (shown as "claimed") — only a verified edge earns a royalty. #124: gated on the
collection''s CREDITED AUTHOR (or a tenant admin) — not just tenant publish rights, so a
co-publisher can''t plant claims on another author''s collection. Parents must exist (public).'
operationId: declare_lineage_marketplace_collections__cid__lineage_post
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
get:
summary: Get Lineage
description: 'The declared/verified parents and the ACTIVE verified ancestor chain (edges made stale by a
major rewrite are excluded from ancestors and flagged `stale` on the parents), plus `built_on_by`
— the verified, current, public derivatives that build directly on it (P-03). Anonymous-readable
for a PUBLIC collection (UX-02): a non-member of the owning tenant gets 404 for staging/private,
and sees only parents that are themselves public, without who declared/verified them.'
operationId: get_lineage_marketplace_collections__cid__lineage_get
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/collections/{cid}/lineage/verify:
post:
summary: Verify Lineage
description: 'CONFIRM-ONLY: the analyst (or admin) confirms a build-on edge the author ALREADY DECLARED is
genuine (a real delta, not a copy). It cannot author a new edge — an undeclared, self-referential,
or phantom/private parent is rejected, so verify can''t mint a royalty-bearing edge on its own. Only
verified edges accrue. The deriving collection''s current version is pinned so a later MAJOR rewrite
invalidates the edge until re-verified. Body: {parent_id, parent_tenant?, parent_version?}.'
operationId: verify_lineage_marketplace_collections__cid__lineage_verify_post
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/collections/{cid}/descendants:
get:
summary: Get Descendants
description: 'P-03 "N built on yours" — the collections whose `builds_on` edge to this one is currently
valid (analyst-verified, not staled by a later major release) and which are themselves live
PUBLIC listings. Anonymous-readable for a public collection; a non-member gets 404 for a
staging/private one (same resolution as `/lineage`, UX-02 / RR01-M04/M06). The list is the
same for every viewer — a member of the parent''s tenant sees no private derivative either.
Query: `?t=` owning tenant, `?limit=` (1..100, default 20), `?offset=` (default 0).
Newest declaration first. Response:
{collection_id, tenant, count, limit, offset, next_offset|null,
items: [{id, tenant, title, seller, author_handle, version, declared_at, verified_at}]}
`seller` is the credited author''s identity (discovery `owner`), `author_handle` the handle to show.'
operationId: get_descendants_marketplace_collections__cid__descendants_get
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/collections/{cid}/lineage/{ancestor}:
delete:
summary: Undeclare Lineage
description: 'MKT-030: the author UNDECLARES a build-on edge they declared (a wrong or withdrawn claim).
`ancestor` = the parent collection id; `?tenant=` its tenant (default: this collection''s).
Same author gate as declare. Emits `marketplace.lineage.undeclared`; the edge leaves the graph,
so FUTURE sales accrue nothing to it — past royalty accruals stay untouched as ledger history.
A VERIFIED edge is the analyst''s confirmation that the originator is owed a cut; the paying
derivative''s author alone must not drop it (409 `edge_verified`). A global admin may.'
operationId: undeclare_lineage_marketplace_collections__cid__lineage__ancestor__delete
parameters:
- name: cid
in: path
required: true
schema:
type: string
title: Cid
- name: ancestor
in: path
required: true
schema:
type: string
title: Ancestor
- name: tenant
in: query
required: false
schema:
type: string
default: ''
title: Tenant
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Marketplace
/marketplace/royalties/me:
get:
summary: My Royalties
description: 'The caller''s royalty balance (accrued / paid / owed) + their ledger entries. A human
resolves to `author:` when their tenant credits them, else `tenant:`.'
operationId: my_royalties_marketplace_royalties_me_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Marketplace
/marketplace/royalties/unpaid:
get:
summary: Unpaid Royalties
description: 'The payout worklist: every author with a positive owed balance.'
operationId: unpaid_royalties_marketplace_royalties_unpaid_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Marketplace
/marketplace/royalties/payout:
post:
summary: Payout Royalties
description: 'Record owed balances as settled out-of-band (v1: no Stripe Connect — no money moves
here). Emits an idempotent `marketplace.royalty.payout` marker per (author,currency); the
ledger folds it into `paid`, zeroing `owed`. Body: {dry_run?}. Returns the report, each row
with status `recorded_out_of_band` (or `dry_run`).
MKT-033: refused with 409 `lineage_payouts_disabled` while lineage payouts are off
(billing._LINEAGE_PAYOUTS_ENABLED, off since 2026-09-08) — the historical accruals stay
ledger history and are not paid.'
operationId: payout_royalties_marketplace_royalties_payout_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Marketplace
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