> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markapidown.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Reqbook API Testing Quickstart

> Install Reqbook, create markdown API specs, open the browser UI, and run an agent-friendly API test in minutes.

# Quickstart

This path is for a developer who wants Reqbook working with a coding agent and a browser UI in a few minutes. The terminal is still there for automation, but it is not the only interface.

***

## 1. Install Reqbook

<Tabs>
  <Tab title="Shell installer">
    ```bash theme={null}
    curl -fsSL https://markapidown.net/install.sh | sh
    ```
  </Tab>

  <Tab title="Cargo">
    ```bash theme={null}
    cargo install reqbook
    ```
  </Tab>

  <Tab title="npm wrapper">
    ```bash theme={null}
    npm install -g reqbook
    ```
  </Tab>
</Tabs>

Verify the install:

```bash theme={null}
rqb version
```

***

## 2. Create a project

```bash theme={null}
mkdir my-api && cd my-api
rqb init --name=my-api --dev-url=https://jsonplaceholder.typicode.com --yes
```

Reqbook creates:

```text theme={null}
api-docs/
├── README.md
├── reqbook.md
├── _shared/
│ ├── env.template.md
│ └── env.md
├── apis/
│ └── posts/
│ └── get-posts.md
└── flows/
.gitignore
```

The generated endpoint uses JSONPlaceholder, so it can run immediately.

The generated `.gitignore` includes `.env.local` and `api-docs/_shared/env.md`, while `api-docs/_shared/env.template.md` stays commit-ready for new contributors.

***

## 3. Open the web UI

```bash theme={null}
rqb serve
```

Open `http://127.0.0.1:8080`.

<img src="https://mintcdn.com/markapidown/EIK4xY-n-7rm4Cg1/images/ui-home.png?fit=max&auto=format&n=EIK4xY-n-7rm4Cg1&q=85&s=6fbe909d3037eefef041c73a4f3ea974" alt="rqb-ui endpoint browser" width="1185" height="2258" data-path="images/ui-home.png" />

Use the browser UI to:

* browse endpoint files,
* switch environments,
* fill path params such as `postId`,
* add runtime-only headers or body overrides,
* run requests and inspect formatted responses,
* import an endpoint from cURL,
* open the flow canvas.

<Note>
  Runtime fields in the request builder are temporary. They do not change markdown files unless you switch to edit mode and save.
</Note>

***

## 4. Run the same spec from the terminal

```bash theme={null}
rqb exec api-docs/apis/posts/get-posts.md --env=dev
```

Expected output:

```text theme={null}
GET https://jsonplaceholder.typicode.com/posts/1
status: 200
duration: 180ms
```

Dry-run shows the resolved request without sending it:

```bash theme={null}
rqb exec api-docs/apis/posts/get-posts.md --env=dev --dry-run
```

```text theme={null}
GET https://jsonplaceholder.typicode.com/posts/1
status: DRY RUN
duration: 0ms
headers:
 accept: application/json
```

***

## 5. Install agent skills and MCP

```bash theme={null}
rqb skills install
rqb install mcp
```

Or choose one agent:

```bash theme={null}
rqb skills install --agent=claude-code
rqb install mcp --agent=claude-code
rqb skills install --agent=cursor
rqb install mcp --agent=cursor
rqb skills install --agent=copilot
rqb install mcp --agent=copilot
```

Now you can ask your coding agent:

```text theme={null}
Use rqb_context with mode=surgical, brief=true, max_fields=6, then add a Reqbook spec for GET /users/:userId and validate it.
```

Or:

```text theme={null}
Create a flow that gets a post, captures userId, then gets that user.
```

***

## 6. Validate before commit

```bash theme={null}
rqb validate api-docs/
```

Commit the markdown files, not hidden app state.

***

## Next steps

<CardGroup cols={3}>
  <Card title="VS Code extension" icon="code" href="/guides/vscode-extension">
    Preview, validate, run, and inspect specs from your editor.
  </Card>

  <Card title="Set up agent support" icon="robot" href="/agents/setup">
    Install skills, slash commands, and MCP for supported coding agents.
  </Card>

  <Card title="Web preview" icon="desktop" href="/guides/web-preview">
    Learn the browser UI: request tweaks, mock mode, cURL import, flow canvas.
  </Card>

  <Card title="Vibe coding guide" icon="wand-magic-sparkles" href="/guides/vibe-coding">
    Patterns for using Reqbook as the API layer in your agent loop.
  </Card>
</CardGroup>
