POST
/
api
/
v1
/
traces
cURL
curl --request POST \
  --url http://studio.premai.io/api/v1/traces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "input": "<string>",
    "output": "<string>",
    "modelId": "<string>",
    "projectId": null,
    "score": null,
    "feedback": null
  }
]'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "input": "<string>",
    "output": "<string>",
    "modelId": "<string>",
    "projectId": null,
    "score": null,
    "feedback": null
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json · object[]
input
string
required
Minimum length: 1
output
string
required
Minimum length: 1
modelId
string
required
Minimum length: 1
projectId
string<uuid> | null
score
number | null
Required range: 0 <= x <= 1
feedback
string | null

Response

success response

id
string<uuid>
required
input
string
required
Minimum length: 1
output
string
required
Minimum length: 1
modelId
string
required
Minimum length: 1
projectId
string<uuid> | null
score
number | null
Required range: 0 <= x <= 1
feedback
string | null