Skip to main content
POST
Create spans

Authorizations

Authorization
string
header
required

A Laminar project API key.

Body

application/json
name
string
required
startTime
string<date-time>
required
endTime
string<date-time>
required
traceId
string<uuid>
required
spanId
string<uuid>
required
spanType
enum<string> | null

Note: The backend may still accept PIPELINE and HUMAN_EVALUATOR, but they are undocumented, and should not be used.

Available options:
DEFAULT,
LLM,
EXECUTOR,
EVALUATOR,
EVALUATION,
TOOL,
CACHED,
null
input
any
output
any
attributes
object | null
parentSpanId
string<uuid> | null

Response

Spans accepted.

spanId
string<uuid>
required
traceId
string<uuid>
required