Skip to main content

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 as agent-task blocks for manual review.

Post-import checklist

1

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.
rqb validate api-docs/
2

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.
# .env.local
authToken=your-token-here
stripeKey=sk_live_...
3

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.
4

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.
rqb exec api-docs/apis/users/get-users.md --env=dev
5

Regenerate the index if needed

If you added or renamed files manually after the import, regenerate api-docs/README.md.
rqb index

Importing from Postman

1. Export from PostmanIn Postman, open the collection and choose File → Export → Collection v2.1 JSON. Save the file locally.2. Run the import
rqb import postman my-collection.json
3. Validate
rqb validate api-docs/
4. Move secretsOpen .env.local and add any token values that were flagged by validation:
# .env.local
authToken=your-token-here
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
rqb validate api-docs/
rqb exec api-docs/apis/users/get-users.md --env=dev

Importing from Insomnia

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 import
rqb import insomnia insomnia_export.json
3. Validate
rqb validate api-docs/
4. 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

rqb import openapi openapi.yaml
# or
rqb import openapi openapi.json
1. Validate your OpenAPI fileEnsure the spec is valid OpenAPI 3.x YAML or JSON before importing. Use a linter such as spectral lint if needed.2. Run the import
rqb import openapi openapi.yaml
3. Validate the result
rqb validate api-docs/
4. Add additional environmentsIf your OpenAPI spec defines multiple servers, only the first is imported as the dev environment. Add the others manually to _shared/env.md:
## staging
baseUrl: https://staging.example.com

## prod
baseUrl: https://api.example.com
5. Review agent-task blocksOpenAPI specs often have JSON Schema validation constraints that become agent-task review items. Decide whether to implement them as ## Expected response body assertions or to leave them as documentation.