Orkes logo image
Product
Platform
Orkes Platform thumbnail
Orkes Platform
Agentspan thumbnail
Agentspan
Orkes Conductor Vs Conductor OSS thumbnail
Orkes vs. Conductor OSS
Orkes Cloud
Try enterprise Orkes Cloud for free
Enjoy a free 14-day trial with all enterprise features
Start for free
Capabilities
Microservices Workflow Orchestration icon
Microservices Workflow Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Realtime API Orchestration icon
Realtime API Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Event Driven Architecture icon
Event Driven Architecture
Create durable workflows that promote modularity, flexibility, and responsiveness.
Human Workflow Orchestration icon
Human Workflow Orchestration
Seamlessly insert humans in the loop of complex workflows.
Process orchestration icon
Process Orchestration
Visualize end-to-end business processes, connect people, processes and systems, and monitor performance to resolve issues in real-time
Agentic workflows icon
Agentic Workflows
Transform your workflows into agentic experiences while maintaining full compliance and control
Use Cases
By Industry
Financial Services icon
Financial Services
Secure and comprehensive workflow orchestration for financial services
Media and Entertainment icon
Media and Entertainment
Enterprise grade workflow orchestration for your media pipelines
Telecommunications icon
Telecommunications
Future proof your workflow management with workflow orchestration
Healthcare icon
Healthcare
Revolutionize and expedite patient care with workflow orchestration for healthcare
Shipping and logistics icon
Shipping and Logistics
Reinforce your inventory management with durable execution and long running workflows
Software icon
Software
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean leo mauris, laoreet interdum sodales a, mollis nec enim.
Docs
Developers
Learn
Blog
Explore our blog for insights into the latest trends in workflow orchestration, real-world use cases, and updates on how our solutions are transforming industries.
Read blogs
Check out our latest blog:
How to Call Any External API From a Workflow in Orkes Conductor
Customers
Discover how leading companies are using Orkes to accelerate development, streamline operations, and achieve remarkable results.
Read case studies
Our latest case study:
LinkedIn Case Study Thumbnail
Orkes Academy New!
Master workflow orchestration with hands-on labs, structured learning paths, and certification. Build production-ready workflows from fundamentals to Agentic AI.
Explore courses
Featured course:
Orkes Academy Thumbnail
Events icon
Events
Videos icons
Videos
In the news icon
In the News
Whitepapers icon
Whitepapers
About us icon
About Us
Pricing
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Orkes logo image

Company

Platform
Careers
HIRING!
Partners
About Us
Legal Hub
Security

Product

Cloud
Platform
Support

Community

Docs
Blogs
Events

Use Cases

Microservices Workflow Orchestration
Realtime API Orchestration
Event Driven Architecture
Agentic Workflows
Human Workflow Orchestration
Process Orchestration

Compare

Orkes vs Camunda
Orkes vs BPMN
Orkes vs LangChain
Orkes vs Temporal
Twitter or X Socials linkLinkedIn Socials linkYouTube Socials linkSlack Socials linkGithub Socials linkFacebook iconInstagram iconTik Tok icon
© 2026 Orkes. All Rights Reserved.
Back to Blogs

Table of Contents

Share on:Share on LinkedInShare on FacebookShare on Twitter
Worker Code Illustration

Get Started for Free with Dev Edition

Signup
Back to Blogs
ENGINEERING

How to Call Any External API From a Workflow in Orkes Conductor

Maria Shimkovska
Maria Shimkovska
Content Engineer
Last updated: June 17, 2026
June 17, 2026
3 min read

Related Blogs

How to Run Custom Logic in Your Workflows Without Writing a Custom Worker

Jun 16, 2026

How to Run Custom Logic in Your Workflows Without Writing a Custom Worker

How to Transform JSON in Orkes Conductor Without Writing Custom Code

Jun 11, 2026

How to Transform JSON in Orkes Conductor Without Writing Custom Code

Time to Finally Understand Orchestration vs. Choreography

Oct 3, 2025

Time to Finally Understand Orchestration vs. Choreography

Ready to Build Something Amazing?

Join thousands of developers building the future with Orkes.

Start for free

This is for you if you would prefer not to read documentation and see more examples.

I want to show you everything that's possible with the built-in tasks in Orkes Conductor.

This is part of a series covering every built-in task in Orkes Conductor. This one is for the HTTP task.


Cover for the HTTP article, showing a simple workflow with just the HTTP task running successfully in Orkes Conductor

What is the HTTP task?

The HTTP task sends an HTTP request to any URL and makes the response available to the next task in your workflow. It supports GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, and TRACE, along with headers, request bodies, authentication, and more.

You point it at a URI, tell it what method to use, and it handles the rest. The response like the status code, headers, and body comes back as structured output that any downstream task can reference directly.

Why does this matter? Well, because most workflows need to talk to the outside world at some point. This is probably one of my most used tasks when I build workflows.

Without a built-in HTTP task, you will need to write a custom worker every time. But this is something that works perfect as a built-in task so we built it so you don't have to manage that part yourself and can focus on the core logic of your business.


Three Real-World Examples

1. Fetch Data to Drive Your Workflow

If you're building an onboarding workflow, where you onboard new users into your product or service and need to set up their account, send them a welcome email, or assign them to a team, then you would need to pull the new user's profile from your internal API so every downstream task has the data it needs.

This is exactly what the HTTP task can be used for, a single GET request that fetches the profile and makes the full response available to everything that follows:

