Languages & Environments
Usage Documentation
- Sharing Requests
- Prompt Registry
- Running Requests
- Advanced Logging
- FAQ
Why PromptLayer?
Reference
- REST API Reference
- POSTGet Prompt Template
- POSTPublish Prompt Template
- GETGet Prompt Template Labels
- PATCHMove Prompt Template Labels
- DELDelete a Prompt Template Label
- POSTCreate a Prompt Template Label
- POSTTrack Score
- POSTTrack Prompt
- POSTTrack Group
- POSTTrack Metadata
- GETGet All Prompt Templates
- POSTCreate Dataset from History
- POSTCreate Evaluation Pipeline
- POSTRun Full Evaluation
- GETGet Evaluation
- GETGet Evaluation Score
- DELDelete Reports by Name
- POSTLog Request
- GETGet Agent Version Execution Results
- POSTRun Agent
Reference
Track Score
POST
https://api.promptlayer.com
/
rest
/
track-score
curl --request POST \
--url https://api.promptlayer.com/rest/track-score \
--header 'Content-Type: application/json' \
--data '{
"request_id": 123,
"score": 50,
"name": "<string>",
"api_key": "<string>"
}'
{
"success": true,
"message": "<string>"
}
Track score allows you to associate a score 0-100 with each request.
Body
application/json
Response
200
application/json
Score tracked successfully
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.promptlayer.com/rest/track-score \
--header 'Content-Type: application/json' \
--data '{
"request_id": 123,
"score": 50,
"name": "<string>",
"api_key": "<string>"
}'
{
"success": true,
"message": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.