GET/api/v1/content-creation/drafts
List content creation drafts
List recent content drafts stored in the content-drafts knowledgebase.
PARAMETERS
- limitquery · integer
- Most recent N, up to 100.e.g. 20
- include_contentquery · string
- Set to 1 to include each draft's text.e.g. string
REQUEST
curl "https://gateway.kumkuat.ai/api/v1/content-creation/drafts" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://gateway.kumkuat.ai/api/v1/content-creation/drafts", headers={"X-API-Key": "YOUR_KEY"})
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", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"count": 1,
"drafts": [
{
"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
}
],
"knowledgebase": "content-drafts"
}
