API Tester Tutorial: Send REST & GraphQL Requests from Your Browser
A complete guide to the DevToolSets API Tester — send HTTP requests, query GraphQL endpoints, explore schemas, upload files, and subscribe to real-time streams with SSE and WebSocket.
What You'll Learn
- Sending REST API requests with any HTTP method
- Setting headers, query parameters, and request bodies
- Uploading files with REST and GraphQL requests
- Writing and sending GraphQL queries with variables
- Exploring GraphQL schemas with the built-in introspection explorer
- Subscribing to SSE and WebSocket streams
- Reading responses with the JSON tree viewer
- Using request history to replay past calls
Part 1: Sending REST Requests
Open the API Tester
Navigate to the API Tester tool. Make sure the "REST" mode is selected in the top-left toggle.
Choose an HTTP method
Select from the method dropdown: GET, POST, PUT, PATCH, DELETE, HEAD, or OPTIONS. Each method is color-coded for quick identification.
Enter the URL
Type or paste the API endpoint URL. You can press Enter to send immediately.
Add headers (optional)
In the left panel, use the Headers section to add key-value pairs. Each header has an enable/disable checkbox so you can toggle them without deleting.
Add query parameters (optional)
Use the Query Params section to add URL parameters. They're appended to the URL automatically when the request is sent.
Set the request body (POST/PUT/PATCH)
For methods that support a body, you have two options:
- Raw — type JSON or any text.
Content-Type: application/jsonis added automatically if not set - Files — attach files for multipart/form-data uploads
Click Send
The response appears on the right with status code, timing, and size. JSON responses get a collapsible tree view. You can also switch to the Raw tab for formatted JSON or the Headers tab to inspect response headers.
Part 2: Querying GraphQL Endpoints
Switch to GraphQL mode
Click the "GraphQL" toggle in the top bar. The interface adapts to show a query editor, variables panel, and file fields.
Enter the endpoint URL
Type your GraphQL endpoint (e.g. https://api.example.com/graphql).
Write your query
The Query textarea comes pre-filled with a skeleton. Replace it with your GraphQL query or mutation:
Add variables (optional)
Enter query variables as JSON in the Variables textarea:
Upload files (optional)
For GraphQL file uploads (multipart spec), use the File Fields section. Add a field, set the variable path (e.g. variables.file), and attach files. The request is sent as multipart/form-data automatically.
Click Send
The response appears in the Response tab with the same JSON tree viewer and header inspection as REST mode.
Part 3: Exploring GraphQL Schemas
In GraphQL mode, the right panel has an Explorer tab that lets you browse the API's schema via introspection.
Part 4: SSE & WebSocket Subscriptions
In GraphQL mode, a Subscriptions panel appears at the bottom. It supports both Server-Sent Events (SSE) and WebSocket connections.
Add a subscription
Click "+ Add" in the Subscriptions panel. Choose between SSE and WS using the toggle.
Enter the endpoint
For SSE, enter an https:// URL. For WebSocket, enter a wss:// URL.
Connect
Click Connect. A green dot indicates an active connection. Incoming messages appear in the Messages panel on the right with timestamps and auto-formatted JSON.
Manage connections
You can have multiple subscriptions active simultaneously. Disconnect individual ones or remove them entirely. Use the Clear button to reset the message log.
Part 5: Reading Responses
Part 6: Request History
Tips & Best Practices
Ready to try it out?
Open API Tester →