{
  "opencollection": "1.0.0",
  "info": {
    "name": "OpenMeter Billing Events API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Events",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List ingested events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://openmeter.cloud/api/v1/events",
            "params": [
              {
                "name": "from",
                "value": "",
                "type": "query"
              },
              {
                "name": "to",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Lists ingested events with optional time and subject filters."
        },
        {
          "info": {
            "name": "Ingest events",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://openmeter.cloud/api/v1/events",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Ingests an event or batch of events following the CloudEvents specification. Send a single CloudEvent as application/cloudevents+json or a batch as application/cloudevents-batch+json."
        }
      ]
    }
  ],
  "bundled": true
}