# Build an API request from an OpenAPI spec

> Paste an OpenAPI or Swagger file. Pick an operation to get its request as curl, fetch, Python or raw HTTP.

Paste an OpenAPI or Swagger file, pick an operation and fill in its parameters. Get the request as curl, fetch, Python or raw HTTP. Runs in your browser.

- Tool: [OpenAPI request builder](https://fixmint.cc/openapi-request-builder)
- Category: [Web & developer](https://fixmint.cc/developer-tools)
- Fixes: Build a call to this API
- Runs in the browser: files and text stay on the device, no sign-up, free.

## How to build a request from an OpenAPI spec

1. Paste the OpenAPI or Swagger file, as JSON or YAML.
2. Pick an operation, then fill in its parameters, auth and body.
3. Copy the request as curl, fetch, Python or raw HTTP.

## Questions

### Which spec versions work?

OpenAPI 3.0 and 3.1, and Swagger 2.0. References to other files are not loaded; references inside the same file are followed.

### Does it send the request?

No. It only writes the request as text. Copy it and run it where you choose.

### Where do the example values come from?

The JSON body starts from an example built from its schema, and what you type is checked against that schema. Nothing you enter is stored.

## Related tools

- [JSON Schema validator](https://fixmint.cc/json-schema-validator): Does my JSON fit this schema?
- [JWT decoder](https://fixmint.cc/jwt-decoder): Token expired, or is it valid?
- [Webhook signature tester](https://fixmint.cc/webhook-signature-tester): Webhook signature check fails
- [Regex tester](https://fixmint.cc/regex-tester): Regex matches the wrong text
