> ## Documentation Index
> Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scores

Every PromptLayer request can be given an integer score 0-100.

Scores enrich [request logs](https://docs.promptlayer.com/features/observability/request-logs.md). Return to [Configure Request Logging](https://docs.promptlayer.com/features/observability/request-logs.md) for the other enrichment options.

![score](https://mintcdn.com/promptlayer/jUVR1Bx755pIFGwB/images/score.png?fit=max\&auto=format\&n=jUVR1Bx755pIFGwB\&q=85\&s=8b896707afa30337bb9f55c279d760dc)

To associate a score with a prompt, you can either do this visually from the dashboard or programmatically.
By default, an individual score is named default. You can enrich a request with multiple scores using "named scores" as shown below.
[Endpoint Reference](https://docs.promptlayer.com/reference/track-score.md)

```python Python theme={null}
# named score
promptlayer_client.track.score(
  request_id=pl_request_id, 
  score_name="summarization",
  score=100
)

# default score
promptlayer_client.track.score(
  request_id=pl_request_id, 
  # score_name="default",
  score=100
)
```

```js JavaScript theme={null}
promptLayerClient.track.score({
  request_id: pl_request_id,
  score: 100
})
```

```bash REST theme={null}
curl --request POST \
  --url https://api.promptlayer.com/rest/track-score \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: pl_<YOUR API KEY>' \
  --data '{
    "request_id": "<REQUEST ID>",
    "score": <YOUR SCORE>,
    "name": <YOUR SCORE NAME>
  }'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.