API reference
Every resource, field, endpoint, and parameter in the New June Data API v1.
The reference is generated from the API's OpenAPI 3.1 document, the same file the API serves. When the two ever disagree, the document wins: download it or fetch it from the API at https://data.newjune.co/v1/openapi.json.
- Base URL
https://data.newjune.co/v1- Auth header
Authorization: Bearer $NEW_JUNE_API_KEY- Methods
GET only (read-only)- Format
JSON, snake_case, UTC timestamps- OpenAPI 3.1
/openapi.json
Every endpoint is a GET on a flat collection, /v1/<resource> or /v1/<resource>/{id}. Related resources are linked by _id fields and query filters such as ?round_id=, never by nested paths. Lists share one envelope and cursor, errors share one shape, and every response uses the same conventions.
Resources
me
The API key making the request, and its limits.
rounds
A round of golf you played or set up.
hole_scores
Your score on one hole of a round.
shots
One shot from one of your rounds.
reports
Analysis of one of your rounds. When a round was analyzed more than once, only the newest report is available.
priorities
An area of your game that your rounds point to.
plans
A practice plan for one of your priorities.
evaluations
A check of how a plan went in one of your rounds.
focus_sets
The plans you were focusing on for a period of time.
clubs
A club in your bag.
Every endpoint
| Method | Path | Summary | Scope |
|---|---|---|---|
GET | /v1/me | Get the current API key | any key |
GET | /v1/rounds | List rounds | rounds:read |
GET | /v1/rounds/{id} | Get a round | rounds:read |
GET | /v1/hole_scores | List hole scores | rounds:read |
GET | /v1/hole_scores/{id} | Get a hole score | rounds:read |
GET | /v1/shots | List shots | rounds:read |
GET | /v1/shots/{id} | Get a shot | rounds:read |
GET | /v1/reports | List reports | reports:read |
GET | /v1/reports/{id} | Get a report | reports:read |
GET | /v1/priorities | List priorities | plans:read |
GET | /v1/priorities/{id} | Get a priority | plans:read |
GET | /v1/plans | List plans | plans:read |
GET | /v1/plans/{id} | Get a plan | plans:read |
GET | /v1/evaluations | List evaluations | plans:read |
GET | /v1/evaluations/{id} | Get an evaluation | plans:read |
GET | /v1/focus_sets | List focus sets | plans:read |
GET | /v1/focus_sets/current | Get the current focus set | plans:read |
GET | /v1/focus_sets/{id} | Get a focus set | plans:read |
GET | /v1/clubs | List clubs | clubs:read |
GET | /v1/clubs/{id} | Get a club | clubs:read |
For example, the first request most integrations make is GET https://data.newjune.co/v1/me.