Logs
List logs
GET
Returns a cursor-paginated list of log events matching the selected projects, filters and time range.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
from*stringFormat
date-timeto*stringFormat
date-timeprojectIds?array<string>message?stringLength
length <= 500environment?array<string>sessionId?stringLength
1 <= length <= 32severity?array<>traceId?stringLength
1 <= length <= 32cursor?stringlimit?integerRange
1 <= value <= 500Default
100application/json- response
data*array<>nextCursor*string|nullcurl -X GET 'https://api.example.com/api/v1/logs?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Example Response
{
"data": [
{
"id": "string",
"projectId": "string",
"timestamp": "2019-08-24T14:15:22Z",
"observedAt": "2019-08-24T14:15:22Z",
"severity": "trace",
"severityNumber": 0,
"body": "string",
"environment": "string",
"platform": "server",
"traceId": "string",
"spanId": "string",
"scopeName": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"resourceAttributes": {
"property1": "string",
"property2": "string"
}
}
],
"nextCursor": "string"
}