STUDIO / PLAN / IDENTITY API
Identity API
The routes an integrator calls, each described in an open format.
Source: the route files in this site. Contract version 1.0.0. Synthetic data only.
What this shows a club: the contract your integrator reads before the first call. Nothing here needs our code to stay.
Endpoints
| Method | Path | What it does | Who calls it |
|---|---|---|---|
| POST | /api/studio/signin-bridge | Checks an OpenID Connect ID token for real, then links the fan ID to the signed-in subject. | The club's sign-in page, from the server. |
| POST | /api/studio/export/open | Returns fans, their identity links and their consent history as three NDJSON files plus a manifest with a hash for each. | The club or its integrator, to take its fan data out. |
Trust boundary
The token check is real: signature, issuer, audience, time and nonce are verified on the server. The write behind it is a demonstration, scoped to a session, and a production setup moves it behind a server-only role and takes issuer keys from the club's own identity provider.
Files
How to read the contract
Every request and reply is JSON. Every error is an object with ok: false and a short error line. Calls are limited to 30 a minute per address.
Consent has no plain HTTP route yet. The pages call database functions directly, and the YAML lists their names under a note that says so.