Replace the product list
curl --request PUT \
--url https://api.superx.so/v1/context/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"products": [
{
"url": "https://superx.so",
"name": "SuperX",
"description": "X growth platform"
}
]
}
'import requests
url = "https://api.superx.so/v1/context/products"
payload = { "products": [
{
"url": "https://superx.so",
"name": "SuperX",
"description": "X growth platform"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
products: [{url: 'https://superx.so', name: 'SuperX', description: 'X growth platform'}]
})
};
fetch('https://api.superx.so/v1/context/products', 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/context/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'products' => [
[
'url' => 'https://superx.so',
'name' => 'SuperX',
'description' => 'X growth platform'
]
]
]),
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/context/products"
payload := strings.NewReader("{\n \"products\": [\n {\n \"url\": \"https://superx.so\",\n \"name\": \"SuperX\",\n \"description\": \"X growth platform\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.superx.so/v1/context/products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"products\": [\n {\n \"url\": \"https://superx.so\",\n \"name\": \"SuperX\",\n \"description\": \"X growth platform\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/context/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"products\": [\n {\n \"url\": \"https://superx.so\",\n \"name\": \"SuperX\",\n \"description\": \"X growth platform\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"url": "<string>",
"name": "<string>",
"description": "<string>",
"positioning": "<string>",
"features": "<string>",
"updates": "<string>",
"last_scraped_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "editor_restricted",
"message": "This account is shared with you with Editor permission. Only the account owner can change these settings."
}
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "internal_error",
"message": "Failed to fetch posts"
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_unavailable",
"message": "The scheduling service is temporarily unavailable. Retry with the same Idempotency-Key."
}
}Context
Replace the product list
Reconciles the account’s products to exactly the submitted list (max 5). CAUTION: this is a FULL REPLACE by url - any existing product whose url is missing from the payload is removed. To edit one product without touching the others, use PATCH /v1/context/products/. Removal is reversible: re-adding the same url restores the product with its scraped details intact. Fields are written only when present; null clears a field.
PUT
/
v1
/
context
/
products
Replace the product list
curl --request PUT \
--url https://api.superx.so/v1/context/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"products": [
{
"url": "https://superx.so",
"name": "SuperX",
"description": "X growth platform"
}
]
}
'import requests
url = "https://api.superx.so/v1/context/products"
payload = { "products": [
{
"url": "https://superx.so",
"name": "SuperX",
"description": "X growth platform"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
products: [{url: 'https://superx.so', name: 'SuperX', description: 'X growth platform'}]
})
};
fetch('https://api.superx.so/v1/context/products', 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/context/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'products' => [
[
'url' => 'https://superx.so',
'name' => 'SuperX',
'description' => 'X growth platform'
]
]
]),
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/context/products"
payload := strings.NewReader("{\n \"products\": [\n {\n \"url\": \"https://superx.so\",\n \"name\": \"SuperX\",\n \"description\": \"X growth platform\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.superx.so/v1/context/products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"products\": [\n {\n \"url\": \"https://superx.so\",\n \"name\": \"SuperX\",\n \"description\": \"X growth platform\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/context/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"products\": [\n {\n \"url\": \"https://superx.so\",\n \"name\": \"SuperX\",\n \"description\": \"X growth platform\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"url": "<string>",
"name": "<string>",
"description": "<string>",
"positioning": "<string>",
"features": "<string>",
"updates": "<string>",
"last_scraped_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "editor_restricted",
"message": "This account is shared with you with Editor permission. Only the account owner can change these settings."
}
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "internal_error",
"message": "Failed to fetch posts"
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_unavailable",
"message": "The scheduling service is temporarily unavailable. Retry with the same Idempotency-Key."
}
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Query Parameters
Account to act on, from GET /v1/accounts. Defaults to your main account. An id outside your accounts returns 404 account_not_found.
Body
application/json
Response
The full product list after the reconcile.
Show child attributes
Show child attributes
⌘I