Skip to content

Instantly share code, notes, and snippets.

@tomayac
Last active October 7, 2024 16:53
Show Gist options
  • Save tomayac/754284dd79e20147f482d932ed89f2a1 to your computer and use it in GitHub Desktop.
Save tomayac/754284dd79e20147f482d932ed89f2a1 to your computer and use it in GitHub Desktop.
Reverse-engineering the Enel X Way API

Reverse-engineering the Enel X Way API

These API endpoints were extracted from decompiling the Enel X Way Android app.

Authentication

https://emobility.enelx.com/api/authentication/v2/oauth/refreshToken

Status

https://emobility.enelx.com/api/emobility/v2/status

Charging

Home

https://emobility.enelx.com/api/emobility/v2/charging/process/start
https://emobility.enelx.com/api/emobility/v2/charging/process/{sessionId}/stop
https://emobility.enelx.com/api/emobility/v2/charging/process/{sessionId}/status

Public

https://emobility.enelx.com/api/emobility/v2/charging/station/{stationId}
https://emobility.enelx.com/api/emobility/v2/charging/station/carplay

Reservation

https://emobility.enelx.com/api/emobility/v2/reservation
https://emobility.enelx.com/api/emobility/v2/reservation/{reservationId}

User

https://emobility.enelx.com/api/user/v2/profile/

Utility

https://emobility.enelx.com/api/utils/v1/functionality/
https://emobility.enelx.com/api/utils/v1/labels
https://emobility.enelx.com/api/utils/v1/callback/payment-ok
https://emobility-qa.enelx.com/api/utils/v1/callback/payment-ok
@gidixi
Copy link

gidixi commented Sep 27, 2024

How can I log in to get the token?

@tomayac
Copy link
Author

tomayac commented Sep 27, 2024

We don't know yet, sorry.

@jdmedeiros
Copy link

How can I log in to get the token?

Did you try https://emobility.enelx.com/api/authentication/v2/oauth/token ?
You may need to use Postman in case it's a POST instead of a GET

If you manage to get the token then you should be able to hit the endpoints successfully.

@InfiniteInsight
Copy link

following along, I started doing the same

@tomayac
Copy link
Author

tomayac commented Oct 7, 2024

Not sure if the app route is the future, given their recent statement. I have higher hopes in the Juice Rescue initiative. I couldn't get it to work on my purchased-in-Spain European Juicebox, though…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment