HTTP Request
Make HTTP requests (GET, POST, PUT, PATCH, DELETE) with custom headers and body
POST
/api/utilities/http-request
Auth Required
Action Cost: This tool consumes 1 action per request.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
method |
select
|
Required | The HTTP method to use |
url |
text
|
Required |
The full URL to request (including https://)
Example:
https://api.example.com/endpoint
|
headers |
json
|
Optional |
Custom HTTP headers as JSON object
Example:
{"Authorization": "Bearer token", "Content-Type": "application/json"}
|
body |
json
|
Optional |
Request body (JSON object or array)
Example:
{"key": "value"}
|
Request Example
curl -X POST https://nisastack.com/api/utilities/http-request \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"method": "GET",
"url": "https://api.example.com/users",
"headers": {
"Authorization": "Bearer token123"
}
}'
Response Format
Success Response (200 OK)
{
"success": true,
"data": {"status": 200, "headers": {...}, "body": {...}},
"metadata": {
"actions_consumed": 1
}
}
Error Response
{
"success": false,
"error": "Error message describing what went wrong"
}
Additional Notes
- Includes SSRF protection to prevent requests to private IPs and localhost.
- All limits are configurable via admin settings.
Try it out
Test this tool in the playground with your own API token.