Back
Credentials
Overview
Credentials handle platform registration and authentication. When two parties connect for the first time, they exchange credentials to establish mutual trust and share endpoint URLs.
Who sends
Both parties (mutual exchange)
Who receives
Both parties (mutual exchange)
Key Fields
| Field | Type | Description |
|---|---|---|
token | CiString(64) | Authentication token for API access |
url | URL | Versions endpoint URL of the platform |
roles | CredentialsRole[] | Roles the platform fulfills (CPO, EMSP, HUB) |
party_id | CiString(3) | Three-letter party identifier |
country_code | CiString(2) | ISO 3166-1 alpha-2 country code |
Endpoints
GET
/ocpi/2.2.1/credentials/
POST
/ocpi/2.2.1/credentials/
PUT
/ocpi/2.2.1/credentials/
Live Endpoint Tester
Send requests directly to the local backend and see the response.
GET