Skip to content

Importing cURL commands

This is the fastest import: you copy a curl command — from documentation, from your browser’s “Copy as cURL”, from a ticket — and you paste it into Restorm.

File ▸ Import (Ctrl+I) then paste the text. Restorm recognises a command by its curl prefix.

Several commands at once are accepted: every line starting with curl starts a new request. Paste a whole block of documentation and you get a whole folder.

the import modal's paste area with two curl commands

curl optionWhat Restorm makes of it
-X, --requestThe method
-H, --headerA header
-d, --data, --data-raw, --data-binaryThe body
-F, --formA form field (multipart/form-data)
The URL’s query stringThe query parameters

A curl command has no notion of an environment: the URL is hard-coded. Replace the constant part with a {{variable}} — the field shows the resolved value underneath it, so you can see straight away whether it is right. See Inline variables.

Every HTTP request’s Code Snippets tab contains its equivalent curl command, ready to copy. See Code export.