Skip to main content
POST
Get Service Logs

Authorizations

X-API-Key
string
header
required

Your Cycls API key, from https://cloud.cycls.com. Sent as the X-API-Key header. This is the CYCLS_API_KEY the CLI uses.

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