New JuneDevelopers
API reference

priorities

An area of your game that your rounds point to.

View .md
EndpointsScope plans:read
  • 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

FieldTypeDescription
objectstringAlways "priority".
idstringUnique id of the priority.
titlestringShort name of the area to work on.
descriptionstring or nullWhat the priority is about.
statusstringActive while it is still a focus; inactive once set aside. One of: active, inactive.
first_seen_report_idstring or nullThe report that first raised this priority.
last_seen_report_idstring or nullThe most recent report that raised this priority.
created_atstring (timestamp)When the priority was created.
updated_atstring (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.

GET/v1/priorities
AuthorizationBearer <token>

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

Query Parameters

limit?integer

How many items to return, 1 to 100. Defaults to 25.

Default25
Range1 <= value <= 100
cursor?string

The next_cursor value from the previous page, passed back unchanged with the same filters.

status?string

Only priorities with this status.

Value in"active" | "inactive"
updated_after?string

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.

Formatdate-time

Response 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.

GET/v1/priorities/{id}
AuthorizationBearer <token>

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

idstring

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"
  }
}