AgentPMT - The Agentic Economy

HTTP Request

Core Utility
$0.03/requestMin Purchase: 100Min Purchase Price: $3

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

Parameters

(required properties listed first)

action*required
Type:string
Description:Use 'get_instructions' to retrieve documentation. Action to perform.
Allowed values:
get_instructionsrequest
method
Type:string
Description:HTTP method.
Default:GET
Allowed values:
GETPOSTPUTPATCHDELETEHEADOPTIONS
url
Type:string
Description:Request URL.
headers
Type:object
Description:HTTP headers.
query_params
Type:object
Description:Query parameters.
body_json
Type:object
Description:JSON body payload.
body_text
Type:string
Description:Text body payload.
body_base64
Type:string
Description:Base64-encoded binary payload.
auth_type
Type:string
Description:Authentication type.
Default:none
Allowed values:
nonebasicbearerheader
auth_username
Type:string
Description:Basic auth username.
auth_password
Type:string
Description:Basic auth password.
auth_token
Type:string
Description:Bearer token.
auth_header_name
Type:string
Description:Header name for header auth.
auth_header_value
Type:string
Description:Header value for header auth.
timeout_seconds
Type:integer
Description:Request timeout in seconds.
Default:30
Minimum:1
Maximum:120
response_mode
Type:string
Description:How to return response body.
Default:auto
Allowed values:
autojsontextbase64
max_response_bytes
Type:integer
Description:Maximum response size to return (bytes).
Default:1048576
Minimum:1024
Maximum:20971520
allow_private
Type:boolean
Description:Allow requests to private IPs.

API Example

curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key-here" \
  -H "X-Budget-Key: your-budget-key-here" \
  -d '{
    "product_id": "695c37c5767df5adfd9bc873",
    "parameters": {
      "action": "get_instructions",
      "method": "GET",
      "auth_type": "none",
      "timeout_seconds": 30,
      "response_mode": "auto",
      "max_response_bytes": 1048576
    }
  }'

Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your actual credentials.

About The Developer

Apoth3osis logo

Apoth3osis

13 stars

Joined Agent Payment: August 14, 2025

We build tools that enable AI agents to excel in the mathematical realm.

Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.