curl --request POST \
--url https://api.superx.so/v1/tools/inline-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Most founders think they have a traffic problem.",
"full_text": "Most founders think they have a traffic problem. They have a positioning problem.",
"edit_type": "hook"
}
'import requests
url = "https://api.superx.so/v1/tools/inline-edit"
payload = {
"text": "Most founders think they have a traffic problem.",
"full_text": "Most founders think they have a traffic problem. They have a positioning problem.",
"edit_type": "hook"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'Most founders think they have a traffic problem.',
full_text: 'Most founders think they have a traffic problem. They have a positioning problem.',
edit_type: 'hook'
})
};
fetch('https://api.superx.so/v1/tools/inline-edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.superx.so/v1/tools/inline-edit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Most founders think they have a traffic problem.',
'full_text' => 'Most founders think they have a traffic problem. They have a positioning problem.',
'edit_type' => 'hook'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/tools/inline-edit"
payload := strings.NewReader("{\n \"text\": \"Most founders think they have a traffic problem.\",\n \"full_text\": \"Most founders think they have a traffic problem. They have a positioning problem.\",\n \"edit_type\": \"hook\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.superx.so/v1/tools/inline-edit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Most founders think they have a traffic problem.\",\n \"full_text\": \"Most founders think they have a traffic problem. They have a positioning problem.\",\n \"edit_type\": \"hook\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/tools/inline-edit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Most founders think they have a traffic problem.\",\n \"full_text\": \"Most founders think they have a traffic problem. They have a positioning problem.\",\n \"edit_type\": \"hook\"\n}"
response = http.request(request)
puts response.read_bodyEdit one selected piece of a post
Edits the piece of a post you select, keeping the style of the text
around it. Pass the selection as text and the whole post as
full_text, and the edit is written to drop straight back into place.
Steer it with a free-text instruction, a preset edit_type, or
both. At least one of the two is required.
Returns TEXT. Nothing is posted, scheduled or saved.
Costs AI credits, measured and typically 1. Spends no live-data
allowance. Needs a key with the write scope.
curl --request POST \
--url https://api.superx.so/v1/tools/inline-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Most founders think they have a traffic problem.",
"full_text": "Most founders think they have a traffic problem. They have a positioning problem.",
"edit_type": "hook"
}
'import requests
url = "https://api.superx.so/v1/tools/inline-edit"
payload = {
"text": "Most founders think they have a traffic problem.",
"full_text": "Most founders think they have a traffic problem. They have a positioning problem.",
"edit_type": "hook"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'Most founders think they have a traffic problem.',
full_text: 'Most founders think they have a traffic problem. They have a positioning problem.',
edit_type: 'hook'
})
};
fetch('https://api.superx.so/v1/tools/inline-edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.superx.so/v1/tools/inline-edit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Most founders think they have a traffic problem.',
'full_text' => 'Most founders think they have a traffic problem. They have a positioning problem.',
'edit_type' => 'hook'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/tools/inline-edit"
payload := strings.NewReader("{\n \"text\": \"Most founders think they have a traffic problem.\",\n \"full_text\": \"Most founders think they have a traffic problem. They have a positioning problem.\",\n \"edit_type\": \"hook\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.superx.so/v1/tools/inline-edit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Most founders think they have a traffic problem.\",\n \"full_text\": \"Most founders think they have a traffic problem. They have a positioning problem.\",\n \"edit_type\": \"hook\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/tools/inline-edit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Most founders think they have a traffic problem.\",\n \"full_text\": \"Most founders think they have a traffic problem. They have a positioning problem.\",\n \"edit_type\": \"hook\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Body
At least one of instruction and edit_type is required.
The selected piece of the post to edit.
1 - 4000The whole post the selection sits in, so the edit matches its style.
4000Free-text direction, e.g. 'make this one line, lowercase'.
500A preset edit. The last five are older names kept working.
grammar, translate, hook, details, concise, engaging, humorous, creative, sarcastic, inspirational, fix-grammar, expand, simplify, rewrite, change-tone The thread's other parts, in order, for context only.
254000