---
title: "Execute Draft For Worker"
method: POST
path: "/api/internal/drafts/execute"
tags: ["internal-drafts"]
---

# Execute Draft For Worker

`POST /api/internal/drafts/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/drafts/execute`
- Auth: none declared

Execute one pending draft synchronously and return its outcome.

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

## Headers

- `authorization` string, nullable

## Request body

- ExecuteDraftRequest
  - `suggestion_id` string, uuid, required

## Response `200`

Successful Response

- ExecuteDraftResponse
  - `suggestion_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)
