Skip to main content

Import cURL or JSON

Paste existing requests when you already have a cURL command or a JSON request from another tool, a ticket, or your browser's network panel. QAlity turns that paste into an editable API test so you do not rebuild the call by hand.

Use Import from file when you have a definition file with many endpoints. Use this page for one (or a few) requests you can copy.

How to paste a requestHow to paste a request

1
Choose cURL / JSON

In REST API testing, choose the cURL / JSON path to paste existing requests.

2
Paste the command or JSON

Copy the cURL from your terminal, docs, or DevTools, or paste a JSON request body with method and URL.

3
Import

QAlity maps method, URL, headers, and body into a request you can inspect.

4
Review and assert

Confirm headers (especially Authorization), edit anything that is environment-specific, and set the expected status.

5
Send or save in a flow

Send once to verify the live response, then keep the request and run it whenever you need. History stores each run.

What you can pasteWhat you can paste

cURL
A curl command with method, URL, headers, and data. Common from API docs and "Copy as cURL" in the browser.
JSON
A JSON description of the request (method, URL, headers, body) when that is what you already have.

Example cURL:

curl -X POST https://shop.example.com/api/orders \
-H "Content-Type: application/json" \
-H "Authorization: Bearer token" \
-d '{"sku":"hp-studio","qty":1}'

After import, this becomes a POST to /api/orders with those headers and body. Add an assertion that the status is 201, then run it on demand.

After importAfter import

Secrets
Replace copied tokens with values that belong in your environment. Do not leave production secrets in a shared test.
Edit
Adjust URL, headers, or body the same way you would build a request.
Status
Set the expected code so Execution History records a clear pass or fail. See status codes.
Rerun
Imported requests are reusable. Run them whenever you need without pasting again.
Copy as cURL from the browser

If you already reproduced the issue in DevTools, copy the failing call as cURL and import it. That is often faster than re-recording the whole session.