---
title: "Calls Complete"
method: POST
path: "/v2/{entity}/{project}/calls/complete"
tags: ["Calls"]
---

# Calls Complete

`POST /v2/{entity}/{project}/calls/complete`

## Request

- Base URL: `https://trace.wandb.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://trace.wandb.ai/v2/{entity}/{project}/calls/complete`
- Auth: none declared

Upsert a batch of completed calls directly to the calls_complete table.

Each call in the batch contains both start and end information.
This endpoint is used when calls are buffered client-side and sent as complete records.

## Path parameters

- `entity` string, required
- `project` string, required

## Request body

- CallsUpsertCompleteReq: Request for upserting a batch of completed calls.
  - `batch` CompletedCallSchemaForInsert[], required
    - `project_id` string, required
    - `id` string, required
    - `trace_id` string, required
    - `op_name` string, required
    - `started_at` string, date-time, required
    - `ended_at` string, date-time, required
    - `display_name` string, nullable
    - `parent_id` string, nullable
    - `thread_id` string, nullable
    - `turn_id` string, nullable
    - `attributes` object, required
    - `inputs` object, required
    - `output` unknown
    - `summary` SummaryInsertMap, required
      - `usage` object
      - `status_counts` object
    - `otel_dump` object, nullable
    - `exception` string, nullable
    - `wb_user_id` string, nullable: Do not set directly. Server will automatically populate this field.
    - `wb_run_id` string, nullable
    - `wb_run_step` integer, nullable
    - `wb_run_step_end` integer, nullable

## Response `200`

Successful Response

- CallsUpsertCompleteRes: Response for upserting a batch of completed calls.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `dd89fadfe4e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wandb/apis/fastapi/changes/v2/:entity/:project/calls/complete/post.md)

---

[API](https://skmtc.dev/wandb/apis/fastapi.md) - [All operations](https://skmtc.dev/wandb/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/wandb/apis/fastapi/revisions/f7643c49bf2e?raw)
