---
title: "Commit router decision"
method: POST
path: "/api/v1/org/aiRouter/decisions/{decisionUuid}/commit"
---

# Commit router decision

`POST /api/v1/org/aiRouter/decisions/{decisionUuid}/commit`

Commit a router decision once the user has resolved it (router
auto-routed and the thread is created, or the user picked an agent
from the picker). Decisions left uncommitted indicate the user
abandoned the flow.

## Path parameters

- `decisionUuid` string, required

## Request body

- AiRouterDecisionCommitRequest
  - `threadUuid` string, required
  - `chosenAgentUuid` string, required

## Response `200`

Success

- ApiAiRouterDecisionCommitResponse
  - `results` unknown
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.dev/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
