{"components":{"schemas":{"ApiKeyContext":{"description":"The API key making the request, and its limits.","example":{"object":"api_key_context","key":{"object":"api_key","id":"53e13cb8-f578-4bf4-958c-3c3faea4c7d4","name":"Spreadsheet sync","prefix":"nj_live_3f9a","scopes":["plans:read","rounds:read"],"expires_at":"2027-06-01T00:00:00.000Z"},"limits":{"requests_per_minute":60,"requests_per_day":1000}},"properties":{"object":{"description":"Always \"api_key_context\".","enum":["api_key_context"],"example":"api_key_context","type":"string"},"key":{"description":"The key used for this request.","example":{"object":"api_key","id":"53e13cb8-f578-4bf4-958c-3c3faea4c7d4","name":"Spreadsheet sync","prefix":"nj_live_3f9a","scopes":["plans:read","rounds:read"],"expires_at":"2027-06-01T00:00:00.000Z"},"properties":{"object":{"description":"Always \"api_key\".","enum":["api_key"],"example":"api_key","type":"string"},"id":{"description":"Unique id of the API key.","example":"53e13cb8-f578-4bf4-958c-3c3faea4c7d4","format":"uuid","type":"string"},"name":{"description":"The name you gave the key.","example":"Spreadsheet sync","type":"string"},"prefix":{"description":"The first characters of the key, for telling keys apart.","example":"nj_live_3f9a","type":"string"},"scopes":{"description":"What the key may read.","example":["plans:read","rounds:read"],"items":{"enum":["rounds:read","reports:read","plans:read","clubs:read"],"type":"string"},"type":"array"},"expires_at":{"description":"When the key stops working. Null when it does not expire.","example":"2027-06-01T00:00:00.000Z","format":"date-time","type":["string","null"]}},"required":["object","id","name","prefix","scopes","expires_at"],"type":"object"},"limits":{"description":"Rate limits that apply to this key.","example":{"requests_per_minute":60,"requests_per_day":1000},"properties":{"requests_per_minute":{"description":"Requests this key may make per minute.","example":60,"type":"integer"},"requests_per_day":{"description":"Requests per UTC day, shared by all of your keys. Resets at midnight UTC.","example":1000,"type":"integer"}},"required":["requests_per_minute","requests_per_day"],"type":"object"}},"required":["object","key","limits"],"type":"object"},"Club":{"description":"A club in your bag.","example":{"object":"club","id":"a7d4a4dc-e38a-4f98-859d-322795119428","club":"7_iron","type":"iron","display_name":"7 Iron","position":7,"typical_total_yards":155,"typical_carry_yards":147,"loft_degrees":34,"dispersion":{"center_long_yards":-4,"center_lateral_yards":3,"forward_yards":9,"backward_yards":12,"left_yards":14,"right_yards":10,"rotation_degrees":8},"created_at":"2026-03-02T18:20:00.000Z","updated_at":"2026-06-14T20:10:12.000Z"},"properties":{"object":{"description":"Always \"club\".","enum":["club"],"example":"club","type":"string"},"id":{"description":"Unique id of the club.","example":"a7d4a4dc-e38a-4f98-859d-322795119428","format":"uuid","type":"string"},"club":{"description":"Which club this is. Null when it does not match a known club.","enum":["driver","3_wood","4_wood","5_wood","7_wood","9_wood","2_hybrid","3_hybrid","4_hybrid","5_hybrid","6_hybrid","7_hybrid","9_hybrid","1_iron","2_iron","3_iron","4_iron","5_iron","6_iron","7_iron","8_iron","9_iron","pitching_wedge","gap_wedge","sand_wedge","lob_wedge","46_wedge","48_wedge","50_wedge","52_wedge","54_wedge","56_wedge","58_wedge","60_wedge","62_wedge","64_wedge","putter",null],"example":"7_iron","type":["string","null"]},"type":{"description":"Kind of club. Null when not recognized.","enum":["driver","wood","hybrid","iron","wedge","putter",null],"example":"iron","type":["string","null"]},"display_name":{"description":"Name shown in the app.","example":"7 Iron","type":"string"},"position":{"description":"Order in your bag, ascending.","example":7,"type":"integer"},"typical_total_yards":{"description":"Your usual total distance with this club, in yards.","example":155,"type":["integer","null"]},"typical_carry_yards":{"description":"Your usual carry distance, in yards, when known.","example":147,"type":["integer","null"]},"loft_degrees":{"description":"Loft, in degrees, when known.","example":34,"type":["number","null"]},"dispersion":{"anyOf":[{"$ref":"#/components/schemas/ClubDispersion"},{"type":"null"}],"description":"Shot pattern for this club. Null until there is enough data."},"created_at":{"description":"When the club was added.","example":"2026-03-02T18:20:00.000Z","format":"date-time","type":"string"},"updated_at":{"description":"When the club was last changed.","example":"2026-06-14T20:10:12.000Z","format":"date-time","type":"string"}},"required":["object","id","club","type","display_name","position","typical_total_yards","typical_carry_yards","loft_degrees","dispersion","created_at","updated_at"],"type":"object"},"ClubDispersion":{"description":"Where shots with this club tend to land: an ellipse around an offset center.","example":{"center_long_yards":-4,"center_lateral_yards":3,"forward_yards":9,"backward_yards":12,"left_yards":14,"right_yards":10,"rotation_degrees":8},"properties":{"center_long_yards":{"description":"How far the center of your shots lands past (+) or short of (-) the target, in yards.","example":-4,"type":"number"},"center_lateral_yards":{"description":"How far the center of your shots lands right (+) or left (-) of the target, in yards.","example":3,"type":"number"},"forward_yards":{"description":"Spread past the center, in yards.","example":9,"type":"number"},"backward_yards":{"description":"Spread short of the center, in yards.","example":12,"type":"number"},"left_yards":{"description":"Spread left of the center, in yards.","example":14,"type":"number"},"right_yards":{"description":"Spread right of the center, in yards.","example":10,"type":"number"},"rotation_degrees":{"description":"Tilt of the pattern, in degrees, clockwise positive.","example":8,"type":"number"}},"required":["center_long_yards","center_lateral_yards","forward_yards","backward_yards","left_yards","right_yards","rotation_degrees"],"type":"object"},"ClubList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"club","id":"a7d4a4dc-e38a-4f98-859d-322795119428","club":"7_iron","type":"iron","display_name":"7 Iron","position":7,"typical_total_yards":155,"typical_carry_yards":147,"loft_degrees":34,"dispersion":{"center_long_yards":-4,"center_lateral_yards":3,"forward_yards":9,"backward_yards":12,"left_yards":14,"right_yards":10,"rotation_degrees":8},"created_at":"2026-03-02T18:20:00.000Z","updated_at":"2026-06-14T20:10:12.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjciLCJhN2Q0YTRkYy1lMzhhLTRmOTgtODU5ZC0zMjI3OTUxMTk0MjgiXX0"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Club"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjciLCJhN2Q0YTRkYy1lMzhhLTRmOTgtODU5ZC0zMjI3OTUxMTk0MjgiXX0","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"Error":{"description":"Every error response has this shape.","example":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}},"properties":{"error":{"description":"The error details.","example":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"},"properties":{"type":{"description":"Broad category of the error.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error"],"example":"authentication_error","type":"string"},"code":{"description":"Stable code for this error. Safe to branch on. New codes may be added; existing codes never change meaning.","enum":["invalid_query_parameter","unknown_query_parameter","invalid_cursor","missing_api_key","invalid_api_key","api_key_revoked","api_key_expired","account_suspended","insufficient_scope","resource_not_found","no_current_focus_set","route_not_found","method_not_allowed","rate_limit_exceeded","daily_limit_exceeded","too_many_failed_attempts","internal_error","service_unavailable"],"example":"invalid_api_key","type":"string"},"message":{"description":"What went wrong, in plain language. Not meant to be parsed.","example":"The API key is not valid.","type":"string"},"param":{"description":"The parameter the error is about, when there is one.","example":null,"type":["string","null"]},"request_id":{"description":"Id of the request. Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"},"doc_url":{"description":"Link to the documentation for this error code.","example":"https://developers.newjune.co/errors#invalid_api_key","type":"string"}},"required":["type","code","message","param","request_id","doc_url"],"type":"object"}},"required":["error"],"type":"object"},"Evaluation":{"description":"A check of how a plan went in one of your rounds.","example":{"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"},"properties":{"object":{"description":"Always \"evaluation\".","enum":["evaluation"],"example":"evaluation","type":"string"},"id":{"description":"Unique id of the evaluation.","example":"bfedb770-42df-40b6-b523-812e260ec713","format":"uuid","type":"string"},"plan_id":{"description":"The plan that was evaluated.","example":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","format":"uuid","type":"string"},"round_id":{"description":"The round the evaluation looked at, when there was one.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":["string","null"]},"report_id":{"description":"The report the evaluation used, when there was one.","example":"791a868a-8cfc-48db-8690-70421a68ee7c","format":"uuid","type":["string","null"]},"status":{"description":"How far the plan got: open (not met yet), partial, or complete. The cancelled value appears only on older evaluations.","enum":["open","partial","complete","cancelled"],"example":"partial","type":"string"},"confidence":{"description":"How sure the evaluation is. Null when not given.","enum":["high","medium","low",null],"example":"medium","type":["string","null"]},"summary":{"description":"Why the evaluation reached its status.","example":"Two three-putts from long range, down from five last round.","type":["string","null"]},"notes":{"description":"More detail from the evaluation.","example":"Pace control improved on the back nine.","type":["string","null"]},"data_quality_notes":{"description":"Anything about the round data that limited the evaluation.","example":"Putts were not entered on holes 3 and 4.","type":["string","null"]},"evaluated_at":{"description":"When the evaluation was made.","example":"2026-06-14T20:03:40.000Z","format":"date-time","type":"string"},"created_at":{"description":"When the evaluation was saved.","example":"2026-06-14T20:03:41.000Z","format":"date-time","type":"string"}},"required":["object","id","plan_id","round_id","report_id","status","confidence","summary","notes","data_quality_notes","evaluated_at","created_at"],"type":"object"},"EvaluationList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"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"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMjA6MDM6NDAuMDAwMDAwWiIsImJmZWRiNzcwLTQyZGYtNDBiNi1iNTIzLTgxMmUyNjBlYzcxMyJdfQ"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Evaluation"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMjA6MDM6NDAuMDAwMDAwWiIsImJmZWRiNzcwLTQyZGYtNDBiNi1iNTIzLTgxMmUyNjBlYzcxMyJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"FocusSet":{"description":"The plans you were focusing on for a period of time.","example":{"object":"focus_set","id":"bc389c05-89d8-4afb-bd9d-f3979b56236e","primary_plan_id":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","secondary_plan_ids":["f7a9731f-f737-4e63-affb-db411b42bc0a"],"source_report_id":"03d09dc8-617f-45e0-92fd-a76822838da0","effective_from":"2026-05-17T21:14:40.000Z","effective_until":null,"is_current":true,"created_at":"2026-05-17T21:14:40.000Z"},"properties":{"object":{"description":"Always \"focus_set\".","enum":["focus_set"],"example":"focus_set","type":"string"},"id":{"description":"Unique id of the focus set.","example":"bc389c05-89d8-4afb-bd9d-f3979b56236e","format":"uuid","type":"string"},"primary_plan_id":{"description":"The main plan to work on. Null when none was chosen.","example":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","format":"uuid","type":["string","null"]},"secondary_plan_ids":{"description":"Other plans in the set, in order. Empty when there are none.","example":["f7a9731f-f737-4e63-affb-db411b42bc0a"],"items":{"format":"uuid","type":"string"},"type":"array"},"source_report_id":{"description":"The report the focus set came from, when any.","example":"03d09dc8-617f-45e0-92fd-a76822838da0","format":"uuid","type":["string","null"]},"effective_from":{"description":"When the focus set started.","example":"2026-05-17T21:14:40.000Z","format":"date-time","type":"string"},"effective_until":{"description":"When it was replaced. Null for the current set.","example":null,"format":"date-time","type":["string","null"]},"is_current":{"description":"True for the focus set in use now.","example":true,"type":"boolean"},"created_at":{"description":"When the focus set was created.","example":"2026-05-17T21:14:40.000Z","format":"date-time","type":"string"}},"required":["object","id","primary_plan_id","secondary_plan_ids","source_report_id","effective_from","effective_until","is_current","created_at"],"type":"object"},"FocusSetList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"focus_set","id":"bc389c05-89d8-4afb-bd9d-f3979b56236e","primary_plan_id":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","secondary_plan_ids":["f7a9731f-f737-4e63-affb-db411b42bc0a"],"source_report_id":"03d09dc8-617f-45e0-92fd-a76822838da0","effective_from":"2026-05-17T21:14:40.000Z","effective_until":null,"is_current":true,"created_at":"2026-05-17T21:14:40.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjIwMjYtMDUtMTdUMjE6MTQ6NDAuMDAwMDAwWiIsImJjMzg5YzA1LTg5ZDgtNGFmYi1iZDlkLWYzOTc5YjU2MjM2ZSJdfQ"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/FocusSet"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDUtMTdUMjE6MTQ6NDAuMDAwMDAwWiIsImJjMzg5YzA1LTg5ZDgtNGFmYi1iZDlkLWYzOTc5YjU2MjM2ZSJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"HoleScore":{"description":"Your score on one hole of a round.","example":{"object":"hole_score","id":"aa311280-73b2-4a0b-8458-ced896a87627","round_id":"498fe851-9796-4fcb-abbe-95e3a176e444","hole_number":7,"strokes":5,"putts":2,"fairway_hit":true,"green_in_regulation":false,"penalty_strokes":0,"par":4,"yardage_yards":385,"created_at":"2026-06-14T16:41:27.000Z","updated_at":"2026-06-14T19:12:09.000Z"},"properties":{"object":{"description":"Always \"hole_score\".","enum":["hole_score"],"example":"hole_score","type":"string"},"id":{"description":"Unique id of the hole score.","example":"aa311280-73b2-4a0b-8458-ced896a87627","format":"uuid","type":"string"},"round_id":{"description":"The round this score belongs to.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"},"hole_number":{"description":"Hole number on the course, from 1.","example":7,"type":"integer"},"strokes":{"description":"Strokes taken on the hole. Null when not entered yet.","example":5,"type":["integer","null"]},"putts":{"description":"Putts taken, when entered.","example":2,"type":["integer","null"]},"fairway_hit":{"description":"Whether the tee shot finished in the fairway. Null when not recorded or on a par 3.","example":true,"type":["boolean","null"]},"green_in_regulation":{"description":"Whether the green was reached in regulation, when recorded.","example":false,"type":["boolean","null"]},"penalty_strokes":{"description":"Penalty strokes on the hole, when entered.","example":0,"type":["integer","null"]},"par":{"description":"Par of the hole, from the round scorecard when it has one, otherwise the course. Null when unknown.","example":4,"type":["integer","null"]},"yardage_yards":{"description":"Length of the hole from the tee the round was played from, in yards. Null when unknown.","example":385,"type":["integer","null"]},"created_at":{"description":"When the score was first entered.","example":"2026-06-14T16:41:27.000Z","format":"date-time","type":"string"},"updated_at":{"description":"When the score was last changed. Par and yardage come from the scorecard or course, so a change to them does not move it.","example":"2026-06-14T19:12:09.000Z","format":"date-time","type":"string"}},"required":["object","id","round_id","hole_number","strokes","putts","fairway_hit","green_in_regulation","penalty_strokes","par","yardage_yards","created_at","updated_at"],"type":"object"},"HoleScoreList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"hole_score","id":"aa311280-73b2-4a0b-8458-ced896a87627","round_id":"498fe851-9796-4fcb-abbe-95e3a176e444","hole_number":7,"strokes":5,"putts":2,"fairway_hit":true,"green_in_regulation":false,"penalty_strokes":0,"par":4,"yardage_yards":385,"created_at":"2026-06-14T16:41:27.000Z","updated_at":"2026-06-14T19:12:09.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjciLCJhYTMxMTI4MC03M2IyLTRhMGItODQ1OC1jZWQ4OTZhODc2MjciXX0"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/HoleScore"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjciLCJhYTMxMTI4MC03M2IyLTRhMGItODQ1OC1jZWQ4OTZhODc2MjciXX0","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"Plan":{"description":"A practice plan for one of your priorities.","example":{"object":"plan","id":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","priority_id":"ecbf0900-77cd-472a-b692-76faa0b4f462","status":"active","criterion":{"rubric":"Two-putt or better from outside 30 feet on most holes.","measurable_signal":"Three-putts per round from outside 30 feet.","threshold":"One or fewer in two straight rounds."},"steps":[{"id":"fb2f2182-69fd-432a-8625-feff4a555c7f","title":"Ladder drill, 20 balls","description":"Putt to 20, 30, and 40 feet, stopping each ball past the hole.","status":"done","position":1,"completed_at":"2026-05-24T16:20:05.000Z"},{"id":"2f9ad778-7c24-431d-85e9-5b2e60343d86","title":"Lag to a tee from 40 feet","description":"Ten putts from 40 feet; count how many finish inside three feet.","status":"done","position":2,"completed_at":"2026-06-02T17:45:10.000Z"},{"id":"345f8094-b1a6-4232-af1d-cfe8077c059b","title":"Play nine holes counting three-putts","description":"On the course, note the length of every first putt and every three-putt.","status":"open","position":3,"completed_at":null}],"created_from_report_id":"03d09dc8-617f-45e0-92fd-a76822838da0","graduated_at":null,"cancelled_at":null,"cancel_reason":null,"created_at":"2026-05-17T21:12:03.000Z","updated_at":"2026-05-17T21:14:40.000Z"},"properties":{"object":{"description":"Always \"plan\".","enum":["plan"],"example":"plan","type":"string"},"id":{"description":"Unique id of the plan.","example":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","format":"uuid","type":"string"},"priority_id":{"description":"The priority this plan works on.","example":"ecbf0900-77cd-472a-b692-76faa0b4f462","format":"uuid","type":"string"},"status":{"description":"Candidate (proposed), active (being worked on), graduated (done), or cancelled.","enum":["candidate","active","graduated","cancelled"],"example":"active","type":"string"},"criterion":{"anyOf":[{"$ref":"#/components/schemas/PlanCriterion"},{"type":"null"}],"description":"How the plan is judged complete. Null while the plan is still being drafted."},"steps":{"description":"Steps in order. Archived steps are not included.","items":{"$ref":"#/components/schemas/PlanStep"},"type":"array"},"created_from_report_id":{"description":"The report the plan came from, when any.","example":"03d09dc8-617f-45e0-92fd-a76822838da0","format":"uuid","type":["string","null"]},"graduated_at":{"description":"When the plan was completed. Null otherwise.","example":null,"format":"date-time","type":["string","null"]},"cancelled_at":{"description":"When the plan was cancelled. Null otherwise.","example":null,"format":"date-time","type":["string","null"]},"cancel_reason":{"description":"Why the plan was cancelled, when it was.","example":null,"type":["string","null"]},"created_at":{"description":"When the plan was created.","example":"2026-05-17T21:12:03.000Z","format":"date-time","type":"string"},"updated_at":{"description":"When the plan itself was last changed. Marking a step done or open does not change it, so compare steps to catch step progress.","example":"2026-05-17T21:14:40.000Z","format":"date-time","type":"string"}},"required":["object","id","priority_id","status","criterion","steps","created_from_report_id","graduated_at","cancelled_at","cancel_reason","created_at","updated_at"],"type":"object"},"PlanCriterion":{"description":"How the plan is judged complete. Each field is null when not set.","example":{"rubric":"Two-putt or better from outside 30 feet on most holes.","measurable_signal":"Three-putts per round from outside 30 feet.","threshold":"One or fewer in two straight rounds."},"properties":{"rubric":{"description":"What finishing the plan looks like.","example":"Two-putt or better from outside 30 feet on most holes.","type":["string","null"]},"measurable_signal":{"description":"What is measured from your rounds.","example":"Three-putts per round from outside 30 feet.","type":["string","null"]},"threshold":{"description":"The level that counts as done.","example":"One or fewer in two straight rounds.","type":["string","null"]}},"required":["rubric","measurable_signal","threshold"],"type":"object"},"PlanList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"plan","id":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","priority_id":"ecbf0900-77cd-472a-b692-76faa0b4f462","status":"active","criterion":{"rubric":"Two-putt or better from outside 30 feet on most holes.","measurable_signal":"Three-putts per round from outside 30 feet.","threshold":"One or fewer in two straight rounds."},"steps":[{"id":"fb2f2182-69fd-432a-8625-feff4a555c7f","title":"Ladder drill, 20 balls","description":"Putt to 20, 30, and 40 feet, stopping each ball past the hole.","status":"done","position":1,"completed_at":"2026-05-24T16:20:05.000Z"},{"id":"2f9ad778-7c24-431d-85e9-5b2e60343d86","title":"Lag to a tee from 40 feet","description":"Ten putts from 40 feet; count how many finish inside three feet.","status":"done","position":2,"completed_at":"2026-06-02T17:45:10.000Z"},{"id":"345f8094-b1a6-4232-af1d-cfe8077c059b","title":"Play nine holes counting three-putts","description":"On the course, note the length of every first putt and every three-putt.","status":"open","position":3,"completed_at":null}],"created_from_report_id":"03d09dc8-617f-45e0-92fd-a76822838da0","graduated_at":null,"cancelled_at":null,"cancel_reason":null,"created_at":"2026-05-17T21:12:03.000Z","updated_at":"2026-05-17T21:14:40.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjIwMjYtMDUtMTdUMjE6MTI6MDMuMDAwMDAwWiIsIjI0NWY0YTFhLWNiZDctNDQ0NC05ZDA5LTQ3NTI4NzFjZmViNiJdfQ"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Plan"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDUtMTdUMjE6MTI6MDMuMDAwMDAwWiIsIjI0NWY0YTFhLWNiZDctNDQ0NC05ZDA5LTQ3NTI4NzFjZmViNiJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"PlanStep":{"description":"One step of a plan.","example":{"id":"fb2f2182-69fd-432a-8625-feff4a555c7f","title":"Ladder drill, 20 balls","description":"Putt to 20, 30, and 40 feet, stopping each ball past the hole.","status":"done","position":1,"completed_at":"2026-05-24T16:20:05.000Z"},"properties":{"id":{"description":"Unique id of the step.","example":"fb2f2182-69fd-432a-8625-feff4a555c7f","format":"uuid","type":"string"},"title":{"description":"What to do.","example":"Ladder drill, 20 balls","type":"string"},"description":{"description":"More detail about the step.","example":"Putt to 20, 30, and 40 feet, stopping each ball past the hole.","type":["string","null"]},"status":{"description":"Open until you mark it done.","enum":["open","done"],"example":"done","type":"string"},"position":{"description":"Order within the plan, ascending.","example":1,"type":"integer"},"completed_at":{"description":"When the step was marked done. Null while open.","example":"2026-05-24T16:20:05.000Z","format":"date-time","type":["string","null"]}},"required":["id","title","description","status","position","completed_at"],"type":"object"},"Priority":{"description":"An area of your game that your rounds point to.","example":{"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"},"properties":{"object":{"description":"Always \"priority\".","enum":["priority"],"example":"priority","type":"string"},"id":{"description":"Unique id of the priority.","example":"ecbf0900-77cd-472a-b692-76faa0b4f462","format":"uuid","type":"string"},"title":{"description":"Short name of the area to work on.","example":"Lag putting","type":"string"},"description":{"description":"What the priority is about.","example":"Leave long putts inside three feet to cut three-putts.","type":["string","null"]},"status":{"description":"Active while it is still a focus; inactive once set aside.","enum":["active","inactive"],"example":"active","type":"string"},"first_seen_report_id":{"description":"The report that first raised this priority.","example":"03d09dc8-617f-45e0-92fd-a76822838da0","format":"uuid","type":["string","null"]},"last_seen_report_id":{"description":"The most recent report that raised this priority.","example":"791a868a-8cfc-48db-8690-70421a68ee7c","format":"uuid","type":["string","null"]},"created_at":{"description":"When the priority was created.","example":"2026-05-17T21:10:44.000Z","format":"date-time","type":"string"},"updated_at":{"description":"When the priority was last changed.","example":"2026-06-14T20:02:51.000Z","format":"date-time","type":"string"}},"required":["object","id","title","description","status","first_seen_report_id","last_seen_report_id","created_at","updated_at"],"type":"object"},"PriorityList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"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"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Priority"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDUtMTdUMjE6MTA6NDQuMDAwMDAwWiIsImVjYmYwOTAwLTc3Y2QtNDcyYS1iNjkyLTc2ZmFhMGI0ZjQ2MiJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"Report":{"description":"Analysis of one of your rounds. When a round was analyzed more than once, only the newest report is available.","example":{"object":"report","id":"791a868a-8cfc-48db-8690-70421a68ee7c","round_id":"498fe851-9796-4fcb-abbe-95e3a176e444","headline":"Solid ball striking, costly putting","narrative":"You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.","priorities":[{"title":"Lag putting from long range","description":"Three of your four three-putts started outside 30 feet."}],"holes":[{"hole_number":7,"summary":"Found the fairway, then left the 7 iron approach short of the green.","key_insight":"Club up when the wind is in your face.","weight":"medium"}],"created_at":"2026-06-14T20:02:37.000Z"},"properties":{"object":{"description":"Always \"report\".","enum":["report"],"example":"report","type":"string"},"id":{"description":"Unique id of the report.","example":"791a868a-8cfc-48db-8690-70421a68ee7c","format":"uuid","type":"string"},"round_id":{"description":"The round this report analyzes.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"},"headline":{"description":"One-line takeaway, when the report has one.","example":"Solid ball striking, costly putting","type":["string","null"]},"narrative":{"description":"The written analysis of the round. Paragraphs are separated by a blank line.","example":"You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.","type":["string","null"]},"priorities":{"description":"Areas to work on, most important first. May be empty.","items":{"$ref":"#/components/schemas/ReportPriority"},"type":"array"},"holes":{"description":"Per-hole analysis, by hole number. May be empty.","items":{"$ref":"#/components/schemas/ReportHole"},"type":"array"},"created_at":{"description":"When the report was written.","example":"2026-06-14T20:02:37.000Z","format":"date-time","type":"string"}},"required":["object","id","round_id","headline","narrative","priorities","holes","created_at"],"type":"object"},"ReportHole":{"description":"Analysis of one hole.","example":{"hole_number":7,"summary":"Found the fairway, then left the 7 iron approach short of the green.","key_insight":"Club up when the wind is in your face.","weight":"medium"},"properties":{"hole_number":{"description":"Hole number, from 1.","example":7,"type":"integer"},"summary":{"description":"What happened on the hole.","example":"Found the fairway, then left the 7 iron approach short of the green.","type":["string","null"]},"key_insight":{"description":"The main thing to take from the hole.","example":"Club up when the wind is in your face.","type":["string","null"]},"weight":{"description":"How much the hole mattered to the analysis. Null when not given.","enum":["high","medium","low",null],"example":"medium","type":["string","null"]}},"required":["hole_number","summary","key_insight","weight"],"type":"object"},"ReportList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"report","id":"791a868a-8cfc-48db-8690-70421a68ee7c","round_id":"498fe851-9796-4fcb-abbe-95e3a176e444","headline":"Solid ball striking, costly putting","narrative":"You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.","priorities":[{"title":"Lag putting from long range","description":"Three of your four three-putts started outside 30 feet."}],"holes":[{"hole_number":7,"summary":"Found the fairway, then left the 7 iron approach short of the green.","key_insight":"Club up when the wind is in your face.","weight":"medium"}],"created_at":"2026-06-14T20:02:37.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMjA6MDI6MzcuMDAwMDAwWiIsIjc5MWE4NjhhLThjZmMtNDhkYi04NjkwLTcwNDIxYTY4ZWU3YyJdfQ"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Report"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMjA6MDI6MzcuMDAwMDAwWiIsIjc5MWE4NjhhLThjZmMtNDhkYi04NjkwLTcwNDIxYTY4ZWU3YyJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"ReportPriority":{"description":"An area to work on that the round points to.","example":{"title":"Lag putting from long range","description":"Three of your four three-putts started outside 30 feet."},"properties":{"title":{"description":"Short name of the area to work on.","example":"Lag putting from long range","type":["string","null"]},"description":{"description":"Why it matters in this round.","example":"Three of your four three-putts started outside 30 feet.","type":["string","null"]}},"required":["title","description"],"type":"object"},"Round":{"description":"A round of golf you played or set up.","example":{"object":"round","id":"498fe851-9796-4fcb-abbe-95e3a176e444","status":"completed","started_at":"2026-06-14T15:02:11.000Z","ended_at":"2026-06-14T19:08:40.000Z","timezone":"America/Los_Angeles","play_mode":"standard","holes_planned":18,"holes_scored":18,"total_strokes":87,"par_total":72,"score_to_par":15,"course":{"id":"f5a90a93-88b7-4aea-99a4-8aee6cbe414f","name":"Ridge Course","facility_name":"Larkspur Ridge Golf Club","city":"Bend","state_province":"OR","country":"US"},"tee":{"id":"c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3","name":"Blue"},"created_at":"2026-06-14T14:58:30.000Z","updated_at":"2026-06-14T19:21:05.000Z"},"properties":{"object":{"description":"Always \"round\".","enum":["round"],"example":"round","type":"string"},"id":{"description":"Unique id of the round.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"},"status":{"description":"Where the round is in its life.","enum":["scheduled","in_progress","paused","completed","cancelled"],"example":"completed","type":"string"},"started_at":{"description":"When the round started.","example":"2026-06-14T15:02:11.000Z","format":"date-time","type":"string"},"ended_at":{"description":"When the round ended. Null while it is still going.","example":"2026-06-14T19:08:40.000Z","format":"date-time","type":["string","null"]},"timezone":{"description":"IANA time zone where the round was played, when known.","example":"America/Los_Angeles","type":["string","null"]},"play_mode":{"description":"Standard rounds are analyzed after you play. Casual rounds are played for fun and are not analyzed.","enum":["standard","casual"],"example":"standard","type":"string"},"holes_planned":{"description":"How many holes the round was set up for (9 or 18), when known.","example":18,"type":["integer","null"]},"holes_scored":{"description":"Holes with a score entered.","example":18,"type":"integer"},"total_strokes":{"description":"Sum of hole scores entered so far. Null when no hole has a score.","example":87,"type":["integer","null"]},"par_total":{"description":"Par of the holes scored so far, from the round scorecard or the course. Null when no hole has a score or any scored hole has no known par.","example":72,"type":["integer","null"]},"score_to_par":{"description":"The total_strokes value minus par_total. Null when either is null.","example":15,"type":["integer","null"]},"course":{"anyOf":[{"$ref":"#/components/schemas/RoundCourse"},{"type":"null"}],"description":"The course the round was played on. Null when the course is not available to you."},"tee":{"anyOf":[{"$ref":"#/components/schemas/RoundTee"},{"type":"null"}],"description":"The tee played from. Null when not chosen."},"created_at":{"description":"When the round was created.","example":"2026-06-14T14:58:30.000Z","format":"date-time","type":"string"},"updated_at":{"description":"When the round itself was last changed: its status, times, course, tee, scorecard, or other round details, including some the API does not show. Entering or editing hole scores does not change it, even though holes_scored, total_strokes, par_total, and score_to_par change with them.","example":"2026-06-14T19:21:05.000Z","format":"date-time","type":"string"}},"required":["object","id","status","started_at","ended_at","timezone","play_mode","holes_planned","holes_scored","total_strokes","par_total","score_to_par","course","tee","created_at","updated_at"],"type":"object"},"RoundCourse":{"description":"The course the round was played on.","example":{"id":"f5a90a93-88b7-4aea-99a4-8aee6cbe414f","name":"Ridge Course","facility_name":"Larkspur Ridge Golf Club","city":"Bend","state_province":"OR","country":"US"},"properties":{"id":{"description":"Unique id of the course.","example":"f5a90a93-88b7-4aea-99a4-8aee6cbe414f","format":"uuid","type":"string"},"name":{"description":"Course name.","example":"Ridge Course","type":"string"},"facility_name":{"description":"Name of the club or facility.","example":"Larkspur Ridge Golf Club","type":"string"},"city":{"description":"City, when known.","example":"Bend","type":["string","null"]},"state_province":{"description":"State or province, when known.","example":"OR","type":["string","null"]},"country":{"description":"Country, when known.","example":"US","type":["string","null"]}},"required":["id","name","facility_name","city","state_province","country"],"type":"object"},"RoundList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"round","id":"498fe851-9796-4fcb-abbe-95e3a176e444","status":"completed","started_at":"2026-06-14T15:02:11.000Z","ended_at":"2026-06-14T19:08:40.000Z","timezone":"America/Los_Angeles","play_mode":"standard","holes_planned":18,"holes_scored":18,"total_strokes":87,"par_total":72,"score_to_par":15,"course":{"id":"f5a90a93-88b7-4aea-99a4-8aee6cbe414f","name":"Ridge Course","facility_name":"Larkspur Ridge Golf Club","city":"Bend","state_province":"OR","country":"US"},"tee":{"id":"c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3","name":"Blue"},"created_at":"2026-06-14T14:58:30.000Z","updated_at":"2026-06-14T19:21:05.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Round"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"RoundTee":{"description":"The tee the round was played from.","example":{"id":"c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3","name":"Blue"},"properties":{"id":{"description":"Unique id of the tee.","example":"c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3","format":"uuid","type":"string"},"name":{"description":"Tee name as shown on the card.","example":"Blue","type":"string"}},"required":["id","name"],"type":"object"},"Shot":{"description":"One shot from one of your rounds.","example":{"object":"shot","id":"02cd3b84-a264-40b0-9af7-466c3874c512","round_id":"498fe851-9796-4fcb-abbe-95e3a176e444","hole_number":7,"sequence_number":2,"played_at":"2026-06-14T16:35:48.000Z","club":"7_iron","is_provisional":false,"penalty_strokes":0,"penalty_type":null,"start":{"latitude":44.04712,"longitude":-121.35218,"altitude_meters":1102.4},"end":{"latitude":44.04825,"longitude":-121.35161,"altitude_meters":1104.1},"lie":{"type":"fairway","quality":"good","description":"Ball sitting cleanly in the fairway."},"planned":{"distance_yards":150,"curve":"draw","trajectory":"mid","shot_type":"approach","target_latitude":44.04829,"target_longitude":-121.35166,"notes":"Aim at the center of the green."},"result":{"distance_yards":146,"curve":"straight","trajectory":"low","contact":"thin","quality":"missed green"},"notes":"Wind into the face.","confidence":0.82,"created_at":"2026-06-14T19:34:56.000Z","updated_at":"2026-06-14T19:34:56.000Z"},"properties":{"object":{"description":"Always \"shot\".","enum":["shot"],"example":"shot","type":"string"},"id":{"description":"Unique id of the shot.","example":"02cd3b84-a264-40b0-9af7-466c3874c512","format":"uuid","type":"string"},"round_id":{"description":"The round the shot was played in.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"},"hole_number":{"description":"Hole number, from 1.","example":7,"type":"integer"},"sequence_number":{"description":"Order of the shot on the hole, from 1.","example":2,"type":"integer"},"played_at":{"description":"When the shot was played.","example":"2026-06-14T16:35:48.000Z","format":"date-time","type":"string"},"club":{"description":"Club used. Null when not known.","enum":["driver","3_wood","4_wood","5_wood","7_wood","9_wood","2_hybrid","3_hybrid","4_hybrid","5_hybrid","6_hybrid","7_hybrid","9_hybrid","1_iron","2_iron","3_iron","4_iron","5_iron","6_iron","7_iron","8_iron","9_iron","pitching_wedge","gap_wedge","sand_wedge","lob_wedge","46_wedge","48_wedge","50_wedge","52_wedge","54_wedge","56_wedge","58_wedge","60_wedge","62_wedge","64_wedge","putter",null],"example":"7_iron","type":["string","null"]},"is_provisional":{"description":"Whether this was a provisional ball.","example":false,"type":["boolean","null"]},"penalty_strokes":{"description":"Penalty strokes from this shot, when any.","example":0,"type":["integer","null"]},"penalty_type":{"description":"Kind of penalty, for example water or out of bounds. Null when there was none. Free text, not a fixed list.","example":null,"type":["string","null"]},"start":{"anyOf":[{"$ref":"#/components/schemas/ShotStart"}],"description":"Where the shot was played from: latitude, longitude, and altitude."},"end":{"anyOf":[{"$ref":"#/components/schemas/ShotEnd"}],"description":"Where the ball finished: latitude, longitude, and altitude."},"lie":{"anyOf":[{"$ref":"#/components/schemas/ShotLie"}],"description":"The lie the shot was played from."},"planned":{"anyOf":[{"$ref":"#/components/schemas/ShotPlan"}],"description":"What the shot was meant to do: distance, shape, and target."},"result":{"anyOf":[{"$ref":"#/components/schemas/ShotResult"}],"description":"What the shot did: distance, shape, contact, and outcome."},"notes":{"description":"Notes about the shot.","example":"Wind into the face.","type":["string","null"]},"confidence":{"description":"Confidence in the shot details, from 0 to 1.","example":0.82,"type":["number","null"]},"created_at":{"description":"When the shot was recorded.","example":"2026-06-14T19:34:56.000Z","format":"date-time","type":"string"},"updated_at":{"description":"When the shot was last changed.","example":"2026-06-14T19:34:56.000Z","format":"date-time","type":"string"}},"required":["object","id","round_id","hole_number","sequence_number","played_at","club","is_provisional","penalty_strokes","penalty_type","start","end","lie","planned","result","notes","confidence","created_at","updated_at"],"type":"object"},"ShotEnd":{"description":"Position where the ball finished. Fields are null when not known.","example":{"latitude":44.04825,"longitude":-121.35161,"altitude_meters":1104.1},"properties":{"latitude":{"description":"Latitude where the ball finished, in degrees.","example":44.04825,"type":["number","null"]},"longitude":{"description":"Longitude where the ball finished, in degrees.","example":-121.35161,"type":["number","null"]},"altitude_meters":{"description":"Altitude where the ball finished, in meters.","example":1104.1,"type":["number","null"]}},"required":["latitude","longitude","altitude_meters"],"type":"object"},"ShotLie":{"description":"The lie the shot was played from.","example":{"type":"fairway","quality":"good","description":"Ball sitting cleanly in the fairway."},"properties":{"type":{"description":"Where the ball lay. Free text, not a fixed list.","example":"fairway","type":["string","null"]},"quality":{"description":"How good the lie was. Free text, not a fixed list.","example":"good","type":["string","null"]},"description":{"description":"More detail about the lie.","example":"Ball sitting cleanly in the fairway.","type":["string","null"]}},"required":["type","quality","description"],"type":"object"},"ShotList":{"description":"A page of results. Use next_cursor to get the next page.","example":{"object":"list","data":[{"object":"shot","id":"02cd3b84-a264-40b0-9af7-466c3874c512","round_id":"498fe851-9796-4fcb-abbe-95e3a176e444","hole_number":7,"sequence_number":2,"played_at":"2026-06-14T16:35:48.000Z","club":"7_iron","is_provisional":false,"penalty_strokes":0,"penalty_type":null,"start":{"latitude":44.04712,"longitude":-121.35218,"altitude_meters":1102.4},"end":{"latitude":44.04825,"longitude":-121.35161,"altitude_meters":1104.1},"lie":{"type":"fairway","quality":"good","description":"Ball sitting cleanly in the fairway."},"planned":{"distance_yards":150,"curve":"draw","trajectory":"mid","shot_type":"approach","target_latitude":44.04829,"target_longitude":-121.35166,"notes":"Aim at the center of the green."},"result":{"distance_yards":146,"curve":"straight","trajectory":"low","contact":"thin","quality":"missed green"},"notes":"Wind into the face.","confidence":0.82,"created_at":"2026-06-14T19:34:56.000Z","updated_at":"2026-06-14T19:34:56.000Z"}],"has_more":true,"next_cursor":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTY6MzU6NDguMDAwMDAwWiIsIjAyY2QzYjg0LWEyNjQtNDBiMC05YWY3LTQ2NmMzODc0YzUxMiJdfQ"},"properties":{"object":{"description":"Always \"list\".","enum":["list"],"example":"list","type":"string"},"data":{"description":"The items on this page, in list order.","items":{"$ref":"#/components/schemas/Shot"},"type":"array"},"has_more":{"description":"True when there are more items after this page.","example":true,"type":"boolean"},"next_cursor":{"description":"Pass as cursor to get the next page. Null on the last page.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTY6MzU6NDguMDAwMDAwWiIsIjAyY2QzYjg0LWEyNjQtNDBiMC05YWY3LTQ2NmMzODc0YzUxMiJdfQ","type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"type":"object"},"ShotPlan":{"description":"What the shot was meant to do.","example":{"distance_yards":150,"curve":"draw","trajectory":"mid","shot_type":"approach","target_latitude":44.04829,"target_longitude":-121.35166,"notes":"Aim at the center of the green."},"properties":{"distance_yards":{"description":"Intended distance, in yards.","example":150,"type":["number","null"]},"curve":{"description":"Intended curve. Free text, not a fixed list.","example":"draw","type":["string","null"]},"trajectory":{"description":"Intended trajectory. Free text, not a fixed list.","example":"mid","type":["string","null"]},"shot_type":{"description":"Kind of shot. Free text, not a fixed list.","example":"approach","type":["string","null"]},"target_latitude":{"description":"Latitude of the target, in degrees.","example":44.04829,"type":["number","null"]},"target_longitude":{"description":"Longitude of the target, in degrees.","example":-121.35166,"type":["number","null"]},"notes":{"description":"Notes about the plan.","example":"Aim at the center of the green.","type":["string","null"]}},"required":["distance_yards","curve","trajectory","shot_type","target_latitude","target_longitude","notes"],"type":"object"},"ShotResult":{"description":"What the shot did.","example":{"distance_yards":146,"curve":"straight","trajectory":"low","contact":"thin","quality":"missed green"},"properties":{"distance_yards":{"description":"Distance the ball traveled, in yards.","example":146,"type":["number","null"]},"curve":{"description":"Actual curve. Free text, not a fixed list.","example":"straight","type":["string","null"]},"trajectory":{"description":"Actual trajectory. Free text, not a fixed list.","example":"low","type":["string","null"]},"contact":{"description":"Quality of contact. Free text, not a fixed list.","example":"thin","type":["string","null"]},"quality":{"description":"Overall outcome. Free text, not a fixed list.","example":"missed green","type":["string","null"]}},"required":["distance_yards","curve","trajectory","contact","quality"],"type":"object"},"ShotStart":{"description":"Position where the shot was played from. Fields are null when not known.","example":{"latitude":44.04712,"longitude":-121.35218,"altitude_meters":1102.4},"properties":{"latitude":{"description":"Latitude where the shot was played from, in degrees.","example":44.04712,"type":["number","null"]},"longitude":{"description":"Longitude where the shot was played from, in degrees.","example":-121.35218,"type":["number","null"]},"altitude_meters":{"description":"Altitude where the shot was played from, in meters.","example":1102.4,"type":["number","null"]}},"required":["latitude","longitude","altitude_meters"],"type":"object"}},"securitySchemes":{"ApiKey":{"description":"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.","scheme":"bearer","type":"http"}}},"externalDocs":{"description":"Guides, reference, and error codes","url":"https://developers.newjune.co"},"info":{"contact":{"name":"New June support","url":"https://newjune.co/support"},"description":"Read your own New June golf data: rounds, hole scores, shots, reports, priorities, plans, evaluations, focus sets, and clubs. The API is read only.\n\nAuthenticate with a personal API key sent as \"Authorization: Bearer <key>\". Create keys on the Developer page at https://newjune.co/golf/developer; each key has scopes, and every operation lists the scope it needs (security and x-required-scope).\n\nResponses are JSON with snake_case fields, explicit nulls, and ISO 8601 UTC timestamps. Lists use cursor pagination. Every response carries a Request-Id header, and responses to checked keys carry RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset.\n\nA path outside the documented ones returns 404 with code route_not_found. Methods other than GET, HEAD, and OPTIONS return 405 with code method_not_allowed and an Allow header. OPTIONS returns 204 with Allow.","title":"New June Data API","version":"1.0.0-preview"},"openapi":"3.1.0","paths":{"/v1/clubs":{"get":{"description":"The clubs in your bag, in bag order: position ascending, then id. Needs a key with the clubs:read scope.","operationId":"listClubs","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only clubs 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.","in":"query","name":"updated_after","required":false,"schema":{"description":"Only clubs 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.","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClubList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["clubs:read"]}],"summary":"List clubs","tags":["Clubs"],"x-required-scope":"clubs:read"}},"/v1/clubs/{id}":{"get":{"description":"One club by id. Needs a key with the clubs:read scope.","operationId":"getClub","parameters":[{"description":"The club's id.","in":"path","name":"id","required":true,"schema":{"description":"The club's id.","example":"a7d4a4dc-e38a-4f98-859d-322795119428","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Club"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such club.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["clubs:read"]}],"summary":"Get a club","tags":["Clubs"],"x-required-scope":"clubs:read"}},"/v1/evaluations":{"get":{"description":"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.","operationId":"listEvaluations","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only evaluations of this plan.","in":"query","name":"plan_id","required":false,"schema":{"description":"Only evaluations of this plan.","example":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","format":"uuid","type":"string"}},{"description":"Only evaluations of this round.","in":"query","name":"round_id","required":false,"schema":{"description":"Only evaluations of this round.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"List evaluations","tags":["Evaluations"],"x-required-scope":"plans:read"}},"/v1/evaluations/{id}":{"get":{"description":"One evaluation by id. Needs a key with the plans:read scope.","operationId":"getEvaluation","parameters":[{"description":"The evaluation's id.","in":"path","name":"id","required":true,"schema":{"description":"The evaluation's id.","example":"bfedb770-42df-40b6-b523-812e260ec713","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evaluation"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such evaluation.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"Get an evaluation","tags":["Evaluations"],"x-required-scope":"plans:read"}},"/v1/focus_sets":{"get":{"description":"Your focus sets, newest first: ordered by effective_from descending, then id descending. Needs a key with the plans:read scope.","operationId":"listFocusSets","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FocusSetList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"List focus sets","tags":["Focus sets"],"x-required-scope":"plans:read"}},"/v1/focus_sets/current":{"get":{"description":"The focus set in use now. Returns 404 with code no_current_focus_set when there is none. Needs a key with the plans:read scope.","operationId":"getCurrentFocusSet","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FocusSet"}}},"description":"The current focus set.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"no_current_focus_set":{"summary":"There is no current focus set for this account.","value":{"error":{"type":"not_found_error","code":"no_current_focus_set","message":"There is no current focus set for this account.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#no_current_focus_set"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no current focus set for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"Get the current focus set","tags":["Focus sets"],"x-required-scope":"plans:read"}},"/v1/focus_sets/{id}":{"get":{"description":"One focus set by id. Needs a key with the plans:read scope.","operationId":"getFocusSet","parameters":[{"description":"The focus set's id.","in":"path","name":"id","required":true,"schema":{"description":"The focus set's id.","example":"bc389c05-89d8-4afb-bd9d-f3979b56236e","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FocusSet"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such focus set.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"Get a focus set","tags":["Focus sets"],"x-required-scope":"plans:read"}},"/v1/hole_scores":{"get":{"description":"The scores you entered, ordered by hole_number ascending, then id ascending. Pass round_id for one round, updated_after for scores changed since a time, or both; at least one is required. Scores from test rounds are not included. Needs a key with the rounds:read scope.","operationId":"listHoleScores","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only hole scores from this round. Either round_id or updated_after is required.","in":"query","name":"round_id","required":false,"schema":{"description":"Only hole scores from this round. Either round_id or updated_after is required.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"}},{"description":"Only hole scores 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. Either round_id or updated_after is required. Without round_id, scores from every round come back in the same order (hole_number, then id).","in":"query","name":"updated_after","required":false,"schema":{"description":"Only hole scores 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. Either round_id or updated_after is required. Without round_id, scores from every round come back in the same order (hole_number, then id).","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoleScoreList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["rounds:read"]}],"summary":"List hole scores","tags":["Hole scores"],"x-required-scope":"rounds:read"}},"/v1/hole_scores/{id}":{"get":{"description":"One hole score by id. Needs a key with the rounds:read scope.","operationId":"getHoleScore","parameters":[{"description":"The hole score's id.","in":"path","name":"id","required":true,"schema":{"description":"The hole score's id.","example":"aa311280-73b2-4a0b-8458-ced896a87627","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoleScore"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such hole score.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["rounds:read"]}],"summary":"Get a hole score","tags":["Hole scores"],"x-required-scope":"rounds:read"}},"/v1/me":{"get":{"description":"The key used for this request, its scopes, and its limits. Works with any valid key.","operationId":"getMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyContext"}}},"description":"The key context.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":[]}],"summary":"Get the current API key","tags":["Account"]}},"/v1/plans":{"get":{"description":"Your practice plans with their steps, newest first: ordered by created_at descending, then id descending. Needs a key with the plans:read scope.","operationId":"listPlans","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only plans with this status.","in":"query","name":"status","required":false,"schema":{"description":"Only plans with this status.","enum":["candidate","active","graduated","cancelled"],"example":"candidate","type":"string"}},{"description":"Only plans for this priority.","in":"query","name":"priority_id","required":false,"schema":{"description":"Only plans for this priority.","example":"ecbf0900-77cd-472a-b692-76faa0b4f462","format":"uuid","type":"string"}},{"description":"Only plans 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. Marking a step done or open does not change it, so compare steps to catch step progress.","in":"query","name":"updated_after","required":false,"schema":{"description":"Only plans 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. Marking a step done or open does not change it, so compare steps to catch step progress.","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"List plans","tags":["Plans"],"x-required-scope":"plans:read"}},"/v1/plans/{id}":{"get":{"description":"One plan by id, with its steps. Needs a key with the plans:read scope.","operationId":"getPlan","parameters":[{"description":"The plan's id.","in":"path","name":"id","required":true,"schema":{"description":"The plan's id.","example":"245f4a1a-cbd7-4444-9d09-4752871cfeb6","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such plan.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"Get a plan","tags":["Plans"],"x-required-scope":"plans:read"}},"/v1/priorities":{"get":{"description":"Your priorities, newest first: ordered by created_at descending, then id descending. Needs a key with the plans:read scope.","operationId":"listPriorities","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only priorities with this status.","in":"query","name":"status","required":false,"schema":{"description":"Only priorities with this status.","enum":["active","inactive"],"example":"active","type":"string"}},{"description":"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.","in":"query","name":"updated_after","required":false,"schema":{"description":"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.","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"List priorities","tags":["Priorities"],"x-required-scope":"plans:read"}},"/v1/priorities/{id}":{"get":{"description":"One priority by id. Needs a key with the plans:read scope.","operationId":"getPriority","parameters":[{"description":"The priority's id.","in":"path","name":"id","required":true,"schema":{"description":"The priority's id.","example":"ecbf0900-77cd-472a-b692-76faa0b4f462","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Priority"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["plans:read"]}],"summary":"Get a priority","tags":["Priorities"],"x-required-scope":"plans:read"}},"/v1/reports":{"get":{"description":"The analysis of each of your rounds, newest first: ordered by created_at descending, then id descending. One report per round. Needs a key with the reports:read scope.","operationId":"listReports","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only the report for this round.","in":"query","name":"round_id","required":false,"schema":{"description":"Only the report for this round.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["reports:read"]}],"summary":"List reports","tags":["Reports"],"x-required-scope":"reports:read"}},"/v1/reports/{id}":{"get":{"description":"One report by id. An older version of a round report is not found. Needs a key with the reports:read scope.","operationId":"getReport","parameters":[{"description":"The report's id.","in":"path","name":"id","required":true,"schema":{"description":"The report's id.","example":"791a868a-8cfc-48db-8690-70421a68ee7c","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such report.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["reports:read"]}],"summary":"Get a report","tags":["Reports"],"x-required-scope":"reports:read"}},"/v1/rounds":{"get":{"description":"Your rounds, newest first: ordered by started_at descending, then id descending. Test rounds are not included. With updated_after, only rounds whose own updated_at is later; hole score changes do not move a round's updated_at. Needs a key with the rounds:read scope.","operationId":"listRounds","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only rounds with this status.","in":"query","name":"status","required":false,"schema":{"description":"Only rounds with this status.","enum":["scheduled","in_progress","paused","completed","cancelled"],"example":"scheduled","type":"string"}},{"description":"Only rounds that started at or after this time (ISO 8601, with Z or an offset).","in":"query","name":"started_after","required":false,"schema":{"description":"Only rounds that started at or after this time (ISO 8601, with Z or an offset).","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}},{"description":"Only rounds that started before this time (ISO 8601, with Z or an offset).","in":"query","name":"started_before","required":false,"schema":{"description":"Only rounds that started before this time (ISO 8601, with Z or an offset).","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}},{"description":"Only rounds 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. A round's updated_at does not move when its hole scores change, so sync hole scores with their own updated_after filter.","in":"query","name":"updated_after","required":false,"schema":{"description":"Only rounds 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. A round's updated_at does not move when its hole scores change, so sync hole scores with their own updated_after filter.","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoundList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["rounds:read"]}],"summary":"List rounds","tags":["Rounds"],"x-required-scope":"rounds:read"}},"/v1/rounds/{id}":{"get":{"description":"One of your rounds by id. Needs a key with the rounds:read scope.","operationId":"getRound","parameters":[{"description":"The round's id.","in":"path","name":"id","required":true,"schema":{"description":"The round's id.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Round"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such round.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["rounds:read"]}],"summary":"Get a round","tags":["Rounds"],"x-required-scope":"rounds:read"}},"/v1/shots":{"get":{"description":"Your shots. Without round_id: newest first, ordered by played_at descending, then id descending. With round_id: in playing order, by hole_number, sequence_number, then id, all ascending. Shots from test rounds are not included. Needs a key with the rounds:read scope.","operationId":"listShots","parameters":[{"description":"How many items to return, 1 to 100. Defaults to 25.","in":"query","name":"limit","required":false,"schema":{"default":25,"description":"How many items to return, 1 to 100. Defaults to 25.","example":25,"maximum":100,"minimum":1,"type":"integer"}},{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","in":"query","name":"cursor","required":false,"schema":{"description":"The next_cursor value from the previous page, passed back unchanged with the same filters.","example":"eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ","type":"string"}},{"description":"Only shots from this round.","in":"query","name":"round_id","required":false,"schema":{"description":"Only shots from this round.","example":"498fe851-9796-4fcb-abbe-95e3a176e444","format":"uuid","type":"string"}},{"description":"Only shots on this hole. Requires round_id.","in":"query","name":"hole_number","required":false,"schema":{"description":"Only shots on this hole. Requires round_id.","example":7,"maximum":36,"minimum":1,"type":"integer"}},{"description":"Only shots played with this club.","in":"query","name":"club","required":false,"schema":{"description":"Only shots played with this club.","enum":["driver","3_wood","4_wood","5_wood","7_wood","9_wood","2_hybrid","3_hybrid","4_hybrid","5_hybrid","6_hybrid","7_hybrid","9_hybrid","1_iron","2_iron","3_iron","4_iron","5_iron","6_iron","7_iron","8_iron","9_iron","pitching_wedge","gap_wedge","sand_wedge","lob_wedge","46_wedge","48_wedge","50_wedge","52_wedge","54_wedge","56_wedge","58_wedge","60_wedge","62_wedge","64_wedge","putter"],"example":"driver","type":"string"}},{"description":"Only shots played at or after this time (ISO 8601, with Z or an offset).","in":"query","name":"played_after","required":false,"schema":{"description":"Only shots played at or after this time (ISO 8601, with Z or an offset).","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}},{"description":"Only shots played before this time (ISO 8601, with Z or an offset).","in":"query","name":"played_before","required":false,"schema":{"description":"Only shots played before this time (ISO 8601, with Z or an offset).","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}},{"description":"Only shots 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.","in":"query","name":"updated_after","required":false,"schema":{"description":"Only shots 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.","example":"2026-06-01T00:00:00Z","format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShotList"}}},"description":"A page of results.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"400":{"content":{"application/json":{"examples":{"invalid_cursor":{"summary":"The cursor is not valid. Use the next_cursor value from a previous response.","value":{"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"}}},"invalid_query_parameter":{"summary":"A query parameter has an invalid value.","value":{"error":{"type":"invalid_request_error","code":"invalid_query_parameter","message":"The value for \"limit\" is not valid.","param":"limit","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_query_parameter"}}},"unknown_query_parameter":{"summary":"This endpoint does not accept that query parameter.","value":{"error":{"type":"invalid_request_error","code":"unknown_query_parameter","message":"Unknown query parameter \"page\".","param":"page","request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#unknown_query_parameter"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A query parameter is unknown, missing, or has an invalid value.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["rounds:read"]}],"summary":"List shots","tags":["Shots"],"x-required-scope":"rounds:read"}},"/v1/shots/{id}":{"get":{"description":"One shot by id. Needs a key with the rounds:read scope.","operationId":"getShot","parameters":[{"description":"The shot's id.","in":"path","name":"id","required":true,"schema":{"description":"The shot's id.","example":"02cd3b84-a264-40b0-9af7-466c3874c512","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Shot"}}},"description":"The item.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"401":{"content":{"application/json":{"examples":{"api_key_expired":{"summary":"This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"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"}}},"api_key_revoked":{"summary":"This API key has been revoked. Create a new key on the Developer page at newjune.co/golf/developer.","value":{"error":{"type":"authentication_error","code":"api_key_revoked","message":"This API key has been revoked. 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_revoked"}}},"invalid_api_key":{"summary":"The API key is not valid.","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is not valid.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#invalid_api_key"}}},"missing_api_key":{"summary":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","value":{"error":{"type":"authentication_error","code":"missing_api_key","message":"No API key was provided. Send it as \"Authorization: Bearer <key>\".","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#missing_api_key"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API key is missing, not valid, revoked, or expired.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"403":{"content":{"application/json":{"examples":{"account_suspended":{"summary":"API access is suspended for this account.","value":{"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"}}},"insufficient_scope":{"summary":"This API key does not have the scope this endpoint needs.","value":{"error":{"type":"permission_error","code":"insufficient_scope","message":"This API key does not have the scope this endpoint needs.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#insufficient_scope"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the scope this endpoint needs, or the account is suspended.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"404":{"content":{"application/json":{"examples":{"resource_not_found":{"summary":"No such resource.","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No such shot.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#resource_not_found"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such resource for this account.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"429":{"content":{"application/json":{"examples":{"daily_limit_exceeded":{"summary":"This account has reached its daily request limit. It resets at midnight UTC.","value":{"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"}}},"rate_limit_exceeded":{"summary":"Too many requests. Wait until the time in Retry-After, then try again.","value":{"error":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"Too many requests. Wait until the time in Retry-After, then try again.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#rate_limit_exceeded"}}},"too_many_failed_attempts":{"summary":"Too many requests with a missing or invalid API key. Try again shortly.","value":{"error":{"type":"rate_limit_error","code":"too_many_failed_attempts","message":"Too many requests with a missing or invalid API key. Try again shortly.","param":null,"request_id":"req_5f0c6e2a9b1d4c7e8f3a2b10","doc_url":"https://developers.newjune.co/errors#too_many_failed_attempts"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests. See the RateLimit and Retry-After headers.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","required":true,"schema":{"description":"Seconds to wait before trying again.","example":42,"type":"integer"}}}},"500":{"content":{"application/json":{"examples":{"internal_error":{"summary":"Something went wrong on our side. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Something went wrong on our side.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}},"503":{"content":{"application/json":{"examples":{"service_unavailable":{"summary":"The API is temporarily unavailable. Try again later.","value":{"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"}}}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The API is temporarily unavailable.","headers":{"RateLimit-Limit":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","required":false,"schema":{"description":"The request limit that applies: the key's per-minute limit, or on a 429 the limit that was reached. Sent once the key has been checked.","example":60,"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Sent once the key has been checked.","required":false,"schema":{"description":"Requests left in the current window. Sent once the key has been checked.","example":57,"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets. Sent once the key has been checked.","required":false,"schema":{"description":"Seconds until the current window resets. Sent once the key has been checked.","example":42,"type":"integer"}},"Request-Id":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","required":true,"schema":{"description":"Id of this request (req_ followed by 24 hex characters). Include it when you contact support.","example":"req_5f0c6e2a9b1d4c7e8f3a2b10","type":"string"}}}}},"security":[{"ApiKey":["rounds:read"]}],"summary":"Get a shot","tags":["Shots"],"x-required-scope":"rounds:read"}}},"servers":[{"description":"Production","url":"https://data.newjune.co"}],"tags":[{"description":"The key making the request. Use it to check that a key works, which scopes it has, and the limits that apply to it. It returns no golf data.","name":"Account"},{"description":"A round is the root of your data. Hole scores, shots, reports, and evaluations point back to it with round_id.","name":"Rounds"},{"description":"Each hole score belongs to one round. List them for one round with round_id, or across rounds with updated_after.","name":"Hole scores"},{"description":"Each shot belongs to one round and one hole. List them across every round or for a single round in playing order.","name":"Shots"},{"description":"A report is the analysis New June produces after a round. It names the areas to work on, which feed your priorities.","name":"Reports"},{"description":"A priority is a lasting theme across reports. Plans point to a priority with priority_id.","name":"Priorities"},{"description":"A plan works on one priority. Its steps are practice milestones; only its criterion decides when the plan graduates.","name":"Plans"},{"description":"After each round, New June evaluates every active plan against that round. Evaluations link a plan_id to a round_id.","name":"Evaluations"},{"description":"A focus set is the lineup of plans in use for a period: one primary plan and up to two secondary plans.","name":"Focus sets"},{"description":"Your bag, in bag order, with your typical distances for each club.","name":"Clubs"}]}