api.request
Send live HTTP requests to APIs with optional auth tokens, specified endpoints, and customizable methods, headers, and query parameters for streamlined API testing and integration.
Instructions
Execute a live HTTP request to API_BASE_URL; optionally include an Authorization bearer token retrieved from configured browser storage. Use after 'api.searchEndpoints' or for known endpoints.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endpoint | Yes | The API endpoint path (e.g., '/api/users', '/auth/profile'). Will be combined with API_BASE_URL from environment. | |
includeAuthToken | No | Whether to include auth token | |
method | No | HTTP method for the API call | GET |
queryParams | No | Query parameters as key-value pairs | |
requestBody | No | Request body for POST/PUT/PATCH requests (will be JSON stringified) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"endpoint": {
"description": "The API endpoint path (e.g., '/api/users', '/auth/profile'). Will be combined with API_BASE_URL from environment.",
"type": "string"
},
"includeAuthToken": {
"description": "Whether to include auth token",
"type": "boolean"
},
"method": {
"default": "GET",
"description": "HTTP method for the API call",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"type": "string"
},
"queryParams": {
"additionalProperties": {
"type": "string"
},
"description": "Query parameters as key-value pairs",
"type": "object"
},
"requestBody": {
"description": "Request body for POST/PUT/PATCH requests (will be JSON stringified)"
}
},
"required": [
"endpoint"
],
"type": "object"
}