curl "https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
if data["instructions"]:
print(data["instructions"])
else:
print("No custom instructions set")
const response = await fetch(
"https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions",
{
headers: { "Authorization": "Bearer runtm_xxx" },
}
);
const { instructions } = await response.json();
console.log(instructions ?? "No custom instructions set");
{
"session_id": "ses_abc123",
"instructions": "Use TypeScript strict mode. Prefer functional components with hooks. Write tests for all new functions."
}
Instructions
Get Session Instructions
Retrieve per-session custom instructions
GET
/
api
/
sessions
/
{session_id}
/
instructions
curl "https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
if data["instructions"]:
print(data["instructions"])
else:
print("No custom instructions set")
const response = await fetch(
"https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions",
{
headers: { "Authorization": "Bearer runtm_xxx" },
}
);
const { instructions } = await response.json();
console.log(instructions ?? "No custom instructions set");
{
"session_id": "ses_abc123",
"instructions": "Use TypeScript strict mode. Prefer functional components with hooks. Write tests for all new functions."
}
Returns the custom instructions configured for this specific session. These instructions are passed to the coding agent as additional context.
Required scope:
context:read
Path Parameters
string
required
The session ID (e.g.
ses_abc123).Headers
string
required
Bearer token. Example:
Bearer runtm_xxxResponse
string
The custom instructions text, or
null if none are set.string
Session ID.
curl "https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions" \
-H "Authorization: Bearer runtm_xxx"
import requests
response = requests.get(
"https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions",
headers={"Authorization": "Bearer runtm_xxx"},
)
data = response.json()
if data["instructions"]:
print(data["instructions"])
else:
print("No custom instructions set")
const response = await fetch(
"https://app.runtm.com/api/cloud/sessions/ses_abc123/instructions",
{
headers: { "Authorization": "Bearer runtm_xxx" },
}
);
const { instructions } = await response.json();
console.log(instructions ?? "No custom instructions set");
{
"session_id": "ses_abc123",
"instructions": "Use TypeScript strict mode. Prefer functional components with hooks. Write tests for all new functions."
}