# evaluations

Source: https://developers.newjune.co/api-reference/evaluations

> A check of how a plan went in one of your rounds.

A check of how a plan went in one of your rounds.

Scope: `plans:read`. Base URL: `https://data.newjune.co`.

After each round, New June evaluates every active plan against that round. Evaluations link a plan_id to a round_id.

## Endpoints

- `GET /v1/evaluations`: List evaluations
- `GET /v1/evaluations/{id}`: Get an evaluation

Responses carry `Request-Id`, `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and a `429` adds `Retry-After`. See [Headers](https://developers.newjune.co/conventions#headers).

## The evaluation object

| Field | Type | Description |
| --- | --- | --- |
| `object` | string | Always "evaluation". |
| `id` | string | Unique id of the evaluation. |
| `plan_id` | string | The plan that was evaluated. |
| `round_id` | string or null | The round the evaluation looked at, when there was one. |
| `report_id` | string or null | The report the evaluation used, when there was one. |
| `status` | string | How far the plan got: open (not met yet), partial, or complete. The cancelled value appears only on older evaluations. One of: `open`, `partial`, `complete`, `cancelled`. |
| `confidence` | string or null | How sure the evaluation is. Null when not given. One of: `high`, `medium`, `low`. |
| `summary` | string or null | Why the evaluation reached its status. |
| `notes` | string or null | More detail from the evaluation. |
| `data_quality_notes` | string or null | Anything about the round data that limited the evaluation. |
| `evaluated_at` | string (timestamp) | When the evaluation was made. |
| `created_at` | string (timestamp) | When the evaluation was saved. |

Example evaluation:

```json
{
  "object": "evaluation",
  "id": "bfedb770-42df-40b6-b523-812e260ec713",
  "plan_id": "245f4a1a-cbd7-4444-9d09-4752871cfeb6",
  "round_id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "report_id": "791a868a-8cfc-48db-8690-70421a68ee7c",
  "status": "partial",
  "confidence": "medium",
  "summary": "Two three-putts from long range, down from five last round.",
  "notes": "Pace control improved on the back nine.",
  "data_quality_notes": "Putts were not entered on holes 3 and 4.",
  "evaluated_at": "2026-06-14T20:03:40.000Z",
  "created_at": "2026-06-14T20:03:41.000Z"
}
```

### List evaluations

`GET /v1/evaluations`

Evaluations of your plans, newest first: ordered by evaluated_at descending, then id descending. Evaluations of test rounds are not included. Needs a key with the plans:read scope.

Scope: `plans:read`. Operation id: `listEvaluations`.

#### Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no | How many items to return, 1 to 100. Defaults to 25. |
| `cursor` | string | no | The next_cursor value from the previous page, passed back unchanged with the same filters. |
| `plan_id` | string | no | Only evaluations of this plan. |
| `round_id` | string | no | Only evaluations of this round. |

#### Example request

curl:

```bash
curl "https://data.newjune.co/v1/evaluations" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/evaluations', {
  headers: { Authorization: `Bearer ${process.env.NEW_JUNE_API_KEY}` },
});
const body = await response.json();
console.log(body);
```

Python:

```python
import os
import requests

response = requests.get(
    "https://data.newjune.co/v1/evaluations",
    headers={"Authorization": f"Bearer {os.environ['NEW_JUNE_API_KEY']}"},
    timeout=30,
)
print(response.json())
```

#### Responses

- `200`: A page of results.
- `400`: A query parameter is unknown, missing, or has an invalid value.
- `401`: The API key is missing, not valid, revoked, or expired.
- `403`: The key lacks the scope this endpoint needs, or the account is suspended.
- `429`: Too many requests. See the RateLimit and Retry-After headers.
- `500`: Something went wrong on our side.
- `503`: The API is temporarily unavailable.

### Get an evaluation

`GET /v1/evaluations/{id}`

One evaluation by id. Needs a key with the plans:read scope.

Scope: `plans:read`. Operation id: `getEvaluation`.

#### Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The evaluation's id. |

#### Example request

curl:

```bash
curl "https://data.newjune.co/v1/evaluations/bfedb770-42df-40b6-b523-812e260ec713" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/evaluations/bfedb770-42df-40b6-b523-812e260ec713', {
  headers: { Authorization: `Bearer ${process.env.NEW_JUNE_API_KEY}` },
});
const body = await response.json();
console.log(body);
```

Python:

```python
import os
import requests

response = requests.get(
    "https://data.newjune.co/v1/evaluations/bfedb770-42df-40b6-b523-812e260ec713",
    headers={"Authorization": f"Bearer {os.environ['NEW_JUNE_API_KEY']}"},
    timeout=30,
)
print(response.json())
```

#### Responses

- `200`: The item.
- `401`: The API key is missing, not valid, revoked, or expired.
- `403`: The key lacks the scope this endpoint needs, or the account is suspended.
- `404`: No such resource for this account.
- `429`: Too many requests. See the RateLimit and Retry-After headers.
- `500`: Something went wrong on our side.
- `503`: The API is temporarily unavailable.
