GET
/
events
curl --request GET \
  --url https://api.getlago.com/api/v1/events \
  --header 'Authorization: Bearer <token>'
{
  "events": [
    {
      "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "transaction_id": "transaction_1234567890",
      "lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "code": "storage",
      "timestamp": "2022-04-29T08:59:51.123Z",
      "precise_total_amount_cents": "1234.56",
      "properties": {
        "gb": 10
      },
      "lago_subscription_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "external_subscription_id": "sub_1234567890",
      "created_at": "2022-04-29T08:59:51Z"
    }
  ],
  "meta": {
    "current_page": 2,
    "next_page": 3,
    "prev_page": 1,
    "total_pages": 4,
    "total_count": 70
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page
integer

Page number.

per_page
integer

Number of records per page.

external_subscription_id
string

External subscription ID

code
string

Filter events by its code.

timestamp_from
string

Filter events by timestamp starting from a specific date.

timestamp_to
string

Filter events by timestamp up to a specific date.

Response

200 - application/json
events
object[]
required
meta
object
required