AgentPMT
Webhook - HTTP Request

Webhook - HTTP Request

Core Utility

Available ActionsEach successful request consumes credits as outlined below.

request5cr

Details

A flexible and secure HTTP client designed for agent-driven API integrations and web service interactions. This function supports all standard HTTP methods including GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS, enabling comprehensive RESTful API communication. Users can configure requests with custom headers, query parameters, and request bodies in JSON, plain text, or base64-encoded binary formats. The tool provides four authentication modes: none for public endpoints, basic for username/password credentials automatically encoded to Base64, bearer for OAuth-style token authentication, and header for custom API key or signature-based authentication schemes. Built-in security features include URL validation that blocks private and loopback IP addresses by default (configurable via allow_private), configurable timeouts from 1 to 120 seconds, and response size limits up to 20MB to prevent memory issues. Response handling offers four modes—auto, json, text, and base64—with auto-detection intelligently parsing responses based on content-type headers. The function returns comprehensive response metadata including status code, headers, final URL after redirects, and the parsed body, making it an essential building block for workflows that need to interact with external APIs, webhooks, or web services.

Use Cases

Fetching data from third-party REST APIs for aggregation or transformation pipelines, submitting form data or JSON payloads to webhook endpoints for event-driven workflows, authenticating with OAuth-protected services using bearer tokens for secure integrations, polling external services for status updates or job completion in asynchronous workflows, posting structured data to CRM or marketing automation platforms, retrieving remote configuration files or feature flags from external services, sending notifications to Slack or Discord webhooks with custom message payloads, interacting with payment gateways or e-commerce APIs for order processing, fetching remote JSON schemas or API specifications for validation workflows, integrating with legacy systems via custom header-based authentication for enterprise data exchange

Actions(1)

request5cr17 params(1 required)

Make an HTTP request to a specified URL. Supports all standard HTTP methods, multiple authentication schemes, and flexible body/response formats.

Make an HTTP request to a specified URL. Supports all standard HTTP methods, multiple authentication schemes, and flexible body/response formats.

urlrequiredstring

The full URL to send the request to (must be http or https).

request_methodstring

HTTP method to use.

Values:
GETPOSTPUTPATCHDELETEHEADOPTIONS
Default: GET
headersobject

Custom HTTP headers as key-value pairs.

query_paramsobject

URL query parameters as key-value pairs.

body_jsonobject

JSON object body. Sets Content-Type to application/json automatically. Only one body type allowed per request.

body_textstring

Plain text body payload. Only one body type allowed per request.

body_base64string

Base64-encoded binary body payload. Only one body type allowed per request.

auth_typestring

Authentication scheme to use.

Values:
nonebasicbearerheader
Default: none
auth_usernamestring

Username for basic authentication. Required when auth_type is basic.

auth_passwordstring

Password for basic authentication. Required when auth_type is basic.

auth_tokenstring

Bearer token for authentication. Required when auth_type is bearer.

auth_header_namestring

Custom header name for header-based authentication. Required when auth_type is header.

auth_header_valuestring

Custom header value for header-based authentication. Required when auth_type is header.

timeout_secondsinteger

Request timeout in seconds.

Default: 30
Range: 1 - 120
response_modestring

How to return the response body. Auto detects based on Content-Type.

Values:
autojsontextbase64
Default: auto
max_response_bytesinteger

Maximum response size to return in bytes.

Default: 1048576
Range: 1024 - 20971520
allow_privateboolean

Set to true to allow requests to private or loopback IP addresses.

Default: false

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 695c37c5767df5adfd9bc873 ("Webhook - HTTP Request"). Then call the same tool with action 'call_tool', tool_id 695c37c5767df5adfd9bc873, and the parameters needed for my request.

Workflows Using This Tool

Looking for help integrating AI into your business? Set up a free consultation.