Skip to main content
POST
Edit one selected piece of a post

Authorizations

Authorization
string
header
required

A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.

Body

application/json

At least one of instruction and edit_type is required.

text
string
required

The selected piece of the post to edit.

Required string length: 1 - 4000
full_text
string

The whole post the selection sits in, so the edit matches its style.

Maximum string length: 4000
instruction
string

Free-text direction, e.g. 'make this one line, lowercase'.

Maximum string length: 500
edit_type
enum<string>

A preset edit. The last five are older names kept working.

Available options:
grammar,
translate,
hook,
details,
concise,
engaging,
humorous,
creative,
sarcastic,
inspirational,
fix-grammar,
expand,
simplify,
rewrite,
change-tone
thread_context
string[]

The thread's other parts, in order, for context only.

Maximum array length: 25
Maximum string length: 4000
account_id
string

Response

The edited text.

data
object
meta
object

What the call cost and which account it ran as.