v1

latestOpenAPI 3.1.0AGPLv32026-07-26168262527.5 KB
api_logs

Retrieve an api log

This endpoint retrieves an existing api log that represents a request made to the API. The api log is identified by its unique request_id.

get/api_logs/{request_id}

Response

Api Log

Example response

{
  "api_log": {
    "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://app.lago.dev/",
    "request_path": "/billable_metrics",
    "created_at": "2022-04-29T08:59:51Z",
    "request_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
    "request_response": "{ \"lago_id\": \"b9155544-e261-4e92-b54e-f65d7609294c\", ... }"
  }
}