Launching Connect
Handle the Response
Upon successfully accepting the permissions, Smartcar will redirect the user back to your application using the specified REDIRECT_URI
, along with an authorization code as a query paramter. In the case of on error, we'll provide an error and description as parameters instead.
Success
coderequired
An authorization code used to obtain your initial ACCESS_TOKEN
. The auth code
expires after 10 minutes.
state
If the redirect to Smartcar Connect contains a state parameter, that parameter will be returned here.
Success
HTTP/1.1 302 Found
Location: https://example.com/home?
code=90abecb6-e7ab-4b85-864a-e1c8bf67f2ad
&state=0facda3319
Error
For a detailed description of these errors, please see our errors page.
errorrequired
The type of error
error_descriptionrequired
A detailed description of what caused the error
state
If the redirect to Smartcar Connect contains a state parameter, that parameter will be returned here.
Error
HTTP/1.1 302 Found
Location: https://example.com/home?
error=access_denied
&error_description=User+denied+access+to+application.
&state=0facda3319