cURL
curl --request POST \ --url https://api.promptlayer.com/rest/track-score \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <x-api-key>' \ --data ' { "request_id": 123, "score": 50, "name": "<string>" } '
{ "success": true, "message": "<string>" }
Your PromptLayer API Key.
The request_id from tracking a request.
request_id
The score you would like to give to this request (0 - 100).
0 <= x <= 100
A name for this request score. If not provided, the score will be tracked as default.
default
Score tracked successfully
Was this page helpful?