priorities
An area of your game that your rounds point to.
- GET
/v1/prioritiesList priorities - GET
/v1/priorities/{id}Get a priority
A priority is a lasting theme across reports. Plans point to a priority with priority_id.
The prioritie object
| Field | Type | Description |
|---|---|---|
object | string | Always "priority". |
id | string | Unique id of the priority. |
title | string | Short name of the area to work on. |
description | string or null | What the priority is about. |
status | string | Active while it is still a focus; inactive once set aside. One of: active, inactive. |
first_seen_report_id | string or null | The report that first raised this priority. |
last_seen_report_id | string or null | The most recent report that raised this priority. |
created_at | string (timestamp) | When the priority was created. |
updated_at | string (timestamp) | When the priority was last changed. |
Example prioritie:
{
"object": "priority",
"id": "ecbf0900-77cd-472a-b692-76faa0b4f462",
"title": "Lag putting",
"description": "Leave long putts inside three feet to cut three-putts.",
"status": "active",
"first_seen_report_id": "03d09dc8-617f-45e0-92fd-a76822838da0",
"last_seen_report_id": "791a868a-8cfc-48db-8690-70421a68ee7c",
"created_at": "2026-05-17T21:10:44.000Z",
"updated_at": "2026-06-14T20:02:51.000Z"
}Endpoints
Responses carry Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and a 429 adds Retry-After. See Headers.
List priorities
Your priorities, newest first: ordered by created_at descending, then id descending. Needs a key with the plans:read scope.
/v1/prioritiesA personal API key (nj_live_...), sent as a bearer token. Create one on the Developer page at https://newjune.co/golf/developer. The scopes listed on each operation are the key scopes it needs.
In: header
Scope: plans:read
Query Parameters
How many items to return, 1 to 100. Defaults to 25.
251 <= value <= 100The next_cursor value from the previous page, passed back unchanged with the same filters.
Only priorities with this status.
"active" | "inactive"Only priorities whose own updated_at is strictly after this time (ISO 8601, with Z or an offset). Use it to sync changes since your last run; the list order does not change.
date-timeResponse Body
curl "https://data.newjune.co/v1/priorities" \
-H "Authorization: Bearer $NEW_JUNE_API_KEY"{
"object": "list",
"data": [
{
"object": "priority",
"id": "ecbf0900-77cd-472a-b692-76faa0b4f462",
"title": "Lag putting",
"description": "Leave long putts inside three feet to cut three-putts.",
"status": "active",
"first_seen_report_id": "03d09dc8-617f-45e0-92fd-a76822838da0",
"last_seen_report_id": "791a868a-8cfc-48db-8690-70421a68ee7c",
"created_at": "2026-05-17T21:10:44.000Z",
"updated_at": "2026-06-14T20:02:51.000Z"
}
],
"has_more": true,
"next_cursor": "eyJ2IjoxLCJrIjpbIjIwMjYtMDUtMTdUMjE6MTA6NDQuMDAwMDAwWiIsImVjYmYwOTAwLTc3Y2QtNDcyYS1iNjkyLTc2ZmFhMGI0ZjQ2MiJdfQ"
}{
"error": {
"type": "invalid_request_error",
"code": "invalid_cursor",
"message": "The cursor is not valid. Use the next_cursor value from a previous response.",
"param": "cursor",
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#invalid_cursor"
}
}{
"error": {
"type": "authentication_error",
"code": "api_key_expired",
"message": "This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#api_key_expired"
}
}{
"error": {
"type": "permission_error",
"code": "account_suspended",
"message": "API access is suspended for this account.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#account_suspended"
}
}{
"error": {
"type": "rate_limit_error",
"code": "daily_limit_exceeded",
"message": "This account has reached its daily request limit. It resets at midnight UTC.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#daily_limit_exceeded"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Something went wrong on our side. Try again later.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#internal_error"
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "The API is temporarily unavailable. Try again later.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#service_unavailable"
}
}Get a priority
One priority by id. Needs a key with the plans:read scope.
/v1/priorities/{id}A personal API key (nj_live_...), sent as a bearer token. Create one on the Developer page at https://newjune.co/golf/developer. The scopes listed on each operation are the key scopes it needs.
In: header
Scope: plans:read
Path Parameters
The priority's id.
Response Body
curl "https://data.newjune.co/v1/priorities/ecbf0900-77cd-472a-b692-76faa0b4f462" \
-H "Authorization: Bearer $NEW_JUNE_API_KEY"{
"object": "priority",
"id": "ecbf0900-77cd-472a-b692-76faa0b4f462",
"title": "Lag putting",
"description": "Leave long putts inside three feet to cut three-putts.",
"status": "active",
"first_seen_report_id": "03d09dc8-617f-45e0-92fd-a76822838da0",
"last_seen_report_id": "791a868a-8cfc-48db-8690-70421a68ee7c",
"created_at": "2026-05-17T21:10:44.000Z",
"updated_at": "2026-06-14T20:02:51.000Z"
}{
"error": {
"type": "authentication_error",
"code": "api_key_expired",
"message": "This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#api_key_expired"
}
}{
"error": {
"type": "permission_error",
"code": "account_suspended",
"message": "API access is suspended for this account.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#account_suspended"
}
}{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No such priority.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#resource_not_found"
}
}{
"error": {
"type": "rate_limit_error",
"code": "daily_limit_exceeded",
"message": "This account has reached its daily request limit. It resets at midnight UTC.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#daily_limit_exceeded"
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Something went wrong on our side. Try again later.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#internal_error"
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "The API is temporarily unavailable. Try again later.",
"param": null,
"request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
"doc_url": "https://developers.newjune.co/errors#service_unavailable"
}
}