curl -X POST "https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.post(
"https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
if data["api_reachable"] and data["credentials_present"]:
print(f"Ready to deploy (latency: {data['latency_ms']}ms)")
else:
print("Preflight failed - check connectivity or credentials")
const response = await fetch(
"https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight",
{
method: "POST",
headers: {
"Authorization": "Bearer runtm_xxx",
},
}
);
const data = await response.json();
if (data.api_reachable && data.credentials_present) {
console.log(`Ready to deploy (latency: ${data.latency_ms}ms)`);
} else {
console.log("Preflight failed - check connectivity or credentials");
}
{
"api_url": "https://app.runtm.com",
"api_reachable": true,
"http_status": 200,
"latency_ms": 45,
"credentials_present": true,
"configured_api_url": "https://app.runtm.com"
}
Deploy
Deploy Preflight
Run pre-deploy connectivity and credential checks
POST
/
api
/
sessions
/
{session_id}
/
deploy
/
preflight
curl -X POST "https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.post(
"https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
if data["api_reachable"] and data["credentials_present"]:
print(f"Ready to deploy (latency: {data['latency_ms']}ms)")
else:
print("Preflight failed - check connectivity or credentials")
const response = await fetch(
"https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight",
{
method: "POST",
headers: {
"Authorization": "Bearer runtm_xxx",
},
}
);
const data = await response.json();
if (data.api_reachable && data.credentials_present) {
console.log(`Ready to deploy (latency: ${data.latency_ms}ms)`);
} else {
console.log("Preflight failed - check connectivity or credentials");
}
{
"api_url": "https://app.runtm.com",
"api_reachable": true,
"http_status": 200,
"latency_ms": 45,
"credentials_present": true,
"configured_api_url": "https://app.runtm.com"
}
Performs pre-deployment checks from inside the sandbox: verifies API connectivity, checks for stored credentials, and reports the configured API URL. Use this to diagnose deploy failures caused by network or auth issues.
Required scope:
deployments:write
Path Parameters
Headers
Response
curl -X POST "https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.post(
"https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
if data["api_reachable"] and data["credentials_present"]:
print(f"Ready to deploy (latency: {data['latency_ms']}ms)")
else:
print("Preflight failed - check connectivity or credentials")
const response = await fetch(
"https://app.runtm.com/api/cloud/sessions/550e8400-e29b-41d4-a716-446655440000/deploy/preflight",
{
method: "POST",
headers: {
"Authorization": "Bearer runtm_xxx",
},
}
);
const data = await response.json();
if (data.api_reachable && data.credentials_present) {
console.log(`Ready to deploy (latency: ${data.latency_ms}ms)`);
} else {
console.log("Preflight failed - check connectivity or credentials");
}
{
"api_url": "https://app.runtm.com",
"api_reachable": true,
"http_status": 200,
"latency_ms": 45,
"credentials_present": true,
"configured_api_url": "https://app.runtm.com"
}