Prerequisites
You need:- A Spark API client ID and client secret.
- The
dealerships:readscope granted to your client, and access to at least one dealership. - A server-side Bash shell with cURL 7.76 or later and jq.
1. Get an access token
Set your credentials in your server environment. Do not commit them or put them in browser code.access_token from the response and set it for subsequent requests:
2. List your dealerships
Use the dealership discovery endpoint:Dealership-Id header.

