a4sx Platform API
The Platform API from a4sx — 22 operation(s) for platform.
The Platform API from a4sx — 22 operation(s) for platform.
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-platform-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 Platform API
version: 0.1.0
description: 'Operations tagged Platform 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: Platform
paths:
/platform/access:
get:
summary: My Access
description: 'The caller''s disclosure levels — lets the UI hide per-user views from an aggregate-only
credential instead of letting it hit 403s — and its Support-desk capability (`support`). A
signed-in person holding only a Support-desk role gets `kind: "support"`, no analytics level.
Every answer is computed from the role registry on this request (nothing cached).'
operationId: my_access_platform_access_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response My Access Platform Access Get
tags:
- Platform
/platform/roles:
get:
summary: List Roles
operationId: list_roles_platform_roles_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response List Roles Platform Roles Get
tags:
- Platform
post:
summary: Grant Role
description: 'Grant a platform role to a signed-in USER. Only a user id is accepted — a machine token,
a producer or a token owner cannot hold a platform role (400 `human_only_role`).'
operationId: grant_role_platform_roles_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Platform
/platform/roles/{user_id}/{role}:
delete:
summary: Revoke Role
operationId: revoke_role_platform_roles__user_id___role__delete
parameters:
- name: user_id
in: path
required: true
schema:
type: string
title: User Id
- name: role
in: path
required: true
schema:
type: string
title: Role
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Revoke Role Platform Roles User Id Role Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/reveal:
post:
summary: Reveal
description: 'Reveal ONE record: body `{resource, id, reason}`. The access is written to the audit
(`admin.analytics.accessed`, without the value) before the value is returned.'
operationId: reveal_platform_reveal_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Reveal Platform Reveal Post
tags:
- Platform
/platform/access-audit:
get:
summary: Access Audit
description: Recent `admin.analytics.accessed` events, newest first. Global admin only.
operationId: access_audit_platform_access_audit_get
parameters:
- name: since
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Since
- name: who
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Who
- name: limit
in: query
required: false
schema:
type: integer
maximum: 500
minimum: 1
default: 100
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Access Audit Platform Access Audit Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/kpi/qda:
get:
summary: Kpi Qda
description: 'QDA-28 — Qualified Delivered Acquisitions per 28 days (specs/platform-analytics/v0.1 § 7).
L1: counts only — the rolling-28-day total with the paid 3rd-party / free 3rd-party /
first-party split, all-time qualifying pairs, the excluded counts (own / test / refunded)
and a weekly trend. Read-only; computed from the event log on request.'
operationId: kpi_qda_platform_kpi_qda_get
parameters:
- name: weeks
in: query
required: false
schema:
type: integer
maximum: 52
minimum: 0
default: 12
title: Weeks
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Kpi Qda Platform Kpi Qda Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/analytics/web:
get:
summary: Analytics Web
description: 'Website page loads and the unique-visitor estimate per Europe/Berlin day, top pages, referrer
domains, UTM campaigns and the sign-up / first save / first purchase funnel as independent daily
counts. L1 aggregates; every read is written to the access audit (fail-closed) first.'
operationId: analytics_web_platform_analytics_web_get
parameters:
- name: from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: From
- name: to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: To
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/signup-sources:
get:
summary: Signup Sources
description: 'The optional sign-up answers in AGGREGATE (signup_source.answers): counts per normalised
answer, an answer given by fewer than 5 accounts folded into `other`, small counts as "<5"; no
day, account id, handle or e-mail; test accounts left out. GLOBAL ADMIN only (a platform analyst
gets 403): the answers are free text people typed. Every read is written to the access audit
(fail-closed) first.'
operationId: signup_sources_platform_signup_sources_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Platform
/platform/kpi/storefront:
get:
summary: Storefront
description: 'Page views per page type and day (human / bot), listing detail views per listing and day
(human), external referrer domains (human page loads) and the bot share.'
operationId: storefront_platform_kpi_storefront_get
parameters:
- name: from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: From
- name: to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: To
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/kpi/cli:
get:
summary: Cli
description: 'Installer and CLI-file downloads per day and channel, and the a4sx CLI versions delivered.
the a4sx CLI sends no version header and no telemetry (owner D2), so "adoption" is what the server
DELIVERED: each `GET /cli/.py` or `GET /cli/amdx.py` (same file) counts the `__version__` of the file served, by channel —
`installer` (curl/wget, the `curl … | sh` path), `self_update` (`a4sx update`), `browser`,
`other`. Bots are counted apart and are not part of the adoption figures.'
operationId: cli_platform_kpi_cli_get
parameters:
- name: from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: From
- name: to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: To
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/kpi/agents:
get:
summary: Agents
description: 'Agent & plugin usage (collector/agent_usage_kpi.py, #1234 phase 1): MCP tool calls per tool and
client name, MCP consents (approved / denied) and sign-ins per client kind, CLI requests per CLI
version and /orient reads, per Europe/Berlin day. L1 aggregates; every read is written to the
access audit (fail-closed) first, as for /platform/analytics/web.'
operationId: agents_platform_kpi_agents_get
parameters:
- name: from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: From
- name: to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: To
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/kpi/overview:
get:
summary: Kpi Overview
description: North star QDA-28, the input metrics computable today and the guardrails — L1.
operationId: kpi_overview_platform_kpi_overview_get
parameters:
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/people:
get:
summary: People
operationId: people_platform_people_get
parameters:
- name: level
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Level
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
- name: q
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Q
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: sort
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Sort
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/workspaces:
get:
summary: Workspaces
operationId: workspaces_platform_workspaces_get
parameters:
- name: level
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Level
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
- name: kind
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Kind
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: sort
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Sort
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Platform
/platform/commerce:
get:
tags:
- Platform
summary: Commerce
operationId: commerce_platform_commerce_get
parameters:
- name: months
in: query
required: false
schema:
type: integer
maximum: 24
minimum: 1
default: 12
title: Months
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/platform/commerce/purchases:
get:
tags:
- Platform
summary: Commerce Purchases
description: 'L2 list. The access is audited (one `admin.analytics.accessed` per request) BEFORE the rows
are computed; a failed audit write fails the request.'
operationId: commerce_purchases_platform_commerce_purchases_get
parameters:
- name: months
in: query
required: false
schema:
type: integer
maximum: 24
minimum: 1
default: 12
title: Months
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
- name: limit
in: query
required: false
schema:
type: integer
maximum: 500
minimum: 1
default: 100
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/platform/funnels:
get:
tags:
- Platform
summary: Funnels
operationId: funnels_platform_funnels_get
parameters:
- name: months
in: query
required: false
schema:
type: integer
maximum: 24
minimum: 1
default: 12
title: Months
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/platform/funnels/revenue:
get:
tags:
- Platform
summary: Revenue Funnel
description: 'The revenue funnel (collector/platform_revenue.py). L1 counts only. It also reads the web and
agent-usage day tallies, so every read is written to the access audit (fail-closed) first, as
for /platform/analytics/web and /platform/kpi/agents.'
operationId: revenue_funnel_platform_funnels_revenue_get
parameters:
- name: months
in: query
required: false
schema:
type: integer
maximum: 24
minimum: 1
default: 12
title: Months
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
- name: period
in: query
required: false
schema:
type: string
pattern: ^(month|week)$
default: month
title: Period
- name: weeks
in: query
required: false
schema:
type: integer
maximum: 52
minimum: 1
default: 12
title: Weeks
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/platform/modules:
get:
tags:
- Platform
summary: Modules
operationId: modules_platform_modules_get
parameters:
- name: months
in: query
required: false
schema:
type: integer
maximum: 24
minimum: 1
default: 12
title: Months
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/platform/cost-items:
get:
tags:
- Platform
summary: Cost Items
description: 'The owner''s operating cost items, priced for this month exactly as the margin prices them
(real usage for a usage-sourced prepaid credit, capped at the credit). L1: platform figures;
who changed an item (`updated_by`) only for a global admin.'
operationId: cost_items_platform_cost_items_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/platform/cost-items/{item_id}:
put:
tags:
- Platform
summary: Put Cost Item
description: 'Create an item, or change one from a month on (global admin). Body: the item, plus optional
`from` (YYYY-MM, default the current Berlin month, never earlier: 422 `from_in_past`) — the first
month the new figures apply; earlier months keep the old ones. The one way to change a past
month is an explicit correction: `correction: true` + `reason` (recorded on the event). A `credential` link must name a fleet credential that
carries a cost (422 `unknown_credential`). 201 on create, 200 on change.'
operationId: put_cost_item_platform_cost_items__item_id__put
parameters:
- name: item_id
in: path
required: true
schema:
type: string
title: Item Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Platform
summary: Delete Cost Item
description: 'End one item (global admin): it still counts in the current Berlin month and stops counting
from the next one; past months are untouched and the item stays listed as ended.'
operationId: delete_cost_item_platform_cost_items__item_id__delete
parameters:
- name: item_id
in: path
required: true
schema:
type: string
title: Item Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/platform/sellers:
get:
tags:
- Platform
summary: Sellers
operationId: sellers_platform_sellers_get
parameters:
- name: months
in: query
required: false
schema:
type: integer
maximum: 24
minimum: 1
default: 12
title: Months
- name: include_test
in: query
required: false
schema:
type: boolean
default: false
title: Include Test
- name: window_days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 7
default: 90
title: Window Days
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
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