Api
Start a Stripe Checkout session for a subscription price_id.
Returns the hosted checkout URL the front redirects to. The handler
resolves the plan name from the registry and tags it (plus the
authenticated user id) into Stripe metadata so the
subscription.started bus envelope syncs back to the right user.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/billing/checkout" \ -H "Content-Type: application/json" \ -d '{ "cancel_url": "string", "price_id": "string", "success_url": "string" }'"string"Current plan + entitlements for the authenticated user. Reads the
in-memory plan registry + the synced billing_subscriptions row.
Response Body
application/json
curl -X GET "https://example.com/v1/billing/me""string"Mint a Stripe Customer Portal link so the user can update their card, switch plan, or cancel — Stripe-hosted, no UI to maintain. 404 when the user has no subscription on file yet.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/billing/portal" \ -H "Content-Type: application/json" \ -d '{ "return_url": "string" }'"string"Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/browse" \ -H "Content-Type: application/json" \ -d '{ "actions": [ null ], "url": "string" }'nullRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/crawl" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'nullRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/demo/scrape" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'nullcurl -X GET "https://example.com/v1/healthz""string"Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/scrape" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'nullRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/search" \ -H "Content-Type: application/json" \ -d '{ "crawl_id": "string", "query": "string" }'nullRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/sessions" \ -H "Content-Type: application/json" \ -d '{}'nullcurl -X GET "https://example.com/v1/sessions/string"nullcurl -X DELETE "https://example.com/v1/sessions/string"nullcurl -X GET "https://example.com/v1/usage"nullcurl -X GET "https://example.com/v1/users"[ { "created_at": "2019-08-24T14:15:22Z", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }]curl -X GET "https://example.com/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "created_at": "2019-08-24T14:15:22Z", "email": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string"}