---
title: "SendToAgentExecution"
method: POST
path: "/gitpod.v1.AgentService/SendToAgentExecution"
tags: ["gitpod.v1.AgentService"]
---

# SendToAgentExecution

`POST /gitpod.v1.AgentService/SendToAgentExecution`

Sends user input to an active agent run.

 This method is used to provide interactive or conversation-based input
 to an agent. The agent can respond with output blocks containing
 text, file changes, or tool usage requests.

 ### Examples

 - Send a text message to an agent:

   ```yaml
   agentExecutionId: "6fa1a3c7-fbb7-49d1-ba56-1890dc7c4c35"
   userInput:
     text:
       content: "Generate a report based on the latest logs."
   ```

## Request body

- GitpodV1SendToAgentExecutionRequest
  - `agentExecutionId` string, uuid
  - `userInput` GitpodV1UserInputBlock
    - `text` GitpodV1UserInputBlockTextInput, required
      - `content` string

## Response `200`

Success

- GitpodV1SendToAgentExecutionResponse

## Other responses

- `default` — Error

## Changes

- **2025-06-10** `ca9a49ac7fbb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.AgentService/SendToAgentExecution/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/ca9a49ac7fbb/schema)
