v1
latestOpenAPI 3.1.02026-07-2665179189.7 KBInstances
Get instance logs
⚠️ This endpoint is in public preview.
Retrieve logs for an instance.
get/preview/v2/instances/{id}/logs
Path parameters
idstring required
A resource path like 'sfc:instance:acme:prod:my-instance' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
Example:inst_k3R-nX9vLm7Qp2Yw5Jd8F
Query parameters
seqnum_beforeinteger
Return logs with seqnum less than or equal to this value.
seqnum_afterinteger
Return logs with seqnum greater than or equal to this value.
realtime_timestamp_beforeinteger
Unix timestamp.
Example:1738972800
Due to clock synchronization, some earlier log messages may have a realtime timestamp after this value.
realtime_timestamp_afterinteger
Unix timestamp.
Example:1738972800
Due to clock synchronization, some later log messages may have a realtime timestamp before this value.
sort_by'seqnum' | '-seqnum'
limitinteger
Response
Log chunks.
Example response
{
"data": [
{
"timestamp_realtime": 1738972800,
"data": "SGVsbG8gV29ybGQK"
}
]
}