The API Trigger block enables external systems to trigger your blueprint via HTTP API calls. Use it to integrate your agent with webhooks, external services, or other applications that need to programmatically execute your workflows.Unlike the UI Trigger block that responds to user interactions in the interface, the API Trigger block accepts HTTP POST requests to trigger blueprint execution.
You must deploy your agent before you can trigger a blueprint via API.
When you add an API Trigger block to your blueprint, it creates a public HTTP endpoint that you can use to trigger your blueprint. See API Trigger usage guide for more details about the API endpoints and how to use them.
You can test your API trigger using the Run blueprint button in the Agent Builder editor. The Default result field provides sample data for testing without making actual HTTP requests.
Below are the possible end states of the block call.
Name
Field
Type
Description
Trigger
-
success
-
The API Trigger block returns the input payload that was sent to the API endpoint.When triggered via API, the HTTP request body becomes available as @{result} in your blueprint execution, with your data nested under the inputs key. For example, if you send {"inputs": {"user_id": "123"}}, you can access it in your blueprint using @{result.inputs.user_id}.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.