---
title: "Execute Run For Worker"
method: POST
path: "/api/internal/agent-runs/execute"
tags: ["internal-agent-runs"]
---

# Execute Run For Worker

`POST /api/internal/agent-runs/execute`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/internal/agent-runs/execute`
- Auth: none declared

Execute one enqueued agent run synchronously and return its drain result.

Synchronous by design: keeping the request in flight is what guarantees
allocated CPU and no mid-turn instance reclamation. ``run_pending_adhoc_once_background``
opens and closes its own isolated DB session, so no request-scoped session is
used here.

## Headers

- `authorization` string, nullable

## Request body

- ExecuteRunRequest
  - `run_id` string, uuid, required
  - `lease_owner` string

## Response `200`

Successful Response

- ExecuteRunResponse
  - `run_id` string, uuid, required
  - `result` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/ce2c2ce318b1?raw)