json
{
  "name": "get_user_profile",
  "taskReferenceName": "get_user_profile_ref",
  "type": "HTTP",
  "inputParameters": {
    "uri": "https://api.yourapp.com/users/${workflow.input.userId}",
    "method": "GET",
    "accept": "application/json",
    "headers": {
      "Authorization": "Bearer ${workflow.input.token}"
    }
  }
}

Every task after that in the workflow can now reference ${get_user_profile_ref.output.response.body.email} or any other field from the response directly.


2. POST Data to an External Service

If you're building an order processing workflow, where you handle purchases and need to notify a fulfilment service once an order is confirmed, then you would need to send the order details to an external API via a POST request.

Like when a customer clicks "Buy Now" and your workflow needs to immediately fire off the order to your warehouse system with the item list, quantity, and shipping address before sending a confirmation email.

This is what the HTTP task can be used for. A POST with a structured body built from earlier workflow outputs:

json
{
  "name": "notify_fulfilment",
  "taskReferenceName": "notify_fulfilment_ref",
  "type": "HTTP",
  "inputParameters": {
    "uri": "https://fulfilment.partner.com/orders",
    "method": "POST",
    "accept": "application/json",
    "contentType": "application/json",
    "headers": {
      "x-api-key": "${workflow.input.fulfilmentApiKey}"
    },
    "body": {
      "orderId": "${workflow.input.orderId}",
      "items": "${process_order_ref.output.result.items}",
      "shippingAddress": "${workflow.input.address}"
    }
  }
}

Check if a Resource Exists Before Creating It

If you're building a user onboarding workflow, where new signups need to be added to your CRM but you want to avoid creating duplicates, then you would need to check whether the user already exists before triggering the creation step.

Like when a user signs up through a new channel but might have already been added manually by your sales team. you need to know before you act.

This is exactly what the HTTP task can be used for, combined with acceptedStatusCodes so a 404 doesn't stop your workflow. Here is what that would look like in your workflow definition:

json
{
  "name": "check_user_exists",
  "taskReferenceName": "check_user_ref",
  "type": "HTTP",
  "inputParameters": {
    "uri": "https://crm.internal/contacts/${workflow.input.email}",
    "method": "GET",
    "accept": "application/json",
    "contentType": "application/json",
    "acceptedStatusCodes": ["2xx", "404"]
  }
}

A 200 means the user already exists and a downstream SWITCH task can route the workflow to an update path.

A 404 means they're new and you can proceed with creation.

Either way the workflow keeps running, and ${check_user_ref.output.response.statusCode} tells the next task exactly what it's working with.


What the Task Returns

When the HTTP task runs, it gives you everything from the response:

FieldWhat It Contains
response.bodyThe full response body as a JSON object
response.statusCodeThe HTTP status code (200, 404, 500, etc.)
response.headersThe response headers
response.reasonPhraseThe status message (OK, Not Found, etc.)

Reference them in downstream tasks like:

javascript
${get_user_profile_ref.output.response.body.email}
${notify_fulfilment_ref.output.response.statusCode}

When Should You Reach for This Task?

We built this task so you can connect your workflow to the outside world without writing a single line of custom code.

The point here is not to prevent you from writing your code, you totally still can. But this let's you focus on writing the code that matters for your business.

Any time your workflow needs to fetch data from an API, trigger an external service, send a webhook, or check the state of a remote resource this is the task for it.

If it's an HTTP call, the HTTP task handles it natively.


Try It Yourself

The fastest way to see this in action is to spin up a free Developer Edition account of Orkes Conductor.

  1. Create your free Developer Edition account
  2. Go to Definitions > Workflow and click + Define Workflow
  3. Paste in the workflow below in the Code tab and hit Execute. I built this small workflow so you can just copy, paste, and see it run:

I Built This So You Can Just Copy, Paste, and See It Run

This workflow hits the Open-Meteo API (a free, no-auth weather API) and fetches the current weather for any city using its coordinates. Paste this into Conductor and hit Execute.

json
{
  "name": "fetch_current_weather",
  "description": "Fetches the current weather for a location using the free Open-Meteo API.",
  "version": 1,
  "tasks": [
    {
      "name": "get_weather",
      "taskReferenceName": "get_weather_ref",
      "type": "HTTP",
      "inputParameters": {
        "uri": "https://api.open-meteo.com/v1/forecast?latitude=${workflow.input.latitude}&longitude=${workflow.input.longitude}&current_weather=true",
        "method": "GET",
        "accept": "application/json"
      }
    }
  ],
  "inputParameters": [
    "latitude",
    "longitude"
  ],
  "outputParameters": {
    "temperature": "${get_weather_ref.output.response.body.current_weather.temperature}",
    "windspeed": "${get_weather_ref.output.response.body.current_weather.windspeed}",
    "weathercode": "${get_weather_ref.output.response.body.current_weather.weathercode}",
    "time": "${get_weather_ref.output.response.body.current_weather.time}"
  },
  "schemaVersion": 2,
  "restartable": true,
  "workflowStatusListenerEnabled": false,
  "timeoutPolicy": "ALERT_ONLY",
  "timeoutSeconds": 0
}

To run it, pass coordinates as input. Here's Amsterdam:

json
{
  "latitude": 52.3676,
  "longitude": 4.9041
}

The Open-Meteo API returns a full forecast object with dozens of fields. The workflow surfaces just the four that matter as clean output, with no transformation code and no auth needed. The HTTP task handles the rest.


This is part of a series covering every built-in task in Orkes Conductor. Next up: the Inline task.