---
title: "POST /tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/settle/"
method: POST
path: "/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/settle/"
tags: ["tracer"]
---

# POST /tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/settle/

`POST /tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/settle/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/tracer/internal/error-feed-v2/grouping/attempts/{attempt_id}/settle/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- SettleGroupingCall
  - `lease_token` string, required
  - `request_key` string, required
  - `request_digest` string, required
  - `status` 'settled' | 'unknown', required
  - `result` object, nullable
  - `model_used` string, nullable
  - `input_tokens` integer, nullable
  - `output_tokens` integer, nullable
  - `cost_usd` string, decimal, nullable
  - `failure_code` string

## Response `200`

OK

- GroupingControlResponse
  - `state` string
  - `failure_code` string
  - `status` string
  - `checkpoint_revision` integer
  - `receipt_id` string, uuid

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `409`: Conflict
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
