{"openapi":"3.1.0","info":{"title":"OpenGolfAPI","version":"3.6.1","description":"Golf's open data standard — one callable layer for all 16,822 US courses, free and ODbL-licensed: facts, full scorecards, tee ratings & slopes, live weather, 30-year climate, daylight & tee-time windows, difficulty, nearby, pricing & booking, computed insights. Contribute through the open OpenShot & Moments standards — shots from any launch monitor, moments from any sensor or wearable — and read your own data back. A trusted open commons — like Wikipedia for golf: open data (ODbL), open standards (CC0), free to read and build on, free regardless. The brainchild of Chicago tech entrepreneur Julian Pretto. Spin up high-quality, data-driven golf apps — including social — fast.","license":{"name":"ODbL-1.0","url":"https://opendatacommons.org/licenses/odbl/1-0/"},"contact":{"name":"OpenGolfAPI","email":"info@opengolfapi.org","url":"https://opengolfapi.org"}},"servers":[{"url":"https://api.opengolfapi.org","description":"Production"}],"tags":[{"name":"courses","description":"Free course data — no key required"},{"name":"scoring","description":"OpenMatch — score any game (gross) free & keyless"},{"name":"competitions","description":"Contests — wrap OpenMatch in a Competition: attempts in, a free gross Result out"},{"name":"organizations","description":"Organizations — public directory of verified entities (courses, clubs, sponsors, leagues, charities)"},{"name":"assets","description":"Assets — the mint: trophies, badges, coupons, memberships, collectibles + the trophy case"},{"name":"contribute","description":"Send & read your own shots/moments — free API key required (X-API-Key or Bearer)"},{"name":"developer","description":"Identity-backed dev keys — no OpenGolf ID, no key"},{"name":"auth","description":"Sign in with OpenGolf (OIDC) — email a code, get a portable golfer identity"},{"name":"meta","description":"Service info & schemas"}],"security":[{},{"apiKeyHeader":[]},{"bearerAuth":[]}],"components":{"securitySchemes":{"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Free key from opengolfapi.org/developer"},"bearerAuth":{"type":"http","scheme":"bearer","description":"Same key as Authorization: Bearer ogapi_…"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}}},"CourseCompact":{"type":"object","properties":{"id":{"type":"string"},"course_name":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"course_type":{"type":"string"},"par_total":{"type":"integer"},"total_yardage":{"type":"integer"},"distance_mi":{"type":"number","description":"present only on location (lat/lng) searches"}}},"CourseList":{"type":"object","properties":{"courses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"course_name":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"course_type":{"type":"string"},"par_total":{"type":"integer"},"total_yardage":{"type":"integer"},"distance_mi":{"type":"number","description":"present only on location (lat/lng) searches"}}}},"total":{"type":"integer"}}},"CourseDetail":{"type":"object","description":"Full free course detail.","properties":{"id":{"type":"string"},"course_name":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"par_total":{"type":"integer"},"phone":{"type":"string"},"website":{"type":"string"},"architect":{"type":"string"},"year_built":{"type":"integer"},"tees":{"type":"array","items":{"type":"object"}},"holes":{"type":"array","items":{"type":"object"}},"climate":{"type":"object"},"nearby":{"type":"object"},"pricing":{"type":"object"},"insights":{"type":"object"}}},"Shot":{"type":"object","required":["api_version","ball"],"description":"OpenShot — see GET /api/v1/openshot/fields for the full catalog. Superset of GSPro OpenConnect.","properties":{"api_version":{"type":"string","examples":["0"]},"device":{"type":"object","properties":{"model":{"type":"string","examples":["garmin_r10"]},"id":{"type":"string"},"shot_number":{"type":"integer"}}},"ball":{"type":"object","required":["speed"],"properties":{"speed":{"type":"number","description":"mph"},"launch_angle":{"type":"number","description":"deg (VLA)"},"azimuth":{"type":"number","description":"deg, horizontal (HLA), +=right"},"back_spin":{"type":"number","description":"rpm"},"side_spin":{"type":"number","description":"rpm, +=right"},"carry":{"type":"number","description":"yds"},"total":{"type":"number","description":"yds total distance"}}},"club":{"type":"object","properties":{"selected":{"type":"string","examples":["7i"]},"speed":{"type":"number"}}},"context":{"type":"object","properties":{"player_id":{"type":"string","description":"pseudonymous"},"session_id":{"type":"string"},"course_id":{"type":"string"},"hole":{"type":"integer"}}}}},"Moment":{"type":"object","required":["moment_type"],"properties":{"moment_type":{"type":"string","enum":["shot","breadcrumb","pin","condition","tee","green","swing","presence","motion","putt","biometric","club","score"]},"lat":{"type":"number"},"lng":{"type":"number"},"accuracy_m":{"type":"number"},"recorded_at":{"type":"string","format":"date-time"},"course_id":{"type":"string"},"hole":{"type":"integer"},"player_id":{"type":"string"},"session_id":{"type":"string"},"payload":{"type":"object"},"consent_scope":{"type":"string"},"dedup_key":{"type":"string","description":"idempotency key"}}},"IngestResult":{"type":"object","properties":{"ok":{"type":"boolean"},"ingested":{"type":"integer"},"ids":{"type":"array","items":{"type":"string"}}}}}},"paths":{"/":{"get":{"tags":["meta"],"summary":"Service info & endpoint list","security":[{}],"responses":{"200":{"description":"OK"}}}},"/api/v1/ontology":{"get":{"tags":["meta"],"summary":"THE ONTOLOGY — all 42 moment types, payload schemas, broadcast kinds, icon vocabulary (free, CC0)","security":[{}],"responses":{"200":{"description":"Ontology JSON"}}}},"/api/v1/model":{"get":{"tags":["meta"],"summary":"THE DOMAIN MODEL — canonical entity definitions (course/hole/player/session/competition/event), player_id rules, score-pipeline router, error contract","security":[{}],"responses":{"200":{"description":"Model JSON"}}}},"/api/v1/stats":{"get":{"tags":["meta"],"summary":"Live dataset stats (course counts)","security":[{}],"responses":{"200":{"description":"Stats"}}}},"/oauth/send-verify":{"post":{"tags":["identity"],"summary":"Golfer sign-in: email a magic link + 6-digit code (the /id flow)","security":[{}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string"},"dry":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Sent"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/mint":{"post":{"tags":["identity"],"summary":"Mint a signed, expiring group-join token (foursome/league invite; max_uses caps size)","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"type":"string"},"event_id":{"type":"string"},"max_uses":{"type":"integer"},"expires_in":{"type":"integer"}}}}}},"responses":{"200":{"description":"{ token, url, qr }"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/redeem":{"post":{"tags":["identity"],"summary":"Redeem a join token — links the redeemer into the session/event","security":[{}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string"},"player":{"type":"object"}}}}}},"responses":{"200":{"description":"Joined"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/login":{"post":{"tags":["identity"],"summary":"Sign in with OpenGolf (hosted): start/complete the verified-code flow","security":[{}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"code":{"type":"string"},"ref":{"type":"string"}}}}}},"responses":{"200":{"description":"Session token / code sent"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/profile/{id}":{"get":{"tags":["identity"],"summary":"Read a profile (keyed — identity-scoped)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Profile"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/profile":{"patch":{"tags":["identity"],"summary":"Edit YOUR profile (name/avatar/links; handicap is engine-derived, not editable)","responses":{"200":{"description":"Updated"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/beacon":{"post":{"tags":["presence"],"summary":"Set a presence beacon (opt-in \"I am at the course\")","responses":{"200":{"description":"Beacon set"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/join/beacons":{"get":{"tags":["presence"],"summary":"Find active beacons near a course (consented presence only)","responses":{"200":{"description":"Beacons"}}}},"/api/v1/sessions/{id}/scorecard":{"get":{"tags":["sessions"],"summary":"Fold a session's score moments into a scorecard (participant or compute-entitled)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Scorecard"},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sessions/{id}/leaderboard":{"get":{"tags":["sessions"],"summary":"Gross or net leaderboard for a session (?format=gross|net)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Leaderboard"},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sessions/{id}/synthesize":{"get":{"tags":["sessions"],"summary":"live_state — composed realtime view (?include=leaderboard,sidegames,presence,pace,highlights)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Composed live state"},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sessions/{id}/feed":{"get":{"tags":["sessions"],"summary":"OpenBroadcast feed — ONE typed read: broadcast-worthy items, ascending (recorded_at, seq), template narration (60/80 caps), money only when settled","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","schema":{"type":"string"}},{"name":"kinds","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Feed items + next_since cursor"},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events":{"post":{"tags":["events"],"summary":"Create an OpenEvent — multi-round tournament (parent of N sessions)","responses":{"200":{"description":"Event"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events/{id}":{"get":{"tags":["events"],"summary":"Event config + status","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Event"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events/{id}/leaderboard":{"get":{"tags":["events"],"summary":"Rolled gross+net leaderboard across all rounds, by division","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Leaderboard"}}}},"/api/v1/awards/players/{id}":{"get":{"tags":["awards"],"summary":"A player's trophy case (derived + organizer awards + course passport). id = ogid_…","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Awards"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/players/{id}/handicap":{"get":{"tags":["players"],"summary":"OpenIndex (beta) — estimated handicap from notarized rounds (self-sovereign: your own is free)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Handicap + provisional flags"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/webhooks":{"post":{"tags":["webhooks"],"summary":"Register an https endpoint for your domain events (HMAC-signed: X-OG-Signature = hex sha256 of raw body)","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"secret":{"type":"string"},"filters":{"type":"object"}}}}}},"responses":{"200":{"description":"Subscription"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["webhooks"],"summary":"List your active subscriptions","responses":{"200":{"description":"Subscriptions"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/webhooks/{id}":{"delete":{"tags":["webhooks"],"summary":"Deactivate a subscription (audit row kept)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deactivated"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/features":{"get":{"tags":["spatial"],"summary":"Course features (greens/bunkers/water polygons). Free = coarse OSM; precise detected layer is gated","parameters":[{"name":"course","in":"query","required":true,"schema":{"type":"string"}},{"name":"hole","in":"query","schema":{"type":"integer"}},{"name":"type","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"GeoJSON features + place_id/sub_unit anchors"}}}},"/api/v1/features/nearest":{"get":{"tags":["spatial"],"summary":"K nearest features to a point (rangefinder step 1)","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number"}},{"name":"type","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Features + distance_m"}}}},"/api/v1/features/{id}/bearing":{"get":{"tags":["spatial"],"summary":"Compass bearing + distance from a point to a feature (rangefinder step 2)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"lat","in":"query","required":true,"schema":{"type":"number"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"bearing_deg + distance_m"}}}},"/api/v1/features/containing":{"get":{"tags":["spatial"],"summary":"Which feature polygons contain a point (geofence / am I in a bunker)","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number"}},{"name":"course","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Containing features"}}}},"/api/v1/stream/replay":{"get":{"tags":["events-bus"],"summary":"Replay your domain events after a cursor (owner-scoped; seq cursor)","responses":{"200":{"description":"Events"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/openapi.json":{"get":{"tags":["meta"],"summary":"This OpenAPI spec","security":[{}],"responses":{"200":{"description":"OK"}}}},"/llms.txt":{"get":{"tags":["meta"],"summary":"AI-facing usage guide (llmstxt.org)","security":[{}],"responses":{"200":{"description":"OK"}}}},"/adapters/langchain.json":{"get":{"tags":["meta"],"summary":"LangChain tool manifest (generated from this spec)","security":[{}],"responses":{"200":{"description":"OK"}}}},"/adapters/zapier.json":{"get":{"tags":["meta"],"summary":"Zapier app definition (generated from this spec + events)","security":[{}],"responses":{"200":{"description":"OK"}}}},"/asyncapi.json":{"get":{"tags":["meta"],"summary":"AsyncAPI 3.0 doc for the webhook event stream","security":[{}],"responses":{"200":{"description":"OK"}}}},"/api/v1/toolkit/validate":{"post":{"tags":["meta"],"summary":"Validate a payload against an inline JSON Schema","security":[{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"{ valid, errors }"}}}},"/api/v1/toolkit/badge":{"get":{"tags":["meta"],"summary":"\"Built on OpenGolf\" SVG badge","security":[{}],"responses":{"200":{"description":"SVG"}}}},"/api/v1/toolkit/convert":{"post":{"tags":["meta"],"summary":"Scaffold an adapter from your app's endpoints","security":[{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"adapter scaffold + AI prompt"}}}},"/api/v1/toolkit/quickstart":{"get":{"tags":["meta"],"summary":"The all-in-one build recipe (identity→corpus→score→contribute→chain)","security":[{}],"responses":{"200":{"description":"ordered steps"}}}},"/api/v1/toolkit/playground":{"get":{"tags":["meta"],"summary":"Copy-paste recipes for the free surface","security":[{}],"responses":{"200":{"description":"OK"}}}},"/api/v1/toolkit/playground.html":{"get":{"tags":["meta"],"summary":"Interactive browser playground","security":[{}],"responses":{"200":{"description":"HTML"}}}},"/api/v1/toolkit/built-with":{"get":{"tags":["meta"],"summary":"The \"Built with OpenGolf\" showcase","security":[{}],"responses":{"200":{"description":"apps[]"}}},"post":{"tags":["contribute"],"summary":"Register your app in the showcase","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/health":{"get":{"tags":["meta"],"summary":"Health check","security":[{}],"responses":{"200":{"description":"OK"}}}},"/api/v1/openshot/fields":{"get":{"tags":["meta"],"summary":"OpenShot field catalog (what to send)","security":[{}],"responses":{"200":{"description":"Field catalog by group — all free"}}}},"/api/v1/moments/fields":{"get":{"tags":["meta"],"summary":"Moments field catalog (any sensor → one event)","security":[{}],"responses":{"200":{"description":"Canonical payload fields per moment_type"}}}},"/api/v1/compute":{"get":{"tags":["scoring"],"summary":"List scoring formats","security":[{}],"responses":{"200":{"description":"Engine spec: 16 formats; gross is free"}}}},"/api/v1/compute/plays_like":{"post":{"tags":["scoring"],"summary":"Effective distance (\"plays like\") — free & keyless","description":"THE canonical effective-distance kernel. Body: {yards, elevation_delta_ft?, wind:{speed_mph,direction_deg}?, shot_bearing_deg?, temp_f?, altitude_ft?} → {effective_yards, factors[]} — factors itemized (show your work). Live wind: GET /courses/{id}/conditions.","security":[{}],"responses":{"200":{"description":"effective_yards + itemized factors"},"400":{"description":"validation"}}}},"/api/v1/compute/{format}":{"post":{"tags":["scoring"],"summary":"Score a game (GROSS) — free & keyless","description":"Body: players[]+holes[] (stroke formats) or entries[] (shot formats). GROSS scoring, free & keyless. Send gross strokes.","security":[{}],"parameters":[{"name":"format","in":"path","required":true,"schema":{"type":"string"},"description":"stroke | stableford | match_play | skins | scramble | best_ball | nassau | ctp | longest_drive | wolf | …"}],"responses":{"200":{"description":"Standings"},"400":{"description":"Send gross strokes (net/handicap not accepted here)"},"413":{"description":"Free-tier request bound (players/holes per request)"}}}},"/api/v1/competitions":{"post":{"tags":["competitions"],"summary":"Create a competition (keyed)","description":"Body: {name, type: any OpenMatch format, course_id?, holes?: int[], format_config?, org_id?, starts_at?, ends_at?}. The Competition primitive — a contest wrapper over OpenMatch.","responses":{"200":{"description":"Competition created"},"400":{"description":"Unknown format or missing name"}}},"get":{"tags":["competitions"],"summary":"List competitions","security":[{}],"parameters":[{"name":"org","in":"query","schema":{"type":"string"}},{"name":"course","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Competitions"}}}},"/api/v1/competitions/{id}":{"get":{"tags":["competitions"],"summary":"Competition + live gross Result","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Metadata + standings (runs the format kernel on demand)"},"404":{"description":"Not found"}}}},"/api/v1/competitions/{id}/attempt":{"post":{"tags":["competitions"],"summary":"Record an Attempt (keyed)","description":"Body (stroke formats): {player_id, team_id?, hole, strokes, playing_handicap?}. Body (shot formats: ctp/longest_drive/…): {player_id, hole, value, fairway?}. Writes a score/side_game moment tagged with this competition.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Attempt recorded"},"409":{"description":"Competition finalized"}}}},"/api/v1/competitions/{id}/selected-ball":{"post":{"tags":["competitions"],"summary":"Record a SelectedBall for scramble (keyed)","description":"Body: {team_id, chosen_player_id, hole, lat?, lng?, attested_by?}. The SelectedBall primitive.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Selected ball recorded"}}}},"/api/v1/competitions/{id}/finalize":{"post":{"tags":["competitions"],"summary":"Finalize → the free gross Result (keyed)","description":"Runs the competition format kernel over all attempts, stores the Result, emits competition_finalized. Money-certified settlement stays the gated /sessions/{id}/settle.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Result"}}}},"/api/v1/competitions/{id}/supersede":{"post":{"tags":["competitions"],"summary":"Supersede a finalized Result (keyed)","description":"Correct a finalized Result WITHOUT editing it: creates a NEW immutable Result, points the old one forward, and moves the current pointer. Body: {reason?, result?}. Emits result.superseded. Financial-grade audit trail.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"superseded_result_id + current_result_id"},"409":{"description":"not finalized"}}}},"/api/v1/competitions/{id}/results":{"get":{"tags":["competitions"],"summary":"The immutable Result lineage (free)","security":[{}],"description":"Full oldest→current chain of Results with the current pointer. Corrections supersede, never edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"current_result_id + results[]"}}}},"/api/v1/orgs":{"get":{"tags":["organizations"],"summary":"Public directory of verified organizations","security":[{}],"parameters":[{"name":"type","in":"query","schema":{"type":"string"}},{"name":"parent","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Verified organizations"}}}},"/api/v1/orgs/{id}":{"get":{"tags":["organizations"],"summary":"A verified org public profile","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Organization"},"404":{"description":"Not found (or unverified)"}}}},"/api/v1/assets":{"get":{"tags":["assets"],"summary":"Trophy case — assets + legacy award trophies, unified","security":[{}],"parameters":[{"name":"owner","in":"query","required":true,"schema":{"type":"string"},"description":"OpenGolf ID or player_id"}],"responses":{"200":{"description":"Owned assets"}}}},"/api/v1/assets/mint":{"post":{"tags":["assets"],"summary":"Mint an Asset to an owner (scope assets:issue)","description":"Body: {owner, name, type?: trophy|coupon|membership|stamp|collectible|badge, description?, issuer_org?, image_url?, metadata?}. Idempotent via Idempotency-Key / dedup_key. Emits asset.issued.","responses":{"200":{"description":"Asset minted"},"403":{"description":"Missing scope assets:issue"}}}},"/api/v1/assets/{id}":{"get":{"tags":["assets"],"summary":"One asset","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Asset"},"404":{"description":"Not found"}}}},"/api/v1/assets/{id}/transfer":{"post":{"tags":["assets"],"summary":"Transfer an asset (lifecycle issued→transferred)","description":"Body: {to}. Scope assets:issue.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Transferred"},"409":{"description":"Illegal lifecycle transition"}}}},"/api/v1/assets/{id}/revoke":{"post":{"tags":["assets"],"summary":"Revoke an asset (lifecycle →revoked)","description":"Scope assets:issue.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Revoked"},"409":{"description":"Illegal lifecycle transition"}}}},"/api/v1/capabilities":{"get":{"tags":["meta"],"summary":"Generated map of the open platform (always current)","security":[{}],"responses":{"200":{"description":"Standards, formats, moment types, endpoints"}}}},"/api/v1/primitives":{"get":{"tags":["meta"],"summary":"The 15-primitive ontology (one vocabulary for the whole platform)","security":[{}],"responses":{"200":{"description":"Primitives + what each maps to"}}}},"/oauth/start":{"post":{"tags":["auth"],"summary":"Sign in with OpenGolf — email a 6-digit code","description":"Step 1 of OIDC sign-in. Body: {email, client_id}. The email IS the OpenGolf ID. No key needed.","security":[{}],"responses":{"200":{"description":"Code emailed"},"429":{"description":"Throttled"}}}},"/oauth/code":{"post":{"tags":["auth"],"summary":"Verify the code → short-lived auth code (PKCE S256)","description":"Step 2. Body: {email, otp, client_id, redirect_uri (https), scope, code_challenge}. Returns a redirect carrying ?code=.","security":[{}],"responses":{"200":{"description":"Auth code (in redirect)"},"401":{"description":"Invalid/expired code"}}}},"/oauth/token":{"post":{"tags":["auth"],"summary":"Exchange auth code → id_token + access_token","description":"Step 3. Body: {grant_type:authorization_code, code, redirect_uri, client_id, code_verifier}. Use access_token as X-OpenGolf-Token.","security":[{}],"responses":{"200":{"description":"Tokens"}}}},"/.well-known/openid-configuration":{"get":{"tags":["auth"],"summary":"OIDC discovery document","security":[{}],"responses":{"200":{"description":"OK"}}}},"/api/v1/developer/keys":{"post":{"tags":["developer"],"summary":"Mint a dev key bound to your OpenGolf ID","description":"No OpenGolf ID, no key. Sign in first (POST /oauth/start → /oauth/code → /oauth/token), then send the access_token as X-OpenGolf-Token + the matching email.","responses":{"200":{"description":"Key issued (shown once)"},"401":{"description":"Sign in with OpenGolf first"}}},"get":{"tags":["developer"],"summary":"List your keys (X-OpenGolf-Token)","responses":{"200":{"description":"Your key prefixes"}}}},"/api/v1/developer/keys/link":{"post":{"tags":["developer"],"summary":"Confirm your OpenGolf ID on an existing (legacy) key","description":"Auth: the key (Bearer/X-API-Key) + X-OpenGolf-Token. Verifies + keeps the key and its scopes.","responses":{"200":{"description":"Linked"}}}},"/api/v1/developer/apps":{"post":{"tags":["developer"],"summary":"Register an app/entity under your OpenGolf ID","description":"Auth: X-OpenGolf-Token. Body: {name, type?: app|company|course|organizer, redirect_uris?: string[]}. The registered app is the Organization primitive — it gets a trusted name+logo on the sign-in consent screen once verified.","responses":{"200":{"description":"App registered"},"401":{"description":"Sign in with OpenGolf first"}}},"get":{"tags":["developer"],"summary":"List your registered apps/entities","description":"Auth: X-OpenGolf-Token.","responses":{"200":{"description":"Your apps"}}}},"/api/v1/courses/search":{"get":{"tags":["courses"],"summary":"Search courses by name, state, or location","security":[{}],"parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Course name search"},{"name":"state","in":"query","schema":{"type":"string"},"description":"2-letter US state code"},{"name":"lat","in":"query","schema":{"type":"number"},"description":"Latitude (with lng) for radius search"},{"name":"lng","in":"query","schema":{"type":"number"},"description":"Longitude (with lat)"},{"name":"radius_mi","in":"query","schema":{"type":"number","default":25},"description":"Search radius in miles"},{"name":"type","in":"query","schema":{"type":"string"},"description":"Course type filter"},{"name":"limit","in":"query","schema":{"type":"integer","default":25}},{"name":"offset","in":"query","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Matching courses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseList"}}}}}}},"/api/v1/courses/state/{code}":{"get":{"tags":["courses"],"summary":"All courses in a US state","security":[{}],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"},"description":"2-letter state code"},{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Courses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseList"}}}}}}},"/api/v1/courses/architect/{name}":{"get":{"tags":["courses"],"summary":"Courses by architect (fuzzy)","security":[{}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Courses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseList"}}}}}}},"/api/v1/courses/bulk":{"get":{"tags":["courses"],"summary":"Batch fetch courses by id","security":[{}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string"},"description":"Comma-separated ids (max 100)"}],"responses":{"200":{"description":"Courses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseList"}}}}}}},"/api/v1/courses/{id}/conditions":{"get":{"tags":["courses"],"summary":"Live conditions at a course (free)","description":"Temp/wind/precip from a forecast model (source:\"model\", 15-min cache) — presentation-safe, feeds /compute/plays_like.","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"conditions{temp_f, wind{speed_mph,direction_deg,gust_mph}, precipitation_in}"},"404":{"description":"unknown course / no coordinates"}}}},"/api/v1/courses/{id}":{"get":{"tags":["courses"],"summary":"Full free course detail","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Course detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseDetail"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/courses/{id}/tees":{"get":{"tags":["courses"],"summary":"Tee ratings","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tees"}}}},"/api/v1/courses/{id}/holes":{"get":{"tags":["courses"],"summary":"Holes with hazards","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Holes"}}}},"/api/v1/courses/{id}/holes/{num}":{"get":{"tags":["courses"],"summary":"Single hole detail","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"num","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Hole"}}}},"/api/v1/courses/{id}/weather":{"get":{"tags":["courses"],"summary":"Live weather forecast","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Forecast (Weather.gov)"}}}},"/api/v1/courses/{id}/climate":{"get":{"tags":["courses"],"summary":"Seasonality & best months","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Climate"}}}},"/api/v1/courses/{id}/nearby":{"get":{"tags":["courses"],"summary":"Nearby hotels, restaurants, courses","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"POIs within ~25mi"}}}},"/api/v1/courses/{id}/pricing":{"get":{"tags":["courses"],"summary":"Latest green-fee pricing","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Pricing"}}}},"/api/v1/courses/{id}/difficulty":{"get":{"tags":["courses"],"summary":"Difficulty percentile vs nearby","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Difficulty"}}}},"/api/v1/courses/{id}/daylight":{"get":{"tags":["courses"],"summary":"Sunrise/sunset & optimal tee windows","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"date","in":"query","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Daylight windows"}}}},"/api/v1/shots":{"post":{"tags":["contribute"],"summary":"Ingest launch-monitor shots","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"description":"Send one shot or an array (max 500). OpenShot or raw GSPro OpenConnect (port 921) JSON. Idempotent via dedup_key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Shot"},{"type":"array","items":{"$ref":"#/components/schemas/Shot"}}]}}}},"responses":{"200":{"description":"Ingested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["contribute"],"summary":"Read your own shot history","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"player","in":"query","schema":{"type":"string"}},{"name":"session","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Your shots"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/shots/echo":{"post":{"tags":["contribute"],"summary":"Validate/normalize a shot without storing (sandbox)","security":[{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Shot"}}}},"responses":{"200":{"description":"Normalized echo (not stored)"}}}},"/api/v1/moments":{"post":{"tags":["contribute"],"summary":"Ingest Open Connect events","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"description":"shot | breadcrumb | pin | condition | tee | green | swing | presence. One or array (max 500). Idempotent via dedup_key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Moment"},{"type":"array","items":{"$ref":"#/components/schemas/Moment"}}]}}}},"responses":{"200":{"description":"Ingested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["contribute"],"summary":"Read your own moments","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"player","in":"query","schema":{"type":"string"}},{"name":"session","in":"query","schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Your moments"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/corrections":{"post":{"tags":["contribute"],"summary":"Propose a correction to a course fact (AI-reviewed)","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"description":"Propose a fix to a FACT field (phone, website, address, architect, year_built, course_name, city, postal_code, course_type). Our AI reviews it (approve/reject/needs_info); approved+confident fixes apply. Geometry is not correctable.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["course_id","field","proposed_value"],"properties":{"course_id":{"type":"string"},"field":{"type":"string"},"proposed_value":{"type":"string"},"evidence_url":{"type":"string"},"note":{"type":"string"}}}}}},"responses":{"200":{"description":"Submitted (correction_id, status)"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/corrections/{id}":{"get":{"tags":["contribute"],"summary":"Check a correction's status/verdict","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"status: pending|applied|rejected|needs_info|human"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/corrections/{id}/respond":{"post":{"tags":["contribute"],"summary":"Answer a needs_info correction (add a source) → re-review","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"evidence_url":{"type":"string"}}}}}},"responses":{"200":{"description":"Re-opened for review"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/courses":{"post":{"tags":["contribute"],"summary":"Create a new (blank-canvas) course from name + GPS","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"description":"Propose a course we don't have yet. Minimum: course_name + latitude + longitude. Dedups against existing courses (returns the match if found); otherwise queues for human review, then fires the enrichment crawl on approval.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["course_name","latitude","longitude"],"properties":{"course_name":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"holes":{"type":"integer"},"course_type":{"type":"string"},"website":{"type":"string"}}}}}},"responses":{"200":{"description":"exists (course_id) | pending (submission_id) | pending_review"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/import":{"post":{"tags":["contribute"],"summary":"Import a round export (GPX/CSV/JSON) → moments","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"description":"Bridge for existing apps: POST a GPX/CSV/JSON track export; normalized to breadcrumb moments, idempotent (dedup). Query: ?format=gpx|csv|json&player=&course=&session=. Backfill your whole history safely.","requestBody":{"required":true,"content":{"application/gpx+xml":{"schema":{"type":"string"}},"text/csv":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Imported (ok, points, imported, session_id)"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me":{"get":{"tags":["contribute"],"summary":"Export your own contributed data","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"player","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Your moments + shots"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["contribute"],"summary":"Delete your own contributed data (GDPR/CCPA)","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"player","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted counts"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/chain":{"get":{"tags":["contribute"],"summary":"Export your OpenGolf Chain (verifiable self-sovereign record)","description":"Your append-only, tamper-evident hash chain over your own moment stream, plus its signed + OpenTimestamps-anchored checkpoints. Own-read is FREE. NO token. Hand the export to anyone; they verify it offline against /.well-known/jwks.json.","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"subject, length, head, entries[], checkpoints[]"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/chain/checkpoint":{"post":{"tags":["contribute"],"summary":"Checkpoint your chain (sign + stage OpenTimestamps anchor)","description":"Materialize your chain, Merkle-root it, RS256-sign the digest, and stage it for Bitcoin anchoring via OpenTimestamps. Own; FREE.","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"responses":{"200":{"description":"The stored checkpoint"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/chain/verify":{"post":{"tags":["contribute"],"summary":"Verify a chain export (public tool, no key)","description":"Stateless: recomputes an export's links + (optionally) its checkpoint signature and Merkle root. Anyone can verify any export.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"chain verdict + signature_valid + merkle_root_matches"}}}},"/api/v1/chain/anchors/{id}":{"get":{"tags":["chain"],"summary":"Resolve a record's anchor → its checkpoint + Bitcoin proof","description":"The OpenGolf Chain is a signed, hash-linked, Bitcoin-anchored transparency log. Resolves a checkpoint id (a record's anchor_ref) to: head_hash + prev_head (the tamper-evident link), the RS256 sig + a live signature_valid check (vs /.well-known/jwks.json), and the OpenTimestamps/Bitcoin proof. Rolled-up checkpoints resolve their Bitcoin proof through a master root. Keyless — trust no one.","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"checkpoint + sig + Bitcoin proof (+ rollup)"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/chain/anchors/{id}/inclusion":{"get":{"tags":["chain"],"summary":"Merkle inclusion proof: your record is under the anchored root","description":"Returns the merkle path proving a specific content_hash is a leaf of this checkpoint's merkle_root (which the checkpoint digest commits to Bitcoin). Offline-verifiable — recompute the fold to the root. Keyless.","security":[{}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"hash","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"leaf, index, proof[], merkle_root, root_matches"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/chain/log":{"get":{"tags":["chain"],"summary":"The public append-only transparency log","description":"Walk the whole chain for a subject (og:registry, og:course:<id>, og:root): prev_head/head_hash (verify the links), digest + sig (verify authenticity), ots_proof (resolve Bitcoin). Detect any rewrite yourself. Open verifier: scripts/verify-chain.mjs. Keyless.","security":[{}],"parameters":[{"name":"subject","in":"query","schema":{"type":"string"}},{"name":"since_seq","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"subject, checkpoints[], next_since"}}}},"/api/v1/claims":{"get":{"tags":["contribute"],"summary":"List claims (trust ledger)","description":"Filter by claimant, subject, or status. Reads are FREE.","parameters":[{"name":"claimant","in":"query","schema":{"type":"string"}},{"name":"subject","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"claims[]"}}},"post":{"tags":["contribute"],"summary":"File a claim","description":"Open a verifiable assertion (ownership/attestation/identity/record). Lifecycle open→accepted→disputed→verified.","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The created claim"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/claims/{id}":{"get":{"tags":["contribute"],"summary":"A claim + its evidence","description":"Reads are FREE.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"claim + evidence[]"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/claims/{id}/evidence":{"post":{"tags":["contribute"],"summary":"Attach evidence to a claim","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The created evidence"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/entitlements":{"get":{"tags":["contribute"],"summary":"List your entitlements","description":"The access grants attached to your OpenGolf ID. Reading your OWN is FREE.","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"parameters":[{"name":"subject","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"subject + entitlements[]"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/beta":{"get":{"tags":["contribute"],"summary":"Raw local course knowledge (beta)","description":"Community \"beta\" for a course/hole — the AI-caddie's fuel. RAW reads are FREE.","parameters":[{"name":"course","in":"query","required":true,"schema":{"type":"string"}},{"name":"hole","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"beta[]"}}},"post":{"tags":["contribute"],"summary":"Drop local knowledge (beta)","security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The recorded beta"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/connect/telemetry":{"post":{"tags":["contribute"],"summary":"Connector diagnostics (anonymous OK)","security":[{}],"description":"Crash/usage reports from Open Connect connectors. Helps us support more devices.","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK"}}}}}}