AgenticFlow

Product details

Q: Run Workflow API endpoint?

Hi! Can you please specify how can you do that you’ve just written: “ workflows can be triggered by external systems making a call to our Run Workflow API endpoint.”
I can’t see any feature like that on agentic flow to trigger a workflow, where do I find the API endpoint?

dottorluca19PLUSApr 29, 2025
Founder Team
SeanP_AgenticFlowAI

SeanP_AgenticFlowAI

Apr 29, 2025

A: Hey Dottorluca19,

You're right, there isn't a specific button or visible endpoint URL displayed directly within the workflow editor interface itself for triggering via API. It works a bit differently.

Any workflow you create can be triggered externally by sending an HTTP POST request to a specific API endpoint structure. Here’s how you find the necessary pieces and see examples:

1. Get Your API Key: Go to your AgenticFlow Settings -> API Keys. Generate an API key if you haven't already. This key authenticates your requests.

2. Get Your Workflow ID: Open the workflow you want to trigger. The ID is part of the URL in your browser's address bar. It looks like https://agenticflow.ai/app/workflow/THIS_IS_THE_WORKFLOW_ID. Copy that long string of characters.

3. Construct the API Endpoint URL: The URL you need to send the request to follows this pattern:
https://api.agenticflow.ai/v1/workflows/YOUR_WORKFLOW_ID/run
(Replace YOUR_WORKFLOW_ID with the ID you copied).

4. Make the API Call: From your external system (like a custom script, another automation tool, or even just using curl), you need to send an HTTP POST request to that URL. The request must include:

Headers:

Authorization: Bearer YOUR_API_KEY (Replace YOUR_API_KEY with the key from step 1).

Content-Type: application/json

Body: A JSON object containing the inputs your workflow expects. For example: {"inputs": {"input_name_1": "value1", "input_name_2": "value2"}}

Boilerplate Code & Examples:

The easiest way to see this in action with code examples (like Node.js) is to check out our GitHub boilerplate repository:

➡️ https://github.com/PixelML/agenticflow-boilerplate

This repository contains starter code demonstrating how to make these API calls to run workflows, including how to structure the request headers and body correctly.

If you're on Tier 3 or 4, in case you run into any trouble implementing this or need specific code guidance, please don't hesitate to post in the community or the dedicated Discord channel, and our team will provide priority assistance!

Share
Helpful?
Log in to join the conversation
Verified Purchaser badge

Verified purchaser

Posted: Apr 29, 2025

Thank you Sean, but in my agenticflow dashboard there’s no option to “generate API” in that dropdown menu. Why?

Founder
Posted: Apr 30, 2025

Hi, you can find example code https://github.com/PixelML/agenticflow-boilerplate include the API end point

Related questions
View product details