Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /ocpi/versions | Yes | List supported OCPI versions |
GET | /ocpi/2.2.1 | Yes | Version details with module URLs |
The Hub requires authentication on both endpoints. Some OCPI implementations expose /versions without auth — this Hub does not.
GET /ocpi/versions
Response example
{
"status_code": 1000,
"timestamp": "2025-06-23T10:00:00.000Z",
"data": [
{
"version": "2.2.1",
"url": "https://hub.chargeindia.com/ocpi/2.2.1"
}
]
}
GET /ocpi/2.2.1
Returns all module endpoints with SENDER/RECEIVER roles.
Response example
{
"status_code": 1000,
"data": {
"version": "2.2.1",
"endpoints": [
{
"identifier": "credentials",
"role": "RECEIVER",
"url": "https://hub.chargeindia.com/ocpi/2.2.1/credentials"
},
{
"identifier": "locations",
"role": "RECEIVER",
"url": "https://hub.chargeindia.com/ocpi/2.2.1/locations"
},
{
"identifier": "locations",
"role": "SENDER",
"url": "https://hub.chargeindia.com/ocpi/2.2.1/locations"
}
]
}
}
Health monitoring
Partners must expose GET /ocpi/versions on their platform. The Hub worker probes this endpoint to determine connection health.
OCPI spec
See OCPI 2.2.1 Versions module for full payload definitions.