Getting Started
Authentication
Authentication
All API requests require authentication via an X-Api-Key header.
API Key Authentication
Include your API key in every request:
Code
JWT Token Authentication (Optional)
For high-frequency integrations, you can exchange your API key for a short-lived JWT token:
1. Get a Token
Code
2. Use the Token
Code
3. Refresh the Token
Code
4. Revoke a Token
Code
Both X-Api-Key and Bearer token authentication are accepted on all endpoints. You do not need to use JWT tokens — the API key always works.
Obtaining an API Key
API keys are issued after completing the agency onboarding process:
- Contact our sales team at [email protected]
- Complete the agency registration
- Receive your API key via email
API Key Security
- Never expose your API key in client-side code
- Do not commit API keys to public repositories
- Use environment variables to store keys
- Use different API keys for development and production
If you believe your API key has been compromised, contact [email protected] immediately to have it revoked and replaced.
Environments
| Environment | Base URL |
|---|---|
| Production | https://api.golfglobe365.com/api/v1 |
| Staging | https://api-stg.golfglobe365.com/api/v1 |
| Development | https://api-dev.golfglobe365.com/api/v1 |
API keys are environment-specific. Use the correct key for each environment.
Last modified on