---
title: "Ingest Traces"
method: POST
path: "/traces/ingest"
tags: ["Observability"]
---

# Ingest Traces

`POST /traces/ingest`

## Request body

- TracesRequest
  - `traces` TraceInput[], nullable
    - `spans` object, nullable
    - `trace_id` string, nullable

## Response `202`

Successful Response

- TraceIdsResponse
  - `count` integer
  - `trace_ids` string[]

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-18** `c469c2f6cdba` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 info
  - api path removed with deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/traces/ingest/post.md)

---

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