Skip to content

OAuth2 Token Endpoint

POST
/oauth2/token
curl --request POST \
--url https://auth.partner.mybudsense.com/oauth2/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data client_id=your-client-id \
--data client_secret=your-client-secret \
--data grant_type=client_credentials \
--data scope=budsense/read

Use this endpoint to obtain an access token for the BudSense Partner API. Response will include an access_token, token_type, and expires_in time in seconds.

OAuth2 client credentials grant type.

Media typeapplication/x-www-form-urlencoded
object
client_id
required

Your application’s client ID.

string
Example
your-client-id
client_secret
required

Your application’s client secret.

string
Example
your-client-secret
grant_type
required

The grant type must be ‘client_credentials’.

string
Allowed values: client_credentials
scope
required

The scope must be ‘budsense/read’.

string
Allowed values: budsense/read