POST/api/v1/content-creation/drafts
Create or update content creation draft
Creates a draft (201), or updates it when draft_id is given (200).
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"audience_persona_ids": [],
"content_type": "text",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/content-creation/drafts" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"audience_persona_ids": [],
"content_type": "text",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/content-creation/drafts", headers={"X-API-Key": "YOUR_KEY"}, json={
"audience_persona_ids": [],
"content_type": "text",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/content-creation/drafts", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"audience_persona_ids": [],
"content_type": "text",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"draft": {
"character_count": 0,
"content_type": "text",
"created_at": "string",
"excerpt": "",
"id": "string",
"knowledgebase": "content-drafts",
"metadata": {
"audience_persona_ids": [
"string"
],
"prompt": "",
"pull_through_priorities": [
{
"from_kb": false,
"level": "must",
"text": "Margin expansion is structural, not one-off"
}
],
"test_history": [
{}
],
"themes": [
"string"
]
},
"title": "Q3 margin story — LinkedIn post",
"updated_at": "string",
"word_count": 0
},
"message": "string"
}
