- Reference
- OCPI 2.1.1 (CPO)
- Module endpoints for OCPI 2.1.1 (CPO mount)
OpenAPI reference
Module endpoints for OCPI 2.1.1 (CPO mount)
GET
/GET /
API: OCPI 2.1.1 (CPO) · Module: Versions
Base path:/versions· Base URL:https://ocpi-api.gridos.co/ocpi/cpo/2.1.1
Overview
GET /Absolute URL: https://ocpi-api.gridos.co/ocpi/cpo/2.1.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.1.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",
"url": "https://www.server.com/ocpi/cpo/2.1.1/credentials"
},
{
"identifier": "locations",
"url": "https://www.server.com/ocpi/cpo/2.1.1/locations"
}
],
"version": "2.1.1"
},
"status_code": 1000,
"status_message": "Success",
"timestamp": "2015-06-29T22:39:09Z"
}401 — unauthorized
application/json
Response example
{
"status_code": 2000,
"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.1.1' \
-H "Authorization: Token $OCPI_TOKEN"