Rewrite a post one preset way
curl --request POST \
--url https://api.superx.so/v1/tools/rephrase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "concise",
"text": "I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic."
}
'import requests
url = "https://api.superx.so/v1/tools/rephrase"
payload = {
"type": "concise",
"text": "I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic."
}
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({
type: 'concise',
text: 'I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.'
})
};
fetch('https://api.superx.so/v1/tools/rephrase', 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/rephrase",
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([
'type' => 'concise',
'text' => 'I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.'
]),
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/rephrase"
payload := strings.NewReader("{\n \"type\": \"concise\",\n \"text\": \"I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.\"\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/rephrase")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"concise\",\n \"text\": \"I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/tools/rephrase")
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 \"type\": \"concise\",\n \"text\": \"I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"text": "most founders are sure their problem is traffic. it rarely is."
},
"meta": {
"credits_charged": 1,
"account_id": "1178367350552305665"
}
}Tools
Rewrite a post one preset way
Applies one preset rewrite to a whole post.
The style presets (improve, hook, engaging, humorous,
positive, creative, sarcastic, inspirational) write in the
account’s own voice. The mechanical ones (grammar, translate,
clarity, details, concise) do not: they leave the voice alone
and only do the job named.
hook rewrites the FIRST paragraph only and returns it with the rest
of the post unchanged behind it.
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.
POST
/
v1
/
tools
/
rephrase
Rewrite a post one preset way
curl --request POST \
--url https://api.superx.so/v1/tools/rephrase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "concise",
"text": "I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic."
}
'import requests
url = "https://api.superx.so/v1/tools/rephrase"
payload = {
"type": "concise",
"text": "I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic."
}
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({
type: 'concise',
text: 'I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.'
})
};
fetch('https://api.superx.so/v1/tools/rephrase', 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/rephrase",
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([
'type' => 'concise',
'text' => 'I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.'
]),
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/rephrase"
payload := strings.NewReader("{\n \"type\": \"concise\",\n \"text\": \"I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.\"\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/rephrase")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"concise\",\n \"text\": \"I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/tools/rephrase")
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 \"type\": \"concise\",\n \"text\": \"I have been thinking for quite a while now about the fact that most of the founders I speak to are convinced their biggest problem is traffic.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"text": "most founders are sure their problem is traffic. it rarely is."
},
"meta": {
"credits_charged": 1,
"account_id": "1178367350552305665"
}
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Body
application/json