staqlydocs
REST APIAPI referencePosts

Draft a post from a brief with AI

Draft a post from a brief with AI (posts:write)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/ai/post

The composer's Write with AI. The assistant's model (no tools) writes a title, the post and, for a thread, the comments under it, and with image a description of a picture for the generate operation. Nothing is saved. Counts as AI usage.

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Request Body

application/json
  1. body
brief*string

What the post is about, in any words

Lengthlength <= 4000
format?string
Default"short"
Value in"short""long""thread"
voice?string

personal: I, brand: we

Default"personal"
Value in"personal""brand""neutral"
tone?string
Default"friendly"
Value in"friendly""professional""witty""bold""informative"
max_chars?integer

The shortest character limit of the picked channels (0 = none)

Range0 <= value
image?boolean

Also describe a picture to go with the post (image_prompt)

Response Body

OK

application/json
  1. response
title*string
content*string
comments*array<string>
image_prompt?string
Example Request
curl -X POST 'https://staqly.example.com/v1/ai/post' \  -H 'Content-Type: application/json' \  -d '{  "brief": "string"}'
Example Response
{  "title": "string",  "content": "string",  "comments": [    "string"  ],  "image_prompt": "string"}