---
title: "CreateAgentExecutionActorToken"
method: POST
path: "/gitpod.v1.RunnerInteractionService/CreateAgentExecutionActorToken"
tags: ["gitpod.v1.RunnerInteractionService"]
---

# CreateAgentExecutionActorToken

`POST /gitpod.v1.RunnerInteractionService/CreateAgentExecutionActorToken`

Creates a short-lived actor token for a specific agent execution on this
 runner.

 Use this method to:
 - Fetch the actor token on demand without re-listing executions
 - Refresh an actor token when the previous one expires

 ### Examples

 - Create actor token:

   Retrieves a fresh actor token for a runner-owned agent execution.

   ```yaml
   runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   agentExecutionId: "07e03a28-65a5-4d98-b532-8ea67b188048"
   ```

## Request body

- GitpodV1CreateAgentExecutionActorTokenRequest
  - `agentExecutionId` string, uuid
  - `runnerId` string, uuid

## Response `200`

Success

- GitpodV1CreateAgentExecutionActorTokenResponse
  - `actorAccessToken` string, required — actor_access_token is the token that can be used as the agent execution's actor.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/versions/44d50c2ac284/schema)
