Getting Started
Learn how to integrate with the OpenCourt API
Introduction
The OpenCourt API lets you programmatically manage clubs, bookings, memberships, events, and more.
Base URLs
| Environment | URL |
|---|---|
| Production | https://app.getopencourt.com/api/v1 |
| Sandbox | https://sandbox.getopencourt.com/api/v1 |
Authentication
All API requests require a Bearer token. Include your API key in the Authorization header:
curl https://app.getopencourt.com/api/v1/clubs \
-H "Authorization: Bearer sk_live_oc_your_api_key"API Key Types
| Prefix | Environment | Access |
|---|---|---|
sk_live_oc_ | Production | Full access |
sk_test_oc_ | Sandbox | Full access |
rk_live_oc_ | Production | Read-only |
rk_test_oc_ | Sandbox | Read-only |
Versioning
The API uses URL path versioning (/v1) for major versions and header-based date versioning for minor changes:
curl https://app.getopencourt.com/api/v1/clubs \
-H "Authorization: Bearer sk_live_oc_..." \
-H "OpenCourt-Version: 2025-12-03"