API testing · Local generator

Hurl API Test Generator

Turn a request and its expected response into a readable .hurl test. Add status, latency, and JSONPath assertions, then download the file for local or CI execution.

Runs locally: this page only generates text. It does not send your request or upload the URL, headers, body, or assertions.

GETHTTPJSONPASS
.hurl

Plain-text API tests

Keep requests and assertions readable, diffable, and CI-ready.

Request and assertions

Build one executable API check.

Secrets should be replaced with Hurl variables before committing a generated file.

Ready. Adjust the request and generate the file.

Generated .hurl fileREADY

From quick check to CI

Connect browser QA to repeatable API tests.

Generate the file here, run it locally with Hurl, then add the reviewed test to your repository.

What is Hurl?

Hurl is a command-line tool that runs HTTP requests written in a plain-text format and checks response status, headers, body values, and performance constraints. A Hurl file can describe one request or a sequence of dependent API calls.

How to generate a Hurl API test

  1. Choose an HTTP method and enter the request URL.
  2. Add headers and an optional request body.
  3. Set the expected status, duration limit, and optional JSONPath assertion.
  4. Download the .hurl file, review it, and run it with the displayed command.

Hurl generator limitations

This focused generator creates one request with common assertions. Advanced captures, variables, authentication helpers, multipart uploads, request chaining, XPath, GraphQL, and complex predicates should be added using the official Hurl documentation.

Hurl API test generator FAQ

Does the generator execute the test?

No. It generates text locally. Use Hurl on your computer or CI runner to execute the file.

Can I generate POST and PATCH requests?

Yes. Choose the method, add request headers, and paste the JSON or text body.

How should I handle API tokens?

Do not paste real secrets into public tools or commit them to a test file. Replace sensitive values with Hurl variables and inject them from a protected environment.