Skip to main content
POST
Write a trace

Authorizations

Authorization
string
header
required

A workspace API key (fn_...).

Headers

X-Feyn-Project
string
required

The project's key (projectKey).

Body

application/json
traceKey
string
required

Your id for the run; writes with the same key update one trace.

messages
object[]
required
startedAt
number
required

Unix milliseconds.

modelKey
string
output
string
reasoning
string
cost
number

USD.

latency
number

Milliseconds.

status
integer

The provider's HTTP status.

metadata
object

Flat key-value pairs, stored as strings.

completedAt
number

Unix milliseconds.

Response

The stored row's id.

id
string