Get Weights
curl --request GET \
--url https://{host}/v1/weights \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/v1/weights"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/v1/weights', 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://{host}/v1/weights",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/v1/weights"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/v1/weights")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/weights")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"current": {
"version": "w-2",
"weights": {
"views": 1,
"comments": 0.5,
"up": 0.25,
"downvote_share": 0
},
"note": "add comments and up-votes",
"set_at": "2026-09-30T03:00:00+09:00",
"first_cycle_time": "2026-09-30T03:05:00+09:00"
},
"previous": {
"version": "w-1",
"weights": {
"views": 1,
"comments": 0,
"up": 0,
"downvote_share": 0
},
"note": "first trial: views only",
"set_at": "2026-09-29T02:02:11+09:00",
"first_cycle_time": "2026-09-29T02:05:00+09:00"
}
}{
"error": {
"code": "unauthorized",
"message": "API key missing or unknown"
}
}{
"error": {
"code": "server_error",
"message": "internal error"
}
}Weights and Outcomes
Get Weights
Inspect the configured score weights and their versions
GET
/
v1
/
weights
Get Weights
curl --request GET \
--url https://{host}/v1/weights \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/v1/weights"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/v1/weights', 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://{host}/v1/weights",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/v1/weights"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/v1/weights")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/weights")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"current": {
"version": "w-2",
"weights": {
"views": 1,
"comments": 0.5,
"up": 0.25,
"downvote_share": 0
},
"note": "add comments and up-votes",
"set_at": "2026-09-30T03:00:00+09:00",
"first_cycle_time": "2026-09-30T03:05:00+09:00"
},
"previous": {
"version": "w-1",
"weights": {
"views": 1,
"comments": 0,
"up": 0,
"downvote_share": 0
},
"note": "first trial: views only",
"set_at": "2026-09-29T02:02:11+09:00",
"first_cycle_time": "2026-09-29T02:05:00+09:00"
}
}{
"error": {
"code": "unauthorized",
"message": "API key missing or unknown"
}
}{
"error": {
"code": "server_error",
"message": "internal error"
}
}Not in scope for trial. This weights-management endpoint is reference material for later integration. Surf configures the intended Model 0924 down-vote-weight-0 setting for the current trial.
first_cycle_time to determine when a scheduled version takes effect.
Version labels must match the actual score computation. The current implementation can expose a new weights version alongside cached scores computed earlier. Fix and verify that provenance behavior before enabling this endpoint for client-driven changes. See the rehearsal start conditions.Authorizations
Proposed API key sent as the whole Authorization header value. Long-lived credential scope, handoff and rotation need confirmation. Per-endpoint scopes are not currently enforced.