get_api_response
Send HTTP requests to a local dev server API and get the full response. Use it to test REST APIs, verify status codes, and inspect response shapes.
Instructions
Make an HTTP request to an API endpoint on a local dev server and return the full response. Supports all standard HTTP methods and an optional JSON request body. Useful for testing REST APIs, checking response shapes, and verifying status codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body as a JSON string (used with POST, PUT, PATCH) | |
| path | Yes | API endpoint path (e.g. /api/users, /health, /auth/login) | |
| port | Yes | The localhost port the API server is running on | |
| method | No | HTTP method | GET |
| custom_headers | No | Additional headers as a JSON string, e.g. '{"Authorization":"Bearer token"}' |