---
title: "Complete Conversation Turn"
method: POST
path: "/api/cli/repositories/{repo_id}/conversation-turns/complete"
---

# Complete Conversation Turn

`POST /api/cli/repositories/{repo_id}/conversation-turns/complete`

## Path parameters

- `repo_id` integer, required

## Request body

- ConversationTurnUploadDTO
  - `provider` 'codex' | 'claude', required
  - `providerSessionId` string, required
  - `transcriptPathHash` string, required
  - `firstCwd` string, required
  - `providerTurnId` string, required
  - `branch` string, nullable
  - `branchSource` 'transcript' | 'git_fallback' | 'missing', required
  - `routingStatus` 'routable' | 'missing_branch' | 'missing_repo', required
  - `headSha` string, nullable
  - `startedAt` string, date-time, required
  - `completedAt` string, date-time, nullable
  - `messages` ConversationMessageDTO[]
    - `role` 'user' | 'assistant' | 'system' | 'tool', required
    - `content` string, required
    - `occurredAt` string, date-time, nullable

## Response `200`

Successful Response

- ConversationUploadResultDTO
  - `sourceId` string, uuid, required
  - `turnId` string, uuid, required
  - `routingStatus` 'routable' | 'missing_branch' | 'missing_repo', required
  - `messageCount` integer, required

## Other responses

- `422` — Validation Error

---

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