POST/api/v1/personas/{persona_id}/generate
Generate content in persona voice
Write a piece in the persona's voice. The draft is saved as a workspace document.
PARAMETERS
- persona_idpath · stringREQUIRED
- Persona id, as returned by GET /api/v1/personas.e.g. string
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"content_type": "linkedin_post",
"topic": "Why our Q3 margin expansion is durable"
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/personas/string/generate" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_type": "linkedin_post",
"topic": "Why our Q3 margin expansion is durable"
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/personas/string/generate", headers={"X-API-Key": "YOUR_KEY"}, json={
"content_type": "linkedin_post",
"topic": "Why our Q3 margin expansion is durable"
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/personas/string/generate", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"content_type": "linkedin_post",
"topic": "Why our Q3 margin expansion is durable"
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"content": "string",
"truncated": false
}
