Downloading the OpenAPI spec
us or in by server index:
ApiKeyAuth, sent as the x-api-key header.
What the OpenAPI spec contains
- Every endpoint, grouped by tag (Customers, Subscriptions, Events, Invoices, and so on).
- Request and response schemas, including enums such as billing periods and subscription statuses.
- A Webhook Events tag whose operations describe the payload Flexprice sends for each webhook event. They are documentation of what you receive, not endpoints you call. See the event catalog.
- Two vendor extensions:
x-scope(on the MCP copy) marking an operation asread,write, ordelete, andx-codegen-request-body-nameused by generators.
Generating a client from the spec
For a language without an official SDK, generate one:/v1 and the x-api-key header. Both are declared in the spec, so generators expose them as configuration.
Validating requests and mocking the API
- Contract tests. Load the spec into a validator such as
openapi-core(Python) orexpress-openapi-validator(Node) to check your outgoing requests before they hit the network. - Mock server. Run
npx @stoplight/prism-cli mock flexprice-openapi.jsonto get a local server that answers with example responses, useful for frontend work without a sandbox key.
Feeding the spec to an AI tool
The spec is the best single file for an agent that needs exact field names. The MCP server already loads it; for other tools, attach the JSON directly or point them athttps://docs.flexprice.io/llms-full.txt for the prose documentation. See Agent Skills.

