Generate Persona Section Route
curl --request POST \
--url https://api.example.com/api/v1/personas/generate-section \
--header 'Content-Type: application/json' \
--data '
{
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/personas/generate-section"
payload = {
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section": "<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({llm_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', section: '<string>'})
};
fetch('https://api.example.com/api/v1/personas/generate-section', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"section": "<string>",
"generated": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}personas
Generate Persona Section Route
Generate a single persona section via the org’s BYOK LLM profile (not persisted).
POST
/
api
/
v1
/
personas
/
generate-section
Generate Persona Section Route
curl --request POST \
--url https://api.example.com/api/v1/personas/generate-section \
--header 'Content-Type: application/json' \
--data '
{
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/personas/generate-section"
payload = {
"llm_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section": "<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({llm_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', section: '<string>'})
};
fetch('https://api.example.com/api/v1/personas/generate-section', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"section": "<string>",
"generated": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Generate a single persona section via the org's BYOK LLM profile.