Yonga.io Turkey EV Charging API
Turkey EV Charging Station Data API — 16,000+ stations, 190 networks, 81 cities
Turkey EV Charging Station Data API — 16,000+ stations, 190 networks, 81 cities
Validates email/password and returns a Sanctum bearer token scoped to the
given device_name. Tokens receive the abilities allowed for the account's
API tier (tier:free|basic|standard|pro plus stations:read,
networks:read, map:read, stats:read). An explicit abilities[] array
may only narrow that set — requesting an ability outside it is rejected.
Returns 422 on validation failure or incorrect credentials.
curl https://dash.yonga.io/api/login \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"email": "",
"password": "",
"device_name": "",
"abilities": [
""
]
}'
{
"success": true,
"token": "string",
"user": {
"id": 1,
"name": "string",
"email": "string"
},
"abilities": []
}
Returns the authenticated account (id, name, email, assigned roles) together
with the abilities granted to the bearer token used for the request. Useful
for discovering which endpoints a token may call before calling them.
Requires a valid Sanctum bearer token (auth:sanctum).
curl https://dash.yonga.io/api/me \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"user": {
"id": 1,
"name": "string",
"email": "string",
"roles": []
},
"abilities": "string",
"authenticated": true
}
Deletes the access token used to authenticate the request. Requires a valid
Sanctum bearer token (auth:sanctum).
curl https://dash.yonga.io/api/logout \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"success": true,
"message": "Token revoked successfully"
}