tesla-api icon indicating copy to clipboard operation
tesla-api copied to clipboard

How to call `mobile-app/*` endpoints?

Open mukundt opened this issue 1 year ago • 3 comments

I'm trying to access the Self Diagnostics feature, which I believe falls under mobile-app/macgyver/urgent-autodiag-result. But calling api('SERVICE_MACGYVER_DIAGNOSTIC_RESULT') returns a 404. Do I need to treat mobile-app/ endpoints differently?

mukundt avatar May 01 '23 21:05 mukundt

Yes, these either fall under different urls or require different authentication / token generation.

core-hacked avatar May 09 '23 13:05 core-hacked

I was able to intercept requests between Tesla's latest android app and bff.

The URL looks like this (please note that i've intercepted another url): https://ownership.tesla.com/mobile-app/macgyver/activity-info/12345678?deviceLanguage=en&deviceCountry=US&ttpLocale=en_US&vin=5YJ3E1EB3JF000000

So far, from what i've tested, no special authentication or headers are required. Use the Bearer token as you would for other endpoints.

devsaider avatar May 09 '23 22:05 devsaider

Anyone actually know how to fetch these endpoints?

norenz92 avatar Nov 07 '23 19:11 norenz92