Dealer Analytics

The endpoint allows you to pull pre-diagnostic analytics for a given timeframe.

Endpoint

https://api-v2.motovizion.ai/dealer/analytics/

Request Format

HTTP Method

POST

Content Type

application/json

Request Body

The request body should be a JSON object with the following fields:

Parameter
Type
Required
Description

dealer_uuid

String

True

Dealer unique identifier

start_date

String

True

When the metrics will start

end_date

String

False

(Optional) Used if restricting timeframe, otherwise will run to current date.

Making an Authorized Request

curl -X POST https://api-v2.motovizion.ai/dealer/analytics/ \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: API_KEY" \
  -d '{
    "dealer_uuid": "1234",
    "start_date": "2025-05-01",
    "end_date": "2025-06-30"
}'

Error Responses

If your API key is missing or invalid, the server will respond with an error.

Missing API Key

Response Data

When you send a valid request to the Motovizion AI API, the response contains structured JSON data. Below is a detailed explanation of the fields included in the response.

Response Fields

Field Name
Type
Description

status

String

Request status

dealer_name

String

Dealer Name in Request

total_appointments

Integer

Total number of appointment's logged for timeframe.

total_responses

Integer

Total number of responses supplied by customer.

avg_time_on_site

Integer

Average time the customer spent engaged in conversation, in minutes.

total_time_on_site

Integer

The total time spent engaged in conversation for the given time frame, in hours.

response_rate

Integer

The percentage of response to total appointments.

total_comebacks

Integer

Total amount of logged comebacks for the time period.

Error Codes

HTTP Status Code
Description

400

Missing required fields (e.g., appointment_uuid).

401

Invalid or missing API key.

404

Appointment not found for the provided appointment_uuid.

Last updated