Welcome to the Dealerware API Quickstart! Here's a structured guide to help you set up and make your first API call.
To utilize Dealerware's API, it's essential to possess your Client ID and Client Secret, which can be obtained from our team. If you do not have these credentials, please refer to the Get Your API Keys section for guidance on acquiring them.
We've enhanced our authentication schema to provide improved security. Here's how our updated Authentication works:
Dealerware API authenticates your requests using an Access Token, securely generated by our partner authenticator. If a request lacks a valid Access Token, the Dealerware API will reject the connection and return an authentication error.
The Authorization Server generates Access Tokens in JSON Web Token (JWT) format.
Follow these steps to get your application authenticated with Dealerware API.
curl POST 'https://dealerware.auth0.com/oauth/token' \
--header 'content-type: application/json' \
--data '{
"client_id": "[Your Client ID]",
"client_secret": "[Your Client Secret]",
"audience": "https://api.dealerware.com", "grant_type": "client_credentials"
}'
The initial call is directed to our third party authentication server dealerware.auth0.com, not to api.dealerware.com. Provide your client ID and secret in the specified fields.
{
"access_token": "[Your Access Token here]",
"expires_in": 86400,
"token_type": "Bearer"
}
curl --location 'https://api.dealerware.com/admin/dealerships/[Dealership ID]' \
--header 'authorization: Bearer [Add your Access Token here]' \
--header 'api-version: [the API Version for the API you want to use]' \
--header 'Content-Type: application/json'
In subsequent calls, you no longer need to include your Client ID and Client Secret since you are already authenticated. You only need to include the Access Token obtained from the Authorization Server.
If you have questions or need further assistance, please contact us: