GET
/
api
/
v1
/
organizations
/
{organizationId}
/
logs
Get request logs for an organization
curl --request GET \
  --url https://api.drip.re/api/v1/organizations/{organizationId}/logs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "hourKey": "<string>",
      "endpoint": "<string>",
      "endpointType": "<string>",
      "method": "<string>",
      "apiClient": {
        "id": "<string>",
        "name": "<string>"
      },
      "metrics": {
        "requestCount": 123,
        "unitCount": 123,
        "errorCount": 123,
        "successRate": 123,
        "avgDuration": 123
      },
      "statusCodes": {
        "status2xx": 123,
        "status4xx": 123,
        "status5xx": 123
      },
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "hasNextPage": true,
    "hasPreviousPage": true,
    "startCursor": null,
    "endCursor": null
  }
}

Authorizations

Authorization
string
header
required

API Key

Path Parameters

organizationId
string
required

Query Parameters

limit
number
default:25

Number of logs to return (1-100)

Required range: 1 <= x <= 100
after
string

Cursor for pagination (next page)

before
string

Cursor for pagination (previous page)

startDate
string<date>

Filter logs from this date

endDate
string<date>

Filter logs until this date

endpoint
string

Filter by endpoint path (partial match)

apiClientId
string

Filter by specific API client ID

status
enum<string>

Filter by request status

Available options:
success,
error

Response

200 - application/json

Default Response

The response is of type object.