v1
latestOpenAPI 3.1.12026-08-063445179.6 KBGet or stream logs
Query historical runtime logs, or stream them using Server-Sent Events or JSONL.
When end is specified, returns paginated JSON. When end is omitted, streams logs in real-time using SSE or JSONL.
Requesting Accept: application/json without end will return an error.
Path parameters
The app ID or slug. App slugs must be 3–32 characters long, may contain only lowercase letters, numbers, and hyphens, cannot contain underscores, must not start or end with a hyphen, must not have consecutive hyphens in positions 3 and 4, and cannot be a reserved slug. App IDs are UUIDs.
Query parameters
Start of the time range (ISO 8601)
Start of the time range (ISO 8601)
End of the time range (ISO 8601). If omitted, logs are streamed in real-time
End of the time range (ISO 8601). If omitted, logs are streamed in real-time
Filter logs by revision ID
Filter logs by revision ID
Minimum log severity level
Minimum log severity level
Full-text search query
Full-text search query
The pagination cursor
The maximum number of items to return
Response
OK
Example response
{
"logs": [
{
"timestamp": "2024-01-15T10:30:00.123Z",
"level": "info",
"message": "Handling request",
"revision_id": "r2ysnrrhr352",
"region": "us-east-1"
},
{
"timestamp": "2024-01-15T10:30:00.456Z",
"level": "error",
"message": "Database connection failed",
"revision_id": "r2ysnrrhr352",
"region": "us-east-1"
}
],
"next_cursor": "eyJsYXN0X3RpbWVzdGFtcCI6..."
}