---
updatedAt: 2026-08-28T15:01:18.000Z
agentTools:
  projectIndex: https://developer.getbright.se/llms.txt
---

# Report event

Events from user activity in the app.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Bright Kit",
    "version": "v1.0",
    "contact": {
      "name": "Bright Energy",
      "url": "https://www.getbright.se",
      "email": "support@getbright.se"
    },
    "description": "<br>\n<img src=\"https://bright-documentation-assets.s3.eu-north-1.amazonaws.com/bright-kit-logo.svg\" width=\"300\">\n\nThe following API specification is a blueprint for Bright Energy partners.\n\nPartners are required to create and expose these endpoints only to Bright Energy for fetching user data. This enables users to access your applications and all embedded features.\n",
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/licenses/MIT"
    },
    "summary": "Bright Kit"
  },
  "servers": [
    {
      "url": "https://{kitEnvironment}.{kitDomain}/{kitBasePath}",
      "description": "Variable based url structure.\n\n`kitDomain`: The domain the Bright Kit is deployed to.\n\n`kitEnvironment`: The environment to target your requests. `staging` shall be used for integration and testing purposes.\n\n`kitBasePath`: Use v1 currently.\n",
      "variables": {
        "kitDomain": {
          "default": "domain"
        },
        "kitEnvironment": {
          "default": "staging"
        },
        "kitBasePath": {
          "default": "v1"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "events",
      "description": "Events from user activity that are reported back to the organisation."
    }
  ],
  "security": [
    {
      "apiKey": []
    },
    {
      "bearerAuth": []
    }
  ],
  "externalDocs": {
    "description": "Bright Energy Developer Hub",
    "url": "https://developer.getbright.se"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Can be the obtained token from an approved authorization method (Oauth or OpenId) or a pre-generated token given to Bright Energy. Tokens must be environment specific. JWT supported."
      },
      "apiKey": {
        "type": "apiKey",
        "name": "apiKey",
        "in": "header",
        "description": "API key that is environment specific."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "name": "BadRequestError",
              "message": "The request was malformed.",
              "status": 400,
              "error": true,
              "key": "BadRequestError",
              "uid": "y9g1f21f-a740-4346-9a79-3800fe8c8644"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "name": "ForbiddenError",
              "message": "Invalid Token.",
              "status": 401,
              "error": true,
              "key": "TOKEN_INVALID",
              "uid": "a9c1f21f-a740-4346-9a79-3800fe8c8652"
            }
          }
        }
      }
    },
    "schemas": {
      "ISO8601": {
        "type": "string",
        "minLength": 19,
        "format": "date-time",
        "pattern": "^(-?(?:[1-9][0-9]*)?[0-9]{4})(-(1[0-2]|0[1-9]))?(-(3[01]|0[1-9]|[12][0-9]))?(T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])((.[0-9]+)?|([+-](2[0-3]|[01][0-9]):([0-5][0-9]))))?(Z)?$",
        "title": "ISO8601",
        "description": "A field which should comply with the ISO 8601 standard.",
        "examples": [
          "2023-10-20T15:30:30+02:00",
          "2023-10-20T11:30:30.000Z"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "examples": [
              "GenericError"
            ]
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "examples": [
              "An error of some origin has occurred."
            ]
          },
          "status": {
            "type": "number",
            "format": "int32",
            "minimum": 400,
            "maximum": 600,
            "examples": [
              400
            ]
          },
          "error": {
            "type": "boolean",
            "examples": [
              true
            ]
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "examples": [
              "GenericError"
            ]
          },
          "uid": {
            "type": "string",
            "minLength": 1,
            "examples": [
              "25198069-6171-410c-bfed-5e0666402c08"
            ]
          }
        },
        "required": [],
        "title": "Error",
        "description": "The standard error object used in API responses",
        "minProperties": 6
      },
      "EventUser": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "accountCreated",
              "accountDeleted",
              "lastSeen"
            ],
            "minLength": 1,
            "description": "The type of event sent from Bright's backend.\n\n`lastSeen` : When a user last used the app.\n\n`accountCreated` : When a user completes their first login.\n\n`accountDeleted` : When a user deletes their account.\n",
            "examples": [
              "lastSeen"
            ]
          },
          "accountId": {
            "type": "string",
            "minLength": 1,
            "description": "The unique id of the account.",
            "examples": [
              "1234567890"
            ]
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "description": "The unique id of the user.",
            "examples": [
              "1234"
            ]
          },
          "email": {
            "type": "string",
            "minLength": 3,
            "format": "email",
            "description": "The email address for the user.",
            "examples": [
              "john.doe@example.com"
            ]
          },
          "username": {
            "type": "string",
            "minLength": 1,
            "description": "The unique username for the user.",
            "examples": [
              "savvyEnergyUser"
            ]
          },
          "personalId": {
            "type": "string",
            "minLength": 1,
            "description": "The personal identifier/number associated with the user.",
            "examples": [
              "198904080000"
            ]
          }
        },
        "required": [
          "type",
          "accountId"
        ],
        "title": "User Event",
        "description": "Used for events related to user and account activity."
      },
      "EventLocation": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "locationUpdated"
            ],
            "minLength": 1,
            "description": "The type of event sent from Bright's backend.\n\n`locationUpdated` : When a user update the location properties.\n",
            "examples": [
              "locationUpdated"
            ]
          },
          "accountId": {
            "type": "string",
            "minLength": 1,
            "description": "The unique id of the account.",
            "examples": [
              "1234567890"
            ]
          },
          "location": {
            "$ref": "#/components/schemas/LocationWithAccountId"
          }
        },
        "required": [
          "type",
          "accountId"
        ],
        "title": "Location Event",
        "description": "Used for events related to  location updates"
      },
      "LocationWithAccountId": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Location"
          },
          {
            "type": "object",
            "properties": {
              "accountId": {
                "type": "string",
                "minLength": 1,
                "description": "The unique id of the account.",
                "examples": [
                  "1234567890"
                ]
              }
            },
            "required": [
              "accountId"
            ]
          }
        ],
        "title": "Location with Account Id",
        "description": "A location is the physical address of one or more services. If the `priceZone` is missing, Bright will guess based on the address, city and zip code.",
        "required": [
          "accountId"
        ]
      },
      "LocationProperties": {
        "type": "object",
        "properties": {
          "propertyType": {
            "type": "string",
            "enum": [
              "appartment",
              "rowhouse",
              "house",
              "summerhouse",
              "unknown"
            ],
            "minLength": 1,
            "description": "The type of property at this location.",
            "examples": [
              "house"
            ]
          },
          "numberOfResidents": {
            "type": "number",
            "format": "int32",
            "minimum": 0,
            "description": "Number of persons in the household.",
            "examples": [
              3
            ]
          },
          "size": {
            "type": "number",
            "format": "int32",
            "minimum": 0,
            "description": "The size of the property measured in m2 or sqft.",
            "examples": [
              150
            ]
          },
          "houseAge": {
            "type": "string",
            "enum": [
              "zero",
              "ten",
              "twenty",
              "old",
              "dontKnow"
            ],
            "minLength": 1,
            "description": "The age of the property.\n- `zero`: 0-9 years old.\n- `ten`: 10-19 years old.\n- `twenty`: 20-29 years old.\n- `old`: 30+ years old.\n- `dontKnow`: The age is not known.\n",
            "examples": [
              "old"
            ]
          },
          "cars": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "hybrid",
                "electric",
                "petrol_diesel",
                "no_vehicle"
              ],
              "minLength": 1,
              "examples": [
                "electric"
              ]
            },
            "minItems": 0,
            "description": "A list of car types at a location.\n\nTypes include:\n- `hybrid`\n- `electric`\n- `petrol_diesel`\n- `no_vehicle`\n\nIf multiple cars of the same type are present at the location use only a single item of that type in the array. For example, if two electric cars are present use [\"electric\"].\n"
          },
          "heating": {
            "type": "string",
            "enum": [
              "direct",
              "district",
              "geothermal",
              "exhaustAir",
              "air",
              "airwater",
              "electricBoiler",
              "naturalGas",
              "pellets",
              "stove",
              "other",
              "none"
            ],
            "minLength": 1,
            "description": "The primary type of heating for the location.",
            "examples": [
              "district"
            ]
          },
          "heatingSecondary": {
            "type": "string",
            "enum": [
              "direct",
              "district",
              "geothermal",
              "exhaustAir",
              "air",
              "airwater",
              "electricBoiler",
              "naturalGas",
              "pellets",
              "stove",
              "other",
              "none"
            ],
            "minLength": 1,
            "description": "The secondary type of heating for the location.",
            "examples": [
              "air"
            ]
          },
          "gadgets": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "solarPanel",
                "washingMashine",
                "dryer",
                "dishMashine",
                "sauna",
                "floorHeating",
                "spa",
                "pool",
                "electricBike",
                "evCarCharger",
                "electricTowelRail",
                "no_gadgets"
              ],
              "minLength": 1,
              "examples": [
                "solarPanel"
              ]
            },
            "minItems": 0,
            "description": "Individual elements of a location which have a measurable effect on consumption.\n\nItems include:\n  - `solarPanel`\n  - `washingMashine`\n  - `dryer`\n  - `dishMashine`\n  - `sauna`\n  - `floorHeating`\n  - `spa`\n  - `pool`\n  - `electricBike`\n  - `evCarCharger`\n  - `electricTowelRail`\n"
          }
        },
        "title": "LocationProperties",
        "description": "The different properties for a single location."
      },
      "PriceZone": {
        "type": "string",
        "enum": [
          "SE1",
          "SE2",
          "SE3",
          "SE4",
          "FI",
          "NO1",
          "NO2",
          "NO3",
          "NO4",
          "NO5",
          "DK1",
          "DK2"
        ],
        "title": "PriceZone",
        "description": "The price area the location belongs to.",
        "examples": [
          "SE3"
        ],
        "minLength": 2
      },
      "Service": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Unique identifier for the service.",
            "examples": [
              "7840cdb9-b899-40f6-b9da-9d43a2c3d49f"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/ServiceType"
          },
          "status": {
            "type": "string",
            "minLength": 1,
            "enum": [
              "active",
              "pending",
              "canceled",
              "denied",
              "terminated"
            ],
            "description": "The status of the service. If missing refer to startDate and endDate.\n\n- `active`: Fetching consumption.\n- `pending`: Waiting for agreement start date or previous binding period.\n- `canceled`: A termination date is set but the service is still active.\n- `denied`: The service is denied due to legal or financial issues.\n- `terminated`: The service is removed or has ended.\n",
            "examples": [
              "active"
            ]
          },
          "measurementResolution": {
            "type": "string",
            "minLength": 1,
            "enum": [
              "none",
              "15min",
              "hour",
              "day",
              "month"
            ],
            "description": "The max measurement resolution period for the service. Granularity of the measurement data.\n\nFor type broadband use the value `none`.\n",
            "examples": [
              "day"
            ]
          },
          "measurementId": {
            "type": "string",
            "minLength": 1,
            "description": "The id for the fetched measurements.",
            "examples": [
              "bf72c52f-2d2e-4179-bcc1-8ab4718b6e16"
            ]
          },
          "deliveryPointId": {
            "type": "string",
            "minLength": 1,
            "description": "The delivery point id for the physical meter or delivery point.",
            "examples": [
              "735999114000000000"
            ]
          },
          "costResolution": {
            "type": "string",
            "minLength": 1,
            "enum": [
              "none",
              "15min",
              "hour",
              "day",
              "month"
            ],
            "description": "The max resolution period for the cost for the service. Defaults to month.\nIf the /cost endpoint is used for cost values it will not be called if the costResolution is set to `none`.\n",
            "examples": [
              "day"
            ]
          },
          "costId": {
            "type": "string",
            "minLength": 1,
            "description": "The id used for fetching cost values if the cost is not included in the measurement. Defaults to measurementId if not provided.",
            "examples": [
              "a6c4cc79-c1ed-4804-a484-c683ee1e58b0"
            ]
          },
          "properties": {
            "$ref": "#/components/schemas/ServiceProperties",
            "description": "Properties that toggle features in the app."
          },
          "startDate": {
            "$ref": "#/components/schemas/ISO8601",
            "description": "The date-time when measurements start. Usually the activation date."
          },
          "endDate": {
            "$ref": "#/components/schemas/ISO8601",
            "description": "The date-time when measurements end. Usually not defined unless the status is `terminated`."
          }
        },
        "required": [
          "id",
          "type",
          "measurementResolution",
          "startDate"
        ],
        "title": "Service",
        "description": "A service is the actual consumption or production place. Sometimes referred to as a site or utility."
      },
      "ServiceType": {
        "type": "string",
        "enum": [
          "consumption_trade",
          "consumption_grid",
          "production_trade",
          "production_grid",
          "heating",
          "cooling",
          "gas_trade",
          "gas_grid",
          "broadband",
          "tv",
          "water",
          "waste"
        ],
        "title": "ServiceType",
        "description": "The type of service the location is providing.\n\n- `consumption_trade`: Consumption trade (sv elhandel).\n- `consumption_grid`: Consumption grid (sv elnät).\n- `production_trade`: Production trade (sv elhandel).\n- `production_grid`: Production grid (sv elhandel).\n- `heating`: District heating (sv fjärrvärme).\n- `cooling`: District cooling (sv fjärrkyla).\n- `gas_trade`: Gas trade.\n- `gas_grid`: Gas grid.\n- `broadband`: Fiber/Broadband.\n- `tv`: Television/Cable.\n- `water`: Water.\n- `waste`: Waste.\n",
        "examples": [
          "consumption_trade"
        ],
        "minLength": 1
      },
      "ServiceProperties": {
        "type": "object",
        "properties": {
          "showCost": {
            "type": "boolean",
            "description": "If cost should be visible in the app for that service/location. If the products list is empty the cost is set to false. Defaults to true.",
            "examples": [
              true
            ]
          },
          "realtimeMeasurements": {
            "type": "boolean",
            "description": "True if real time measurement hardware is installed. Defaults to false.",
            "examples": [
              true
            ]
          }
        },
        "title": "ServiceProperties"
      },
      "Location": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "A unique identifier for the location.",
            "examples": [
              "131daac9-16c6-4618-beb0-365768f37288"
            ]
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "description": "The street name and home number for the address in the correct order. For example '123 Main Street' or 'Riksgatan 1'.",
            "examples": [
              "Riksgatan 1"
            ]
          },
          "zipCode": {
            "type": "string",
            "minLength": 1,
            "description": "The postcode for the address.",
            "examples": [
              "100 12"
            ]
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "description": "The city for the address.",
            "examples": [
              "Stockholm"
            ]
          },
          "properties": {
            "$ref": "#/components/schemas/LocationProperties"
          },
          "priceZone": {
            "$ref": "#/components/schemas/PriceZone"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            },
            "minItems": 0,
            "description": "Array of service objects."
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "minimum": -180,
            "maximum": 180,
            "description": "If omitted we will search for the longitude using an external map service.",
            "examples": [
              59.326772
            ]
          },
          "latitude": {
            "type": "number",
            "format": "double",
            "minimum": -90,
            "maximum": 90,
            "description": "If omitted we will search for the longitude using an external map service.",
            "examples": [
              18.0683768
            ]
          }
        },
        "required": [
          "id",
          "zipCode",
          "city",
          "services"
        ],
        "title": "Location",
        "description": "A location is the physical address of one or more services. If the `priceZone` is missing, Bright will guess based on the address, city and zip code."
      },
      "Event": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/EventUser"
          },
          {
            "$ref": "#/components/schemas/EventLocation"
          }
        ],
        "title": "Event",
        "type": "object",
        "description": "Event sent from Bright about user interactions"
      }
    }
  },
  "paths": {
    "/events": {
      "post": {
        "operationId": "report-event",
        "summary": "Report event",
        "description": "Events from user activity in the app.",
        "tags": [
          "events"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Event"
                  },
                  {
                    "description": "The event that was triggered."
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Event reported."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    }
  }
}
```