StartAgent
POST/gitpod.v1.AgentService/StartAgent
Starts (or triggers) an agent run using a provided agent.
Use this method to:
- Launch an agent based on a known agent
Examples
-
Start an agent with a project ID:
agentId: "b8a64cfa-43e2-4b9d-9fb3-07edc63f5971" codeContext: projectId: "2d22e4eb-31da-467f-882c-27e21550992f"
Body ParametersJSON
annotations: optional map[string]
annotations are key-value pairs for tracking external context (e.g., integration session IDs, GitHub issue references). Keys should follow domain/name convention (e.g., “agent-client-session/id”).
runnerId: optional string
runner_id specifies a runner for this agent execution. When set, the agent execution is routed to this runner instead of the runner associated with the environment.
formatuuid
StartAgent
curl https://app.gitpod.io/api/gitpod.v1.AgentService/StartAgent \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{}'{
"agentExecutionId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}Returns Examples
{
"agentExecutionId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}