Skip to navigation

List OCPI + OCPP location templates

Return ready-to-use request body templates for creating an OCPI CPO location with OCPP charger metadata. Filter by ocpi_version, ocpp_version, or connector_type. The public API validates query filters with Pydantic, then the service layer reads the local template gallery from config JSON.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

ocpp_versionenum or nullOptional
Filter to templates for one OCPP version.
Allowed values:
ocpi_versionenum or nullOptional
Filter to templates for one OCPI version.
Allowed values:
connector_typestring or nullOptional

Filter to templates whose charger connector_type matches.

include_allbooleanOptionalDefaults to false

When false, return the recommended four OCPP×OCPI templates. When true, return the extended gallery.

Response

Matching location templates and the applied filters.
countinteger
filtersobject
Filters echoed by the local template gallery.
templateslist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
500
Internal Server Error