DotFetch Documentation
DotFetch is an HTTP client that lives inside VS Code. You build a request, press Send, and read the response, without leaving your editor or copying secrets into a separate app.
CODE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GET βΎ https://api.example.com/users/{{USER_ID}} [Send] β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Params Headers Auth Body Scripts Notes βοΈ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Response 200 OK Β· 312 ms Β· 0.4 KB Body Headers Tests β
β { "id": 42, "name": "Ada" } β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββStart here
| If you want to⦠| Read |
|---|---|
| Send your first request in two minutes | Get Started |
Use {{VARIABLES}} from your .env files | Environments |
| Add a token, API key, Basic auth or OAuth 2.0 | Authentication |
| Run code before a request or test the response | Scripting Overview |
| Copy a ready-made script | Script Examples |
All pages
Overview
- Get Started: install, first request, keyboard shortcuts
Features
- Requests & Responses: methods, params, headers, body, settings, response viewer
- Authentication: Bearer, Basic, API Key, OAuth 2.0
- Environments:
.envfiles and{{VARIABLE}}substitution - Collections, Favorites & History
- cURL Import & Export
Scripting
- Overview: when scripts run and what happens when they fail
dotfetch.env: read and write variablesdotfetch.request&dotfetch.response- Tests & Assertions:
test()andassert() - Crypto & Utils: hashing, HMAC signing, UUIDs, Base64
- Examples: copy-paste recipes
These docs describe DotFetch 2.2.0. See the Changelog for what changed in each version.