- Reference
- OCPI 2.2.1 (CPO)
- Module endpoints for OCPI 2.2.1 (CPO mount)
OpenAPI reference
Module endpoints for OCPI 2.2.1 (CPO mount)
GET
/Return the module endpoint URLs this platform exposes for OCPI 2.2.1.
API: OCPI 2.2.1 (CPO) · Module: Versions
Base path:/versions· Base URL:https://ocpi-api.gridos.co/ocpi/cpo/2.2.1
Overview
GET /Absolute URL: https://ocpi-api.gridos.co/ocpi/cpo/2.2.1
Return the module endpoint URLs this platform exposes for OCPI 2.2.1.
Requires authentication. Use Authorization: Token <token>. See OCPI credentials.
How to call
Quick Shell sample (set OCPI_TOKEN when auth is required). Full Python and TypeScript under Examples.
curl -sS -X GET 'https://ocpi-api.gridos.co/ocpi/cpo/2.2.1' \
-H "Authorization: Token $OCPI_TOKEN"Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | VersionDetailResponse |
401 | Unauthorized | — |
200 — successful response
application/json
Schema: VersionDetailResponse
| Field | Type | Required | Description |
|---|---|---|---|
status_code | integer | No | Default: 1000 |
status_message | string | No | — |
timestamp | string (date-time) | No | — |
data | VersionDetail | No | VersionDetail |
Response example
{
"data": {
"endpoints": [
{
"identifier": "credentials",
"role": "SENDER",
"url": "https://example.com/ocpi/2.2.1/credentials"
},
{
"identifier": "locations",
"role": "SENDER",
"url": "https://example.com/ocpi/2.2.1/locations"
}
],
"version": "2.2.1"
},
"status_code": 1000,
"status_message": "Success",
"timestamp": "2024-01-15T10:00:00Z"
}401 — unauthorized
application/json
Response example
{
"status_code": 2001,
"status_message": "Unauthorized",
"timestamp": "2025-01-01T00:00:00Z"
}Examples
Shell, Python, and TypeScript (set OCPI_TOKEN when auth is required).
curl -sS -X GET 'https://ocpi-api.gridos.co/ocpi/cpo/2.2.1' \
-H "Authorization: Token $OCPI_TOKEN"