Hosted platformREST API reference
Billing
Plan upgrades through Stripe Checkout and the webhook that confirms them.
API version 1.0.0openapi.json
Plan upgrades through Stripe Checkout and the webhook that confirms them.
post/api/v1/billing/checkout
Checkout
Requires an API key.
Responses
| 200 | Successful Response |
| 422 | Validation ErrorHTTPValidationError |
| 401 | Missing, invalid or revoked API key |
Requestbash
curl -s -X POST "$OSR_URL/api/v1/billing/checkout" \
-H "Authorization: Bearer $OSR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Bodyjson
{}post/api/v1/billing/webhook
Webhook
No authentication.
Parameters
| Name | In | Type | Default | Description |
|---|---|---|---|---|
| stripe-signature | header | string | null |
Responses
| 200 | Successful Response |
| 422 | Validation ErrorHTTPValidationError |
Requestbash
curl -s -X POST "$OSR_URL/api/v1/billing/webhook"Sign-in and sessions
Sign-in with GitHub, Google or an organization identity provider; browser sessions; and CLI sign-in with device codes (`osr login`): the CLI requests a code, the person approves it in the browser, the CLI receives a workspace API key.
MCP server
Model Context Protocol server for IDEs and agents (VS Code, Cursor, Claude, Windsurf): `POST /mcp` speaks JSON-RPC with tools to route, quote, recommend, explain and ask; `GET /mcp` describes it.