Skip to main content
POST
Get Service Logs

Authorizations

Authorization
string
header
required

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

Body

application/json
deployment_name
string
required

Service name to fetch logs for

Example:

"my-function"

since
string<date-time> | null

Fetch logs after this timestamp (use cursor from previous response)

limit
integer
default:100

Maximum number of log entries to return

Required range: 1 <= x <= 1000
query
string | null

Cloud Logging filter expression to AND with the base filter (e.g. 'jsonPayload.level="error"'). Parentheses must be balanced.

Response

Successful Response

logs
LogEntry · object[]
required

List of log entries (oldest first)

cursor
string | null

Pass as 'since' to fetch newer logs