curl --request POST \
--url https://api.superx.so/v1/datasets/{id}/outreach-drafts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"format": "hey [first]! been following what you're building. <personalization>. would love to trade notes sometime",
"instructions": "Keep it under three sentences and never pitch."
}
EOFimport requests
url = "https://api.superx.so/v1/datasets/{id}/outreach-drafts"
payload = {
"format": "hey [first]! been following what you're building. <personalization>. would love to trade notes sometime",
"instructions": "Keep it under three sentences and never pitch."
}
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({
format: 'hey [first]! been following what you\'re building. <personalization>. would love to trade notes sometime',
instructions: 'Keep it under three sentences and never pitch.'
})
};
fetch('https://api.superx.so/v1/datasets/{id}/outreach-drafts', 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/datasets/{id}/outreach-drafts",
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([
'format' => 'hey [first]! been following what you\'re building. <personalization>. would love to trade notes sometime',
'instructions' => 'Keep it under three sentences and never pitch.'
]),
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/datasets/{id}/outreach-drafts"
payload := strings.NewReader("{\n \"format\": \"hey [first]! been following what you're building. <personalization>. would love to trade notes sometime\",\n \"instructions\": \"Keep it under three sentences and never pitch.\"\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/datasets/{id}/outreach-drafts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"format\": \"hey [first]! been following what you're building. <personalization>. would love to trade notes sometime\",\n \"instructions\": \"Keep it under three sentences and never pitch.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/datasets/{id}/outreach-drafts")
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 \"format\": \"hey [first]! been following what you're building. <personalization>. would love to trade notes sometime\",\n \"instructions\": \"Keep it under three sentences and never pitch.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"dataset_id": "VKcPAVU1FSkx4kzPuehGK",
"title": "Outreach briefs (10 profiles)",
"total": 10,
"drafted": 8,
"generic": 1,
"failed": 0,
"contaminated": 1,
"long_messages": 0,
"sample_messages": [
{
"handle": "@robj3d3",
"message": "hey [first]! been following what you're building..."
}
]
},
"meta": {
"credits_charged": 2
},
"note": "Drafts are text only and are stored on the dataset's `message` column; a person sends them from the SuperX app. The API never sends DMs."
}Draft outreach messages onto a research dataset
Writes one personalized message per person in a research dataset,
following the format you supply.
The drafts are text and nothing is sent. Each message is stored on
the dataset’s message column and read back with
GET /v1/datasets/{id}/rows. No endpoint in this API sends a DM, and
this one does not either: a person reviews the messages and sends them
from the SuperX app.
Personalization comes only from that person’s stored brief and its
verbatim hook quotes, never invented details. A brief with no usable
hook gets an honest generic message that still follows your format,
counted separately in generic. [name], [first] and [handle]
tokens are left intact for per-recipient fill-in at send time.
A message that mentions a DIFFERENT recipient’s handle is discarded
rather than stored (counted in contaminated); run the endpoint again
to retry those rows. Re-running overwrites every draft on the dataset.
The dataset must have been created with source: "research" and be
ready. Costs AI credits (measured, usually a few) and spends no
live-data allowance: the briefs are already stored. Needs a key with
the write scope.
curl --request POST \
--url https://api.superx.so/v1/datasets/{id}/outreach-drafts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"format": "hey [first]! been following what you're building. <personalization>. would love to trade notes sometime",
"instructions": "Keep it under three sentences and never pitch."
}
EOFimport requests
url = "https://api.superx.so/v1/datasets/{id}/outreach-drafts"
payload = {
"format": "hey [first]! been following what you're building. <personalization>. would love to trade notes sometime",
"instructions": "Keep it under three sentences and never pitch."
}
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({
format: 'hey [first]! been following what you\'re building. <personalization>. would love to trade notes sometime',
instructions: 'Keep it under three sentences and never pitch.'
})
};
fetch('https://api.superx.so/v1/datasets/{id}/outreach-drafts', 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/datasets/{id}/outreach-drafts",
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([
'format' => 'hey [first]! been following what you\'re building. <personalization>. would love to trade notes sometime',
'instructions' => 'Keep it under three sentences and never pitch.'
]),
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/datasets/{id}/outreach-drafts"
payload := strings.NewReader("{\n \"format\": \"hey [first]! been following what you're building. <personalization>. would love to trade notes sometime\",\n \"instructions\": \"Keep it under three sentences and never pitch.\"\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/datasets/{id}/outreach-drafts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"format\": \"hey [first]! been following what you're building. <personalization>. would love to trade notes sometime\",\n \"instructions\": \"Keep it under three sentences and never pitch.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/datasets/{id}/outreach-drafts")
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 \"format\": \"hey [first]! been following what you're building. <personalization>. would love to trade notes sometime\",\n \"instructions\": \"Keep it under three sentences and never pitch.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"dataset_id": "VKcPAVU1FSkx4kzPuehGK",
"title": "Outreach briefs (10 profiles)",
"total": 10,
"drafted": 8,
"generic": 1,
"failed": 0,
"contaminated": 1,
"long_messages": 0,
"sample_messages": [
{
"handle": "@robj3d3",
"message": "hey [first]! been following what you're building..."
}
]
},
"meta": {
"credits_charged": 2
},
"note": "Drafts are text only and are stored on the dataset's `message` column; a person sends them from the SuperX app. The API never sends DMs."
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Path Parameters
The dataset id from GET /v1/datasets.
^[A-Za-z0-9_-]{1,64}$Body
The template or example message every draft should follow. Keep
[name], [first] and [handle] tokens if you want them filled
in per recipient at send time.
10 - 1000Optional extra steer: tone, what to emphasize, what to avoid.
500Which of your accounts to draft as. Omit for the main account.