Skip to main content
POST
/
posts
/
{postId}
/
rewrite
AI rewrite post content
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/posts/{postId}/rewrite \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instructions": "<string>"
}
'
{
  "success": true,
  "data": {
    "rewrittenText": "Big announcement from Acme Corp — we're shipping something huge. Stay tuned.",
    "original": "Exciting news from Acme! 🚀"
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

postId
string
required

Unique identifier of the post.

Example:

"post_01HXYZ"

Body

application/json
instructions
string

Optional instructions to guide the rewrite (e.g., "make it more concise", "add a call to action").

Response

The rewritten content.

success
boolean
required
data
object
required