curl --request GET \
--url https://api.sfcompute.com/preview/v2/instances/{id}/logs \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"timestamp_realtime": 1738972800,
"timestamp_monotonic_secs": 123,
"timestamp_monotonic_nanos": 1,
"seqnum": 1,
"data": "SGVsbG8gV29ybGQK"
}
]
}Retrieve logs for an instance.
curl --request GET \
--url https://api.sfcompute.com/preview/v2/instances/{id}/logs \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"timestamp_realtime": 1738972800,
"timestamp_monotonic_secs": 123,
"timestamp_monotonic_nanos": 1,
"seqnum": 1,
"data": "SGVsbG8gV29ybGQK"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.sfcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
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.
(inst_[0-9a-zA-Z_-]{1,21})|(sfc:instance:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"inst_k3R-nX9vLm7Qp2Yw5Jd8F"
Return logs with seqnum less than or equal to this value.
x >= 0Return logs with seqnum greater than or equal to this value.
x >= 0Due to clock synchronization, some earlier log messages may have a realtime timestamp after this value. Unix timestamp.
1738972800
Due to clock synchronization, some later log messages may have a realtime timestamp before this value. Unix timestamp.
1738972800
seqnum, -seqnum 1 <= x <= 2500