Skip to main content
POST
/
organizations
/
{orgId}
/
measurements
Submit Measurements
curl --request POST \
  --url https://ingest.m3ter.com/organizations/{orgId}/measurements \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "measurements": [
    {
      "uid": "string",
      "meter": "string",
      "account": "Acme Corp",
      "ts": "2022-08-24T14:15:22Z",
      "ets": "2022-08-24T15:15:22Z",
      "who": {
        "property1": "string",
        "property2": "string"
      },
      "where": {
        "property1": "string",
        "property2": "string"
      },
      "what": {
        "property1": "string",
        "property2": "string"
      },
      "other": {
        "property1": "string",
        "property2": "string"
      },
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "measure": {
        "property1": 0,
        "property2": 0
      },
      "cost": {
        "property1": 0,
        "property2": 0
      },
      "income": {
        "property1": 0,
        "property2": 0
      }
    }
  ]
}
'
{
  "result": "accepted"
}

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

orgId
string
required

UUID of the organization. The Organization represents your company as a direct customer of the m3ter service.

Body

application/json
measurements
object[]
required

Request containing the usage data measurements for submission.

Required array length: 1 - 1000 elements

Response

Returns the result of the submission

result
string

accepted is returned when successful.