Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safety Score API is not documented #91

Closed
rawmean opened this issue Dec 7, 2023 · 1 comment
Closed

Safety Score API is not documented #91

rawmean opened this issue Dec 7, 2023 · 1 comment

Comments

@rawmean
Copy link

rawmean commented Dec 7, 2023

The old endpoint for Safety Score does not work for new cars anymore and the Fleet API does not document it.
old endpoint: https://akamai-apigateway-vfx.tesla.com/safety-rating/daily-metrics?vin=<vin>&deviceCountry=US&deviceLanguage=en&timezone=America/Los_Angeles&appVersion=4.27.5&hasInsurance=true

I get this response (401 http error):

{
    "message": "401 Unauthorized",
    "context": {
        "code": 401,
        "url": "http://vfx-insurance-mobile-burstapp-prod.tesla.com/safety-rating/daily-metrics?vin=5YJ3E1EC6PF513580&deviceCountry=US&deviceLanguage=en&timezone=America/Los_Angeles&appVersion=4.27.5&hasInsurance=true",
        "method": "get",
        "request": {
            "params": {
                "vin": "<vin>",
                "deviceCountry": "US",
                "deviceLanguage": "en",
                "timezone": "America/Los_Angeles",
                "appVersion": "4.27.5",
                "hasInsurance": "true"
            }
        },
        "source": {
            "type": "NotAuthenticatedException",
            "reason": "Invalid signature",
            "referenceNumber": "5YE1EC3580"
        }
    },
    "errorMessage": ""
}
@derekargueta
Copy link

The Safety Score API is not part of FleetAPI which is why it's not documented. We may be able to consider incorporating it into FleetAPI but that will require some internal discussion and design.

@sethterashima Let's close this one in favor of #152

@derekargueta derekargueta closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants