cURL
curl --request POST \ --url https://api.promptlayer.com/rest/track-score \ --header 'Content-Type: application/json' \ --data '{ "request_id": "<string>", "score": 123, "name": "<string>", "api_key": "<string>" }'
import requests request_response = requests.post( "https://api.promptlayer.com/rest/track-score", json={ "request_id": "<PL_REQUEST_ID>", "score": "<NUMBER>", "name": "<SCORE_NAME>", # optional "api_key": "pl_<YOUR API KEY>", }, )
request_id
track-request
Was this page helpful?