POST
/
api
/
v1
/
traces
cURL
curl --request POST \
  --url https://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,
  "conversationId": null
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "input": "<string>",
  "output": "<string>",
  "modelId": "<string>",
  "projectId": null,
  "score": null,
  "feedback": null,
  "conversationId": null
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Create trace with feedback

The response is of type object.