curl "https://app.runtm.com/api/cloud/v0/deployments/dep_3f2a/logs?type=runtime&lines=100" \
-H "Authorization: Bearer runtm_xxx"
runtm-api deployments logs dep_3f2a --type runtime --lines 100
{
"deployment_id": "dep_3f2a",
"logs": [
{"log_type": "runtime", "content": "Server listening on :3000", "created_at": "2026-07-27T20:03:05Z"}
],
"source": "stored"
}
Deployments
Deployment Logs
Fetch stored build, deploy, and runtime logs
GET
/
api
/
v0
/
deployments
/
{deployment_id}
/
logs
curl "https://app.runtm.com/api/cloud/v0/deployments/dep_3f2a/logs?type=runtime&lines=100" \
-H "Authorization: Bearer runtm_xxx"
runtm-api deployments logs dep_3f2a --type runtime --lines 100
{
"deployment_id": "dep_3f2a",
"logs": [
{"log_type": "runtime", "content": "Server listening on :3000", "created_at": "2026-07-27T20:03:05Z"}
],
"source": "stored"
}
Returns the deployment’s stored logs. Use it to diagnose a failed build or check what a running deployment printed.
Required scope:
deployments:read (API key auth)
Path Parameters
string
required
The deployment ID.
Query Parameters
string
Log type:
build, deploy, or runtime. Omit for all types.integer
default:"20"
Number of lines to return (max 1000).
string
Substring filter on log content.
Response
string
The deployment.
array
{log_type, content, created_at} entries.string
Where the logs came from (
stored).curl "https://app.runtm.com/api/cloud/v0/deployments/dep_3f2a/logs?type=runtime&lines=100" \
-H "Authorization: Bearer runtm_xxx"
runtm-api deployments logs dep_3f2a --type runtime --lines 100
{
"deployment_id": "dep_3f2a",
"logs": [
{"log_type": "runtime", "content": "Server listening on :3000", "created_at": "2026-07-27T20:03:05Z"}
],
"source": "stored"
}