Authentication

All data is primarily sent via REST calls over HTTPS. Stekker has a separate staging environment to test this functionality. All calls to our webhooks must be sent with an Authorization: header. The content type of the payloads is application/json.

The requests and responses described in the following chapters are examples. These are based on existing messages from OCPI and OCPP (hence the mix of camelCase and snake_case). Parts of these can be adjusted if it simplifies the implementation on the CSMS side, for example, the naming of the fields.

POST/api/v1/events

Example

Example request with auth

curl --location --request POST 'https://api.stekker.app/api/v1/events' \
--header 'Authorization: Token provided-secret' \
--header 'Content-Type: application/json' \
--data-raw '{
    "notification": "OcppEvent",
    "protocol": "1.6",
    "chargePointId": "61409f9bad616b6c64c31704",
    "evseId": "NLEFLEV5496770",
    "ocppIdentity": "LIB_6513",
    "event": {
        "method": "MeterValues",
        "params": {
            "connectorId": 1951562,
            "transactionId": 123885164,
            "meterValue": [
                {
                    "timestamp": "2022-03-31T13:47:30Z",
                    "sampledValue": [
                        {
                            "value": "589570"
                        }
                    ]
                }
            ]
        },
        "response": {}
    }
}'