v1

latestOpenAPI 3.1.0AGPLv32026-07-26168262527.5 KB
activity_logs

List all activity logs

This endpoint retrieves all existing activity logs that represent actions performed on application resources.

get/activity_logs

Query parameters

pageinteger
Example:1

Page number.

per_pageinteger
Example:20

Number of records per page.

from_datestring date
Example:2022-08-09

Filter activity logs from a specific date.

to_datestring date
Example:2022-08-09

Filter activity logs up to a specific date.

activity_types[]string[]

Filter results by activity types

[
  "billing_metric.created",
  "billing_metric.updated"
]
activity_sources[]string[]

Filter results by activity sources

[
  "api",
  "front"
]
user_emails[]string[]

Filter results by user emails

[
  "dinesh@piedpiper.test"
]
external_customer_idstring
Example:5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba

Unique identifier assigned to the customer in your application.

external_subscription_idstring
Example:5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba

External subscription ID

resource_ids[]string[]

Filter results by resources unique identifiers

[
  "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
  "1a901a90-1a90-1a90-1a90-1a901a901a90"
]
resource_types[]string[]

Filter results by resource class types

[
  "BillableMetric",
  "Invoice"
]

Response

List of activity logs

Example response

{
  "activity_logs": [
    {
      "activity_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "user_email": "dinesh@piedpiper.test",
      "activity_type": "billing_metric.created",
      "activity_source": "api",
      "activity_object": {
        "lago_id": "dad68bc7-c01a-4ad8-a87b-13e78693a5bc",
        "plan_id": "b9155544-e261-4e92-b54e-f65d7609294c"
      },
      "activity_object_changes": {
        "plan_id": [
          null,
          "b9155544-e261-4e92-b54e-f65d7609294c"
        ]
      },
      "external_customer_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
      "external_subscription_id": "external_id",
      "resource_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
      "resource_type": "BillableMetric",
      "organization_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
      "logged_at": "2025-03-31T12:31:44Z",
      "created_at": "2022-04-29T08:59:51Z"
    }
  ],
  "meta": {
    "current_page": 2,
    "next_page": 3,
    "prev_page": 1,
    "total_pages": 4,
    "total_count": 70
  }
}