Overview

The HTTP Request action enables your agents to interact with any API or webhook endpoint. Whether you’re fetching data, updating records, or triggering external workflows, HTTP Request provides complete control over your API interactions.
HTTP Request is one of the most popular Lindy actions, giving you access to thousands of APIs that don’t have native Lindy integrations yet.

Adding HTTP Request to Your Workflow

HTTP Request action in the Add Action menu under Popular and By Lindy categories [[memory:2619471]]
Find HTTP Request in two places:
  • Popular section (highlighted for quick access)
  • By LindyAll By Lindy section

Configuration Fields

URL (Required)

The complete endpoint URL for your API call. Examples:
  • https://api.example.com/v1/users
  • https://webhook.site/unique-id
  • {{api_base_url}}/customers/{{customer_id}}
Use variables from previous steps by typing {{ to see available options.

Method

HTTP method dropdown showing GET, POST, PUT, PATCH, DELETE options [[memory:2619471]]
Select the HTTP method based on your API’s requirements:
MethodUse Case
GETRetrieve data without making changes
POSTCreate new resources or submit data
PUTUpdate entire resources
PATCHPartially update resources
DELETERemove resources

Headers

Headers configuration showing key-value pairs with Content-Type example [[memory:2619471]]
Headers provide additional context about your request. Common headers include: Authentication:
Authorization: Bearer {{api_token}}
X-API-Key: {{secret_key}}
Content Type:
Content-Type: application/json
Content-Type: application/xml
Content-Type: application/x-www-form-urlencoded
Custom Headers:
X-Client-Version: 2.0
X-Request-ID: {{unique_id}}
If you specify a Content-Type header, it will override the content type field selection.

Content Type

Tells the server what format your request body is in:
  • application/json — Most common for modern APIs (default)
  • application/xml — For XML-based APIs
  • application/x-www-form-urlencoded — For form submissions
  • multipart/form-data — For file uploads
  • text/plain — For plain text data

Body

The request body contains the data you’re sending to the API. Lindy offers two powerful modes:
Body field in Auto mode with AI assistance [[memory:2619471]]
In Auto mode, AI automatically constructs the request body based on:
  • The URL and method you’ve chosen
  • Available variables from previous steps
  • Common patterns for the API endpoint
Simply leave it blank and your agent will intelligently fill in the appropriate data.

Common Patterns

Response Handling

After execution, access the response data:
  • Response body: {{http_request.response}}
  • Status code: {{http_request.status_code}}
  • Headers: {{http_request.headers}}
Use these in subsequent steps to:
  • Parse JSON responses
  • Check for success/failure
  • Extract specific data fields
  • Trigger different workflows based on results

Best Practices

Next Steps