Overview
Logic provides built-in HTTP tools that allow your documents to make external HTTP requests during execution. Your documents can fetch data from APIs, post to webhooks, and interact with any external service — all described in plain text within your document. HTTP tools support all standard HTTP methods: GET, POST, PUT, PATCH, DELETE, and OPTIONS.How It Works
HTTP tools are designed to be used naturally within your document’s instructions. You don’t need to write code or specify technical tool names — just describe the HTTP request you want to make in plain language, and Logic’s agent will detect the appropriate method and construct the request. For example, you might write in your document:Describing Requests in Your Document
When writing HTTP instructions in your document, you can specify:- The URL — the endpoint to call (required)
- The HTTP method — GET, POST, PUT, PATCH, DELETE, or OPTIONS. The agent can often infer the method from context (e.g., “fetch” implies GET, “send data to” implies POST)
- Headers — any custom headers like content type or authentication
- A request body — for POST, PUT, and PATCH requests, describe the payload structure or provide exact values
The agent can also infer POST from natural phrasing like “send results to,”
“submit data to,” “notify the endpoint,” or “push metrics to” — you don’t
always need to specify the HTTP method explicitly.
Using Responses
The response of an HTTP request is available to the agent for use throughout the rest of the execution. You can provide instructions on how to use the results in plain text, just like any other part of your document. For example:Examples
Fetching Data from an API
A document that retrieves weather information might include instructions like:Posting to a Webhook
A document that sends notifications after processing:Calling an Authenticated API
A document that reads from a protected endpoint using a bearer token:Submitting Form Data
A document that submits structured data based on user input:HTTP tools are not currently available under HIPAA-compliant configurations.
Related Resources
- Using the API — learn about the auto-generated API for your documents
- Integrating Your Document — get started with document integration
- Executing a Document — API reference for executing documents

