curl --request POST \ --url https://iam.smartcar.com/oauth2/token \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET'
{ "access_token": "<string>", "token_type": "<string>", "expires_in": 123 }
Request an access token using client credentials grant type
400
invalid_request
grant_type
401
invalid_client
client_id
client_secret
The client identifier
"client_availableindashboard"
The client secret
"yoursecretgeneratedindashboard"
OAuth2 grant type
client_credentials
"client_credentials"
Successfully obtained access token
The access token
Token type (typically Bearer)
Token expiration time in seconds
Was this page helpful?