.http files. This guide covers the import process and key differences.
Importing a Collection
Export your Postman collection as JSON (Collection v2.1), then import:What Gets Converted
Other Import Formats
hitspec also imports from:OpenAPI / Swagger
curl Commands
Insomnia
Key Differences from Postman
Test Syntax
- Postman (JavaScript)
- hitspec (declarative)
Variables
Authentication
Request Dependencies
After Import
After importing, you should:- Add assertions — the import generates basic
expect status == 200assertions. Add more specific ones. - Replace hardcoded values — use variables and
{{$env()}}for URLs, tokens, etc. - Add captures — chain requests with
>>>captureblocks and@depends. - Set up environments — create
hitspec.yamlwith your environments.