---
title: "Complete Execution"
method: POST
path: "/costs/executions/{execution_id}/complete"
tags: ["costs"]
---

# Complete Execution

`POST /costs/executions/{execution_id}/complete`

Record the completion of an agent execution.

## Path parameters

- `execution_id` string, required

## Request body

- CostExecutionComplete
  - `cache_read_tokens` integer
  - `cache_write_tokens` integer
  - `cost_usd` number
  - `duration_seconds` integer, nullable
  - `error_message` string, nullable
  - `execution_id` string, required
  - `input_tokens` integer
  - `metadata` object
  - `output_tokens` integer
  - `status` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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