REST API Client
Send HTTP, GraphQL and WebSocket requests with environments, collections and history.
On this page 8 sections
- Run DevSnip Pro: REST API Client from the Command Palette, or click it in the sidebar.
- Choose the method, type the URL and press Enter or click Send.
- Read the response: status, time and size, formatted JSON you can search, headers and cookies. Copy or save it from the toolbar.
Paste a cURL command (for example from your browser’s dev tools, Copy as cURL) into the URL bar: the method, headers and body are imported.
Create an environment per target, such as local and staging, with variables like baseUrl and token. Reference them with {{name}} anywhere in the request, then switch environments to run the same request against another server.
GET {{baseUrl}}/users/42
Authorization: Bearer {{token}}Pick Bearer, Basic or API key on the Auth tab. An OAuth 2.0 token helper is available as an advanced tool.
- Save requests into collections, grouped in folders that mirror your API (
auth/,users/,billing/). Collections are unlimited and stored locally. - History keeps every request you sent; credential-looking URL values are redacted and API keys are never written to history.
- Switch the protocol from HTTP to GraphQL (next to the request name). The Body tab becomes a Query tab.
- Set the method to POST and enter the endpoint, such as
{{baseUrl}}/.graphql - Write the query, add Variables (JSON) and, if the document has several operations, an Operation name.
- Press Ctrl/Cmd+Enter or Send, then check both
dataanderrorsin the response.
query GetCountry($code: ID!) {
country(code: $code) {
name
capital
}
}Example: the variables and the response
Put the value for $code in Variables (JSON):
{
"code": "GB"
}The reply’s data mirrors the shape of the query. GraphQL servers often answer 200 OK even when part of a query fails and list the problem in an errors array, so check both:
{
"data": {
"country": {
"name": "United Kingdom",
"capital": "London"
}
}
}- Generate code for JavaScript (fetch, Axios), Python, Go, Java or C#.
- Export as cURL for a README or a bug report.
- Get types from a response with JSON to Types (TypeScript, Zod, Pydantic, Go, Kotlin, Swift and more).
Ready-made request shapes for OpenAI, Anthropic, Gemini, Azure OpenAI, Ollama and any OpenAI-compatible endpoint. Send a prompt, stream the reply and validate it against a schema; your API key is used for the request and never stored.
Assertions, request chaining, batch performance runs, response comparison, mock servers, WebSocket, the OAuth 2.0 helper and typed SDK export cost 8–35 points per successful run. Points are earned by using the extension — see Points, milestones & themes.
Requests time out after devsnip. (30 s by default). A per-request timeout set in the client overrides it, and Cancel stops a request early.