- OCPI
- Credentials handshake
OCPI credentials handshake
Establish mutual OCPI credentials and versions with an eMSP or hub on GridOS.
The credentials handshake is how two OCPI parties exchange base URLs, tokens, and roles so modules (locations, sessions, CDRs, …) can call each other safely.
Never paste live OCPP passwords, OCPI tokens, or client certificates into tickets, chat, or public issues. Rotate anything that may have been exposed and use Dashboard or your secret store for operational credentials.
What you need
- Your org’s OCPI role (typically CPO, sometimes dual roles)
- Partner (eMSP or hub) versions endpoint and contact
- Agreement on OCPI 2.1.1 and/or 2.2.1
Handshake steps
Discover versions
Call the peer
versionsendpoint and pick a mutually supported version before exchanging credentials.POST credentials
Exchange tokens and the endpoint inventory for the negotiated version. Exact field shapes differ by version — use the module pages for payloads.
Store partner tokens
GridOS keeps outbound and inbound tokens for push and pull. Confirm the Dashboard partner record matches the peer role.
Verify the path
Pull or push a small Locations sample. Confirm the CDRs path if billing is in scope.
Version entry points
| Version | Start |
|---|---|
| 2.1.1 | Introduction · Credentials |
| 2.2.1 | Introduction · Credentials |
Dashboard
Use the Dashboard’s roaming / partner surfaces to:
- Create or import a partner
- Issue or rotate tokens
- Inspect last handshake and module enablement
Common failures
| Symptom | Check |
|---|---|
| 401 / invalid token | Token encoding, Authorization header, role |
| Empty modules | Versions negotiation and credentials response body |
| Locations never update | Push vs pull mode, Receiver endpoints, publish flags |
| CDR gaps | Session lifecycle from OCPP → OCPI mapping |
The left sidebar keeps module indexes (not every field table). Open the version overview or use ⌘K search — hit labels include the protocol version (for example · OCPI 2.2.1) so similarly named modules stay distinct.
Related
- Roaming go-live
- OCPI overview
- OCPP — field sessions that feed roaming