Velarion Records API
The records API from Velarion, for records.
The records API from Velarion, for records.
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/velarion-ai:velarion-ai-records-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: Velarion Ai Records API
version: 1.0.0
description: 'Operations tagged records across 2 of this provider''s published API definitions: openapi.json, velarion-ai-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Records
paths:
/records/funnel-event:
post:
tags:
- Records
summary: Funnel Event
description: 'Record a visit, a cart, or a purchase, with whatever attribution came.
AN ARRIVAL IS ALSO BANKED AS A PAGE VIEW (order T-4_E-05). `funnel_events` records
the EVENT; `records_page_views` records the ARRIVAL -- the thing an order is
joined back to. Both carry the same session token, and the page view is the side
the click -> checkout join counts: a conversion is a checkout whose page view
exists, not a checkout whose event stream happens to be complete.'
operationId: funnel_event_records_funnel_event_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/records/inquiry:
post:
tags:
- Records
summary: Inquiry
description: 'A license or research inquiry, recorded where it can be counted.
THESE TWO PRODUCTS ARE NOT SELF-SERVE, and that is a decision rather than an
omission: a redistribution licence at $95,000 and a research engagement with
a published scope are both things somebody talks to a person about. What is
automated is that the asking is never lost -- the row lands, carrying the
scope, who asked, and the visit that produced it, so "how many people asked
about a state licence this month" is a question the database answers.
It accepts an inquiry for a scope we do not sell. A prospect naming
something we do not offer is a fact worth keeping, not a validation error.'
operationId: inquiry_records_inquiry_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/records/ops/stripe-live-read:
get:
tags:
- Records
summary: Stripe Live Read
description: 'EVERY LIVE STRIPE OBJECT, READ ONCE, AND NOTHING TOUCHED.
The owner''s ask (2026-09-15): *"read Stripe LIVE objects on both accounts now
... paste every live-mode charge, subscription and session with amount, date
and product -- the owner''s $99 subscription must appear. Land a daily live
read into stripe_paid_reads (livemode=true) as the first line of the digest."*
STRICTLY READ ONLY. Only `GET`/list calls, all issued through `_stripe_get`
(no body, no method override). It creates nothing, charges nothing, refunds
nothing, cancels nothing, expires nothing -- and it does not write to our own
database unless `?bank=1` is passed, so it is safe to call by hand. **This is
the hard difference from `/records/health/checkout-probe` beside it, which
OPENS a checkout session and EXPIRES it. Do not copy that endpoint''s shape
into this one.**
WHAT IT READS (live mode only): charges, refunds, subscriptions (status=all),
checkout sessions, products, prices, webhook endpoints, balance_transactions,
the balance, and `GET /v1/events/{id}` for each id in `?event_id=`. Pagination
is keyset (`starting_after`/`has_more`), so a collection is never silently cut
at the first page.
QUERY: `?account=main|pulse` (default main), `?bank=1` to also bank the reading
into `stripe_paid_reads`, `?event_id=evt_a,evt_b` for specific events.
AUTH: the same check `checkout_probe` uses -- `Authorization: Bearer` equal to
this process''s `CRON_SECRET` or `OPS_PROBE_TOKEN`. Nothing else is accepted;
no new scheme is invented here.
SHAPES. Live objects are in `live`, `livemode=false` objects in a SEPARATE
`test_mode` block, and no total ever sums the two. A 403 from a restricted key
comes back under `unread` as `{"unread": true, "reason": ,
"permission_needed": }` -- a read RESULT, never a silent skip and
never a zero. `?account=pulse` answers in that same UNREAD shape until a Pulse
live key exists in this service (its key is on Vercel only, and this endpoint
does not copy keys anywhere).
IT IS A SYNC ROUTE ON PURPOSE, unlike the probe: it pages Stripe and can write
rows, and an `async def` route is run ON the event loop -- one slow read there
stalls every other request this service is serving. FastAPI runs a plain `def`
in its threadpool instead.'
operationId: stripe_live_read_records_ops_stripe_live_read_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/records/subscription:
get:
tags:
- Records
summary: Subscription Status
description: 'What this credential is entitled to, and whether it can still be refunded.
THE ACCOUNT PAGE''S ONLY READ. It takes the token the buyer was given at
purchase and nothing else -- no password, no account, no second identity to
forget. The token IS the account, which is the same decision the download
link already makes.
The refund window comes from the view, not from arithmetic here: the page a
buyer reads and the route that enforces the rule must not each work out what
seven days means.'
operationId: subscription_status_records_subscription_get
parameters:
- name: t
in: query
required: false
schema:
type: string
default: ''
title: T
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/records/alerts/seats:
post:
tags:
- Records
summary: Alerts Seats
description: 'Add colleagues to a TEAM alert subscription, using the token the buyer already has.
B15''s second half. The team rung sells five seats: the checkout takes the colleagues a
buyer names WITH the payment, and this is how the rest are added from the account page.
The credential is the same entitlement token `GET /subscription` reads -- no password,
no second identity to forget -- and the till decides every rule (rung, the five-seat
cap, address format, the migration''s presence); this route only resolves the token and
hands the invites over, exactly as the checkout route does.
A REFUSAL IS AN ANSWER (the shape `/refund` already uses): a one-seat subscription, a
refunded row, a sixth seat or a database without `records_seats` each return 409 with
the reason in words, and `ok: false`. Nothing here changes a price, opens Stripe or
charges anyone: the seats are what the subscription already bought.'
operationId: alerts_seats_records_alerts_seats_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/records/refund:
post:
tags:
- Records
summary: Refund
description: 'Refund a subscription in full, inside the seven days.
THE PROMISE ON THE PAGE IS THE THING THIS ROUTE HAS TO KEEP. owner row
171 replaced a free trial with charging on day one plus a seven-day refund,
and a refund promise with no path behind it is the worst sentence a payment
page can carry. This is the path.
A REFUSAL IS AN ANSWER, NOT AN ERROR PAGE. Out of window, already refunded,
never charged -- each returns the reason in words the buyer reads, and the
window case says the thing they can still do, which is cancel.'
operationId: refund_records_refund_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/records/download/{token}:
get:
tags:
- Records
summary: Download
description: 'The buyer''s link. A token, an expiry, and the bytes.
404 for an unknown token and 410 for an expired one, because they are
different facts and a buyer whose link has aged out should be told that
rather than told it never existed.
`?format=html` serves the second artifact HOSPFIN-REPORT alone promises
("one filer, one PDF and HTML" -- T-20260911T035715Z-ad3f7dbb item 2);
every other order''s html_artifact_path is null and asking for it 404s by
name rather than serving the PDF under a wrong content-type.'
operationId: download_records_download__token__get
parameters:
- name: token
in: path
required: true
schema:
type: string
title: Token
- name: format
in: query
required: false
schema:
type: string
default: pdf
title: Format
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/records/licence/bundle/{token}:
get:
tags:
- Records
summary: Licence Bundle
description: 'The licensed data, as the buyer''s own link.
410 for an expired link and 404 for an unknown one, because they are
different facts: a licensee whose link has aged out should be told that
rather than told it never existed. The licence itself has not expired -- the
API key runs the whole term -- and the message says so.
SERVES THE CURRENT BUILD, NEVER THE FROZEN SETTLEMENT-DAY ONE
(T-20260911T035715Z-ad3f7dbb). `row["bundle_path"]` was stamped once at
settlement and this route used to read it verbatim -- so a licensee''s link
served the exact snapshot from the day they paid, for the whole year, while
the page they bought from promises "rebuilt every day the register is
republished, and your API key reaches the current data for the whole term."
The API key already resolved fresh on every call; the file was the one part
of the licence that did not. `current_bundle()` resolves the newest build
for this licence''s own scope (building it if the daily job has not reached
it yet) and this route now always serves that, at the same buyer''s link.'
operationId: licence_bundle_records_licence_bundle__token__get
parameters:
- name: token
in: path
required: true
schema:
type: string
title: Token
- name: part
in: query
required: false
schema:
type: integer
default: 0
title: Part
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/records/licence/deed/{token}:
get:
tags:
- Records
summary: Licence Deed
description: 'The licence itself. No expiry: a buyer''s copy of their own terms is not a
convenience that ages out.'
operationId: licence_deed_records_licence_deed__token__get
parameters:
- name: token
in: path
required: true
schema:
type: string
title: Token
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/records/data/{dataset}:
get:
tags:
- Records
summary: Licensed Data
description: 'The licensed data, current, for the term.
THE SCOPE IS ENFORCED ON THE SERVER, from the key''s own row. A state key
asking for the national set gets its state, not an error and not everyone
else''s rows -- the filter is applied rather than the request refused, because
a key IS its scope and asking outside it is not a security event, it is a
query that means "everything I have".'
operationId: licensed_data_records_data__dataset__get
parameters:
- name: dataset
in: path
required: true
schema:
type: string
title: Dataset
- name: limit
in: query
required: false
schema:
type: integer
default: 1000
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
default: 0
title: Offset
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
- velarion-ai-openapi.json