General approach
The import commands convert foreign formats into Reqbook markdown endpoint files. Structural information URLs, HTTP methods, headers, request bodies, status codes maps cleanly and is imported directly. Dynamic behavior pre-request scripts, JavaScript assertions, OAuth flows cannot be mechanically converted and is imported asagent-task blocks for manual review.
Post-import checklist
Validate the imported specs
Run
rqb validate api-docs/ and fix any exit code 2 errors before doing anything else. Each error includes the file path, line number when known, and a suggested fix.Move secrets out of spec files
If
rqb validate exits with code 5, a secret was imported into a versioned spec file. Move the value to .env.local or a RQB_* environment variable, then re-run validation.Review agent-task blocks
Each
agent-task block marks a place where the original spec had JavaScript logic, a dynamic variable, or a pre-request script that needs manual implementation. Open each flagged file and decide whether to implement it as an ## Expected response assertion or a pipeline capture.Verify round-trip with exec
Run
rqb exec against your development environment on at least one imported endpoint to confirm the spec resolves and the response matches.Importing from Postman
- Import steps
- Concept mapping
1. Export from PostmanIn Postman, open the collection and choose File → Export → Collection v2.1 JSON. Save the file locally.2. Run the import3. Validate4. Move secretsOpen 5. Review generated agent-task blocksEach block marks a place where Postman had JavaScript logic pre-request scripts, dynamic variable generation, or complex test assertions that needs manual follow-up.6. Re-run validation and exec
.env.local and add any token values that were flagged by validation:Importing from Insomnia
- Import steps
- Concept mapping
1. Export from InsomniaIn Insomnia, go to Application → Preferences → Data → Export Data → Current Workspace. Select Insomnia v4 format and save the JSON file.2. Run the import3. Validate4. Move secrets and review agent-task blocksMove any flagged secret values to
.env.local. Review agent-task blocks for plugin logic and template tags that need manual implementation.Importing from OpenAPI
- Import steps
- Concept mapping
1. Validate your OpenAPI fileEnsure the spec is valid OpenAPI 3.x YAML or JSON before importing. Use a linter such as 3. Validate the result4. Add additional environmentsIf your OpenAPI spec defines multiple 5. Review agent-task blocksOpenAPI specs often have JSON Schema validation constraints that become
spectral lint if needed.2. Run the importservers, only the first is imported as the dev environment. Add the others manually to _shared/env.md:agent-task review items. Decide whether to implement them as ## Expected response body assertions or to leave them as documentation.