Ingest spans from traces (v1 legacy)
Ingest spans from traces (v1 legacy)
Legacy trace-ingest endpoint. Accepts spans either as a raw JSON array or as an object with a `data` field containing the span array. Each span uses the same fields as [Create a span](/docs/apis/spans/api-request-logs), plus `trace_unique_id`, `span_unique_id`, and optional `span_parent_id` to build the trace tree. For new integrations, prefer [Create a trace (OTLP)](/docs/apis/traces/create-trace).
Authentication
AuthorizationBearer
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Request
This endpoint expects a list of objects or an object.
Array of span objects to ingest as traces.
OR
Wrapper object accepted by the legacy integration endpoint.
Response
Trace spans processed successfully
message
Human-readable ingest summary.
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error