HTTP POST
The HTTP POST tool enables authenticated AI agents to invoke mutating HTTP requests (POST, PUT, PATCH, DELETE) against external public REST APIs — sending request bodies and allowed custom headers while inspecting exact status codes, headers, and response payloads.
Tool Identifier: http-post (exposes function http_post)
Only need read-only raw HTML/JS/JSON retrieval? See HTTP GET (
http-get). Need clean rendered article prose? See HTTP Text (http-text).
Capabilities
When paired with HTTP GET for discovering endpoints and schemas, HTTP POST lets agents perform full REST API interactions:
- Mutating REST Calls: Issue
POST(default),PUT,PATCH, orDELETErequests to external public HTTP/HTTPS APIs. - Payloads & Headers: Send UTF-8 request bodies (defaulting
Content-Typetoapplication/jsonwhen non-empty body text is supplied without an explicit type) alongside custom headers such asAcceptorIdempotency-Key. - Bounded Response Inspection: Supports the same
offset/max_lengthpagination and boundedsearch/context_charsfiltering ashttp_get, returning3xx,4xx, and5xxresponses cleanly for agent reasoning.
Parameters
Agents call http_post with structured arguments:
url(required): Publichttp://orhttps://URL to target.method(optional, defaultPOST): Mutating HTTP method (POST,PUT,PATCH, orDELETE).body(optional): UTF-8 request payload string (e.g., serialized JSON or form data; max 1 MiB).content_type(optional): RequestContent-Typeheader (defaults toapplication/jsonwhenbodyis non-empty and not otherwise set inheaders).headers(optional): JSON object mapping header names to string values.offset/max_length(optional): Character offset and maximum slice length for response pagination.search/context_chars(optional): Case-insensitive pattern filter and surrounding character context for large responses.
How to Enable
In the UI
When configuring an agent in the Agent Builder or editing an existing agent, check the box for: ☑️ HTTP POST 📤
In Agent YAML
Add http-post to the tools array:
tools:
- http-post
Example Prompts & Use Cases
- Discover & Submit to a REST API: Enable
http-getandhttp-postand prompt: "Inspect https://example.com/ withhttp_getto find the confirmation API endpoint in its JavaScript bundle, then callhttp_postto submit codeZURICH." - Update a Public Webhook or Resource: "Send a
PUTrequest with JSON payload{...}to https://api.example.com/v1/items/42 and confirm whether it returns HTTP 200."
Access & Behavior
- Authenticated Users Only:
http-postis only available to signed-in users and API-key authenticated callers. It is not available to anonymous chat or widget visitors. - No Automatic Redirects: Unlike
http_get,http_postdoes not follow HTTP redirects automatically (3xxresponses and theirlocationheader are returned directly to the agent). - Locked Identity: Outbound requests send the standard AIsh.li User-Agent header, which callers cannot override via
headers.
Related Tools
- 📡 HTTP GET: Discover REST endpoints from raw HTML and JavaScript using read-only
GET/HEAD. - 🌐 HTTP Text: Read clean prose documentation without HTML markup.
- 📖 Connected Tools Overview