{
"api_version": "v1",
"client": "Lago Ruby v1.26.0",
"http_method": "post",
"http_status": 200,
"logged_at": "2025-03-31T12:31:44Z",
"request_body": {
"billable_metric": "{\"name\":\"Storage\",\"code\":\"storage\"}"
},
"request_origin": "https://api.getlago.com",
"request_path": "/api/v1/billable_metrics",
"created_at": "2022-04-29T08:59:51Z",
"request_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"request_response": {
"billable_metric": "{\"lago_id\":\"b9155544-e261-4e92-b54e-f65d7609294c\"}"
}
}The API log object
This object represents an API log entry of any actions performed through the API endpoints.
Lago API version used in the request.
"v1"
The client that made the request, as reported by its user agent.
"Lago Ruby v1.26.0"
The HTTP method of the request. Requests made with the GET method are not logged.
post, put, patch, delete "post"
The HTTP status Lago returned for the request.
200
The date when the request was logged, presented in the ISO 8601 datetime format, specifically in Coordinated Universal Time (UTC).
"2025-03-31T12:31:44Z"
The parameters of the request, keyed by their top-level name. Nested values are returned JSON-encoded. When the log is too large to be stored, this object is replaced by a truncated key set to "true" and an original_bytesize key holding the size of the log before truncation.
{
"billable_metric": "{\"name\":\"Storage\",\"code\":\"storage\"}"
}
The base URL the request was sent to.
"https://api.getlago.com"
The path of the request.
"/api/v1/billable_metrics"
The creation date of the API log record in the Lago application, presented in the ISO 8601 datetime format, specifically in Coordinated Universal Time (UTC).
"2022-04-29T08:59:51Z"
Unique identifier of the API log. It is the identifier of the request, taken from the X-Request-Id header when the request carries one, and generated by Lago otherwise.
"1a901a90-1a90-1a90-1a90-1a901a901a90"
The body Lago returned for the request, keyed by its top-level name. Nested values are returned JSON-encoded. It is null when the response had no body. When the log is too large to be stored, this object is replaced by a truncated key set to "true" and an original_bytesize key holding the size of the log before truncation.
{
"billable_metric": "{\"lago_id\":\"b9155544-e261-4e92-b54e-f65d7609294c\"}"
}