GET
/
api_logs
/
{request_id}
curl --request GET \
  --url https://api.getlago.com/api/v1/api_logs/{request_id} \
  --header 'Authorization: Bearer <token>'
{
  "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\", ... }"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

request_id
string
required

The Request Id of the existing api log.

Example:

"bdc0eda6-ea52-4f72-a46a-94f47a89b546"

Response

200
application/json

Api Log

The response is of type object.