API Explorer
A built-in Postman-like request builder. Test your endpoints directly within the context of your authenticated application session.
- Authenticated Requests:
Automatically includes your session tokens from registered adapters (Supabase, NextAuth, Clerk, Firebase, etc.) in all requests.
- Parameter Management:
Define path and query parameters with types, descriptions, defaults, and examples. Parameters are automatically replaced in URLs or added as query strings.
- Sample Payloads & Responses:
Pre-define example request bodies (loadable with "Load Sample" button) and responses (shown in empty state and "sample" tab).
- cURL Export:
Generate terminal-ready commands from any request.
- History & Replay:
Keep track of your last 50 requests and replay them instantly with one click from the history sidebar.
- Custom Endpoints:
Define your project's specific endpoints in
.devconsole.jsonto have them appear pre-filled in the explorer.
Configurable API Endpoints
You can define custom API endpoints in your .devconsole.json file to make them available in the API Explorer. Custom endpoints are merged additively with predefined ones, allowing you to organize your project's API endpoints for easy testing and debugging.
Configuration Example
Add an apiEndpoints array to your .devconsole.json file:
Endpoint Properties
| Property | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique identifier for the endpoint |
| name | string | Yes | Display name in the API Explorer |
| description | string | Yes | Description of what the endpoint does |
| url | string | Yes | API endpoint URL (supports path parameters like :id) |
| method | GET | POST | PUT | DELETE | PATCH | Yes | HTTP method for the request |
| category | string | Yes | Category for grouping endpoints (e.g., "User", "Data", "Analytics") |
| requiresAuth | boolean | No | Whether the endpoint requires authentication (default: true) |
| hasParams | boolean | No | Whether the endpoint accepts path/query parameters (default: false) |
| hasBody | boolean | No | Whether the endpoint accepts a request body (default: false) |
| tags | string[] | No | Array of tags for additional filtering/organization |
| params | ParamDefinition[] | No | Parameter definitions for path/query params (see below) |
| samplePayload | object | No | Example request body (loadable with "Load Sample" button) |
| sampleResponse | object | No | Example response (shown in empty state and "sample" tab) |
Parameters
When hasParams is true, you can define parameters using the params array. Each parameter definition includes:
| Property | Type | Description |
|---|---|---|
| name | string | Parameter name |
| type | string | number | boolean | object | array | Parameter data type |
| description | string | Help text shown in the UI |
| required | boolean | Whether the parameter is required (marked with *) |
| isPathParam | boolean | If true, replaces :param in URL |
| isQueryParam | boolean | If true, added as query parameter (?key=value) |
| default | any | Default value (auto-filled in UI) |
| example | any | Example value (shown as placeholder) |
Complete Example with Parameters
Merging Behavior
Custom endpoints defined in your .devconsole.json file are merged additively with predefined endpoints. The merging order is:
- Predefined endpoints (built into DevConsole)
- File-based endpoints (from
.devconsole.json) - Local storage endpoints (user-added via the UI)
All endpoints appear together in the API Explorer, organized by category for easy navigation. This allows you to extend the default set of endpoints with your project-specific APIs while maintaining access to the built-in examples.
Tip: Organize your endpoints by category (e.g., "Auth", "User", "Data", "Analytics") to make them easier to find in the explorer sidebar. Categories are displayed as badges next to each endpoint.