Compile Persona Prompt
curl --request POST \
--url https://api.example.com/api/v1/personas/compile \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/personas/compile"
payload = { "role": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({role: '<string>'})
};
fetch('https://api.example.com/api/v1/personas/compile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"system_prompt": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}personas
Compile Persona Prompt
Preview the compiled system prompt from structured fields (no save).
POST
/
api
/
v1
/
personas
/
compile
Compile Persona Prompt
curl --request POST \
--url https://api.example.com/api/v1/personas/compile \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/personas/compile"
payload = { "role": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({role: '<string>'})
};
fetch('https://api.example.com/api/v1/personas/compile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"system_prompt": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Preview compiled system prompt from structured fields (no save).