Auth

Exchange an Active Token — POST /auth/authenticateToken

This call returns an OAuth2 access token from client_credentials. It does not accept the console Active Token as a Bearer on API routes — you exchange it here first.

POST /auth/authenticateTokennot a Bearer

Credits

This route is not on the published credit table. Confirm credits in the console or email data@golfintelligence.com.

Required parameters

  • grant_typeclient_credentials
  • codeYOUR_ACTIVE_TOKEN from the console (API Account)
  • client_idYOUR_CLIENT_ID from the console

Host https://api.golfintelligence.com. Content-Type is application/x-www-form-urlencoded. After the exchange, later calls send Authorization: Bearer YOUR_ACCESS_TOKEN.

Example

POST https://api.golfintelligence.com/auth/authenticateToken
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials
code=YOUR_ACTIVE_TOKEN
client_id=YOUR_CLIENT_ID

Authorization: Bearer YOUR_ACCESS_TOKEN   # after the exchange

Placeholders only. Swap in YOUR_ACCESS_TOKEN, YOUR_PUBLIC_ID, YOUR_COURSE, YOUR_HOLE_ID, YOUR_ACTIVE_TOKEN, or YOUR_CLIENT_ID from the console. Do not treat placeholders as a live course record.

Questions developers ask

Exchange an Active Token

Is the Active Token a Bearer token?

No. The Active Token from the console is not a Bearer. POST it as code=YOUR_ACTIVE_TOKEN on /auth/authenticateToken with grant_type=client_credentials and client_id=YOUR_CLIENT_ID. Use Authorization: Bearer YOUR_ACCESS_TOKEN only after the exchange.

Where do I get client_id and the Active Token?

From the passwordless console at console.golfintelligence.com, under API Account. Create a console account with email plus a verification code. Credits are added in the console after payment.

What Content-Type does the token URL take?

application/x-www-form-urlencoded. This is not a JSON body. Token URL is POST https://api.golfintelligence.com/auth/authenticateToken.

Start on the homepage

Use the golf course data API.

Test credits are $49 for 50 to download courses, green slope, and elevation. Buy now. After that, email data@golfintelligence.com if you need more. Console login is your email plus a verification code.

Buy now — $49 for 50 test credits. Credits are added in the console after payment. Starter is $399/month for 10,000 credits for apps.