Overview
The Execute Agent endpoint lets you start an agent execution via API. This is useful when you want to:- Trigger agent tasks from external systems or scripts
- Automate recurring agent tasks with consistent instructions
- Seed agent executions with predefined skills for repeatable behavior
Prerequisites
Before you begin, make sure you have:- A Kaizen API key (found in your organization settings)
- An agent configured in the Kaizen dashboard
Authentication
All API requests require a Bearer token in theAuthorization header:
Sending a Text Prompt
The simplest way to trigger an agent execution is to send a text prompt in thecontent array. This is equivalent to typing a message in the agent chat UI.
Request
Response
executionId can be used with the Get Execution endpoint to check the status of your execution.
The
agentId field is optional. If omitted, the backend will automatically
get or create an agent for your organization.Seeding an Execution with a Skill
Skills are reusable sets of instructions that you can attach to agent executions. By referencing a skill in your request, you ensure the agent reads the same skill content every time, making executions consistent and repeatable.Finding Your Skill IDs
You can find your skill IDs on the Skills page in the Kaizen dashboard.Request
To seed an execution with a skill, add askill item to the content array alongside your text prompt:
- Standardizing how the agent navigates a specific website
- Providing step-by-step instructions that should be followed every time
- Ensuring consistent data extraction across multiple executions
Extracting Structured Results
You can optionally pass asummarySchema to define a JSON Schema for the execution result. This tells the agent to extract structured data matching your schema at the end of the execution.
The
summarySchema overrides the agent-level result schema for this execution
only. If you have a default schema configured on the agent, the per-request
schema takes precedence.Summary
The Execute Agent API gives you full programmatic control over agent executions. Use text prompts for ad-hoc tasks, reference skills for consistent repeatable behavior, and define asummarySchema to extract structured results. For the full API reference, see the Execute Agent endpoint documentation.