---
title: "POST /api/v1/traces"
method: POST
path: "/api/v1/traces"
tags: ["Traces"]
---

# POST /api/v1/traces

`POST /api/v1/traces`

Create traces with feedback

## Request body

- TraceCreateRequest[]
  - `modelId` string, required — Identifier (or alias) for the model that produced the trace.
  - `projectId` string, uuid — Project identifier that groups this trace. Leave empty to keep it unassigned.
  - `input` string, required — Prompt or message provided to the model.
  - `output` string, required — Model response captured for the trace.
  - `score` number, required — Evaluator score used to determine if the trace is positive.
  - `feedback` string, nullable — Optional feedback explaining the score or providing guidance.

## Response `200`

success response

- TraceCreateResponse
  - `results` TraceCreateResult[], required — One entry per trace provided in the request.
    - `traceId` string, uuid, required — Identifier of the newly created trace.
    - `success` boolean, required — Whether the trace was persisted successfully.

## Other responses

- `400` — bad request
- `401` — unauthenticated
- `403` — unauthorized
- `404` — not found
- `409` — conflict
- `500` — internal server error

---

[API](https://skmtc.net/premai-io/apis/prem-studio-api.md) · [All operations](https://skmtc.net/premai-io/apis/prem-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/premai-io/prem-studio-api/revisions/2cb1f5df1b89/schema)
