curl --request POST \
--url https://api.seesaw.fun/open/v1/opinions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"confirm_token": "oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg"
}
'import requests
url = "https://api.seesaw.fun/open/v1/opinions"
payload = { "confirm_token": "oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg" }
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({confirm_token: 'oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg'})
};
fetch('https://api.seesaw.fun/open/v1/opinions', 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.seesaw.fun/open/v1/opinions",
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([
'confirm_token' => 'oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg'
]),
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.seesaw.fun/open/v1/opinions"
payload := strings.NewReader("{\n \"confirm_token\": \"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg\"\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.seesaw.fun/open/v1/opinions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"confirm_token\": \"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seesaw.fun/open/v1/opinions")
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 \"confirm_token\": \"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"side_option_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reply_to_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}Publish the previewed opinion (step 2 of 2)
Publishes the opinion previewed by /topics/{id}/opinion-preview under
the owner’s name. Accepts only the confirm_token. Requires the
write scope; counts against both the write window and the read window.
Publishing is not idempotent: the token is strictly single-use and
a retry answers 409 CONFIRM_TOKEN_USED, as does republishing the same
text within a minute. Preview again only if the user wants a second post.
curl --request POST \
--url https://api.seesaw.fun/open/v1/opinions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"confirm_token": "oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg"
}
'import requests
url = "https://api.seesaw.fun/open/v1/opinions"
payload = { "confirm_token": "oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg" }
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({confirm_token: 'oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg'})
};
fetch('https://api.seesaw.fun/open/v1/opinions', 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.seesaw.fun/open/v1/opinions",
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([
'confirm_token' => 'oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg'
]),
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.seesaw.fun/open/v1/opinions"
payload := strings.NewReader("{\n \"confirm_token\": \"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg\"\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.seesaw.fun/open/v1/opinions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"confirm_token\": \"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seesaw.fun/open/v1/opinions")
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 \"confirm_token\": \"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"side_option_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reply_to_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}Authorizations
Personal API key issued per SeeSaw user account:
Authorization: Bearer sspat_…. Manage keys on the app API
(/v1/users/me/api-keys). Revocation propagates within ~60 seconds
(validation cache window).
The key's scopes decide what it may do: every key has read; a key
created with ["read","write"] may also use the six write operations
(marked x-required-scope: write in this document). Scopes are fixed at
creation — to gain write access, create a new key. A read-only key
calling a write operation gets 403 FORBIDDEN_SCOPE.
Body
The only accepted body of an execute operation. The token comes from the matching preview, is valid 5 minutes and is bound to this user, key, action and parameters.
"oc1.eyJhIjoicGxhY2Vfb3JkZXIi….B7BIlLpN9gqCD8Ug2FcGEg"