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

# Calls Complete

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

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

---

[API](https://skmtc.net/wandb/apis/serverless-training.md) · [All operations](https://skmtc.net/wandb/apis/serverless-training/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/serverless-training/revisions/8d8d96fc0fd3/schema)
