v1.1.6
OpenAPI 3.1.0

Yonga.io Turkey EV Charging API

Turkey EV Charging Station Data API — 16,000+ stations, 190 networks, 81 cities

Server:https://dash.yonga.io/api
Client Libraries

Auth

​

Log in and issue an API token

​

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.

Body
required
application/json
  • device_name
    Type: string
    required
  • email
    Type: string Format: email
    required
  • password
    Type: string
    required
  • abilities
    Type: array string[] 1…
Responses
  • application/json
  • application/json
  • application/json
Request Example for post/login
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": []
}

Identify the current token holder

​

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).

Responses
  • application/json
  • application/json
Request Example for get/me
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
}

Log out (revoke the current token)

​

Deletes the access token used to authenticate the request. Requires a valid Sanctum bearer token (auth:sanctum).

Responses
  • application/json
  • application/json
Request Example for post/logout
curl https://dash.yonga.io/api/logout \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "success": true,
  "message": "Token revoked successfully"
}

ChargingStations (Collapsed)

​

YongaEvents (Collapsed)

​