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 }
Use this endpoint to create a trace.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Create trace with feedback
The response is of type object.
object
Was this page helpful?