Module: 4/5
Lesson: 4/7
Exercises:
Module 4 | Lesson 3

Lesson 3: HTTP Modules — Making Raw API Calls

Sending Data: POST Request Body

When you create or update something, you send data in the request body. The body is usually JSON — structured data with key-value pairs.

Example: You want to create a task in a project management API:

POST https://api.example.com/tasks
Content-Type: application/json

{
  "title": "Review Module 4 lessons",
  "description": "Read and understand each lesson",
  "due_date": "2024-03-15",
  "assigned_to": "jane@example.com",
  "priority": "high"
}

In your HTTP module, you'd paste the JSON into the Body field. But here's the powerful part: you can use dynamic values from earlier steps. Instead of a static due date, you might use:

{
  "title": "Review {{1.outputname}}",
  "due_date": "{{dateAdd(now(), 7, 'days')}}"
}

The double curly braces pull data from previous steps or use functions to calculate values. This is how you connect the HTTP response to other parts of your workflow.

🔒

This lesson is premium

Get full access to AI Workflows — all modules, all lessons, lifetime access.

Already purchased? Sign in to restore access.