Python SDK
import decimalai
# Explicit, never auto-injected: the prompt comes back as data and YOUR code
# decides what to do with it. `support.prompt` is the saved text as read here.
# `support.run(message).system` is that text with its {{variables}} filled, then
# the skills routed on `message`, and it re-reads the prompt at most once a
# minute, so an edit in the dashboard reaches a running process with no redeploy.
support = decimalai.agent_config("support-agent")
print(support.prompt)curl --request GET \
--url https://api.decimal.ai/api/v1/agents/{agent_name}/prompt \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/agents/{agent_name}/prompt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.decimal.ai/api/v1/agents/{agent_name}/prompt",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.decimal.ai/api/v1/agents/{agent_name}/prompt"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.decimal.ai/api/v1/agents/{agent_name}/prompt")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/agents/{agent_name}/prompt")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"agent_name": "support-agent",
"agent_id": "5f2c1a90-0f1e-4b6c-9a11-2b3c4d5e6f70",
"system_prompt": "You are a support agent for Acme…",
"version_id": "9c1f0b22-3344-4d55-8e66-77f8899aabbc",
"version_number": 3,
"content_hash": "b7f4c1…",
"label": "tightened refund wording",
"provenance": "ui",
"created_at": "2026-08-25T10:14:02.113Z",
"updated_at": "2026-08-25T10:14:02.113Z",
"version_mode": "latest"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}agents
Get this agent's configured system prompt
Return the agent’s configured system prompt, or null if none is set.
null is a REAL state, not an error: system_prompt is optional at
creation. It is produced in exactly three cases — the agent exists but has
no agent row (pre-migration-059), there is no agent_prompt row, or the
row’s effective pointer is NULL (never set, or cleared by
DELETE /{agent_name}/prompt). Every version-scoped field is null
alongside it.
Returns the prompt ONLY. There is no combined /config route: skills are
auto-injected and already served by GET /{agent_name}/skills, and merging
the two would tempt the SDK into auto-injecting the prompt too.
GET
/
api
/
v1
/
agents
/
{agent_name}
/
prompt
Python SDK
import decimalai
# Explicit, never auto-injected: the prompt comes back as data and YOUR code
# decides what to do with it. `support.prompt` is the saved text as read here.
# `support.run(message).system` is that text with its {{variables}} filled, then
# the skills routed on `message`, and it re-reads the prompt at most once a
# minute, so an edit in the dashboard reaches a running process with no redeploy.
support = decimalai.agent_config("support-agent")
print(support.prompt)curl --request GET \
--url https://api.decimal.ai/api/v1/agents/{agent_name}/prompt \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/agents/{agent_name}/prompt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.decimal.ai/api/v1/agents/{agent_name}/prompt",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.decimal.ai/api/v1/agents/{agent_name}/prompt"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.decimal.ai/api/v1/agents/{agent_name}/prompt")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/agents/{agent_name}/prompt")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"agent_name": "support-agent",
"agent_id": "5f2c1a90-0f1e-4b6c-9a11-2b3c4d5e6f70",
"system_prompt": "You are a support agent for Acme…",
"version_id": "9c1f0b22-3344-4d55-8e66-77f8899aabbc",
"version_number": 3,
"content_hash": "b7f4c1…",
"label": "tightened refund wording",
"provenance": "ui",
"created_at": "2026-08-25T10:14:02.113Z",
"updated_at": "2026-08-25T10:14:02.113Z",
"version_mode": "latest"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Response
Successful Response