Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
Create an AI-generated draft SEO post
Queues an SEO post written by AI from a brief, the way the app writes one: keyword research, the post with SEO fields and FAQs, and an optional thumbnail. Answers at once with GENERATING; fetch it with GET /seo/{postId} until it is DRAFT. Costs 3 credits, plus the image's with generateThumbnail.
Create an AI-generated draft SEO post
curl --request POST \
--url https://www.app.ocoya.com/api/_public/v1/seo/ai \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "How small cafés can use Instagram to fill quiet afternoons",
"length": "medium",
"generateThumbnail": true,
"thumbnailAspectRatio": "4:5",
"referenceUrls": [
"<string>"
],
"channelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"cms": {
"webflow": {
"status": "draft"
},
"framer": {
"status": "draft"
},
"wix": {
"status": "draft"
}
}
}
'{
"postGroupId": "cmajvvb9q0003ja5vh0538j6r",
"status": "GENERATING",
"scheduledAt": null
}Authorizations
Body
application/json
short 600-900 words, medium 900-1,400 (default), long 1,400-2,000, extra_long 2,000-3,000.
Blog or site channels to publish to: WordPress, DEV, Notion, Webflow, Framer, Wix or Webhook. Get IDs from GET /channels.
Was this page helpful?