<!-- https://testapilocally.com/docs/core-features/requests/ -->
# Requests

* **Platform Availability:** Windows App · VS Code Extension (shared shell)
* **Overview:** The request builder is where you compose method, URL, params, auth, headers, body, scripts, and tests. Send from API mode and inspect the response pane.

![Windows - Request builder](/docs/assets/screenshots/windows/windows-request-builder.png)

## Request tabs

| Tab | Use |
|-----|-----|
| Params | Query string key/value rows |
| Auth | Per-request auth (or inherit) |
| Headers | Request headers |
| Body | None, JSON, Form, Multipart, GraphQL, Binary, Raw |
| Pre-request Script | QuickJS before send |
| Tests | Assertions after response |
| Settings | Request-level options |

## How It Works (Windows App)

1. Open or create a request in the collections sidebar (right-click → **New Request** and pick REST / GraphQL / WebSocket / SSE / gRPC / MQTT).
2. Choose method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS). Change request type later under **Settings → Request type**.
3. Set URL (supports `{{baseUrl}}` and other environment variables).
4. Fill Params / Headers / Body as needed (GraphQL is also available as a Body type on REST requests).
5. Press **Send** or **Ctrl+Enter**.
6. Inspect Pretty / Raw / Headers / Explorer / Checks in the response viewer.

![Windows - Response viewer](/docs/assets/screenshots/windows/windows-response-viewer.png)

## How It Works (VS Code Extension)

1. Run **SignOff Studio: Open**.
2. Same builder UI as Windows.
3. If the response split is hidden, run **SignOff Studio: Restore Response Panel**.

![VS Code - Request builder](/docs/assets/screenshots/vscode/vscode-request-builder.png)

## Code / Configuration Examples

```http
GET {{baseUrl}}/get?foo=bar
Authorization: Bearer {{token}}
```

cURL import example:

```bash
curl -X POST 'https://httpbingo.org/post' \
  -H 'Content-Type: application/json' \
  -d '{"hello":"signoff"}'
```

JSON body:

```json
{
  "name": "SignOff Studio",
  "active": true
}
```

Test script:

```javascript
qa.test("status is 200", () => {
  qa.expect(qa.response.code).to.equal(200);
});
```

## Edge Cases, Troubleshooting & Pro-Tips

- Unresolved `{{vars}}` usually mean the wrong environment is selected.
- Large responses: raise **maxResponseMb** in Settings (Windows overlay) or trim the payload.
- Use Explorer + Extract to promote JSON paths into variables for the next request.
- Save response as **Example** for regression-friendly fixtures.

## Next

- [Protocols](/docs/core-features/protocols/)
- [Authentication](/docs/core-features/authentication/)
- [Tests & scripts](/docs/core-features/tests-scripts/)
