execute_api_request
Execute API requests to specific endpoints with custom HTTP methods, paths, parameters, headers, and body data for testing and integration purposes.
Instructions
Execute an API request to a specific endpoint
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | No | Request body as a JSON object (for POST/PUT/PATCH) | |
headers | No | Custom headers as key-value pairs | |
method | Yes | HTTP method (GET, POST, PUT, DELETE, etc.) | |
params | No | Query parameters as key-value pairs | |
path | Yes | The endpoint path (e.g., '/users/123') |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"description": "Request body as a JSON object (for POST/PUT/PATCH)",
"type": "object"
},
"headers": {
"description": "Custom headers as key-value pairs",
"type": "object"
},
"method": {
"description": "HTTP method (GET, POST, PUT, DELETE, etc.)",
"type": "string"
},
"params": {
"description": "Query parameters as key-value pairs",
"type": "object"
},
"path": {
"description": "The endpoint path (e.g., '/users/123')",
"type": "string"
}
},
"required": [
"method",
"path"
],
"type": "object"
}