Call API Endpoint
swagger_call_apiExecute HTTP requests to API endpoints from a Swagger/OpenAPI spec using a preview-then-confirm flow. Preview the request, then confirm to send it.
Instructions
Execute an actual HTTP request to an API endpoint. Uses a 2-phase confirmation: first call shows a preview of the request, second call with confirmed=true executes it. Uses the base URL from the spec, API_BASE_URL env var, or the base_url parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (JSON) | |
| path | Yes | API endpoint path (e.g. /users/{id}) | |
| method | Yes | HTTP method (GET, POST, PUT, DELETE, etc.) | |
| headers | No | Additional request headers | |
| base_url | No | Override base URL (default from spec or API_BASE_URL env) | |
| confirmed | No | Set to true to actually execute the request. When false (default), shows a preview of the request. | |
| path_params | No | Path parameter values (e.g. { id: '123' }) | |
| query_params | No | Query parameters |