curl --request POST \
--url https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stepIndex": 0,
"retry": true
}
'import requests
url = "https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc"
payload = {
"stepIndex": 0,
"retry": True
}
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({stepIndex: 0, retry: true})
};
fetch('https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc', 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://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc",
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([
'stepIndex' => 0,
'retry' => true
]),
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://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc"
payload := strings.NewReader("{\n \"stepIndex\": 0,\n \"retry\": true\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://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"stepIndex\": 0,\n \"retry\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc")
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 \"stepIndex\": 0,\n \"retry\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "pending",
"revision": 1
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Try again in 30 seconds."
}
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": "<string>",
"code": "unauthorized"
}Explicitly prepare or retry a Canvas round
Requires an authenticated workspace editor and each source session’s results audience. Send retry=true to explicitly request preparation, including the first manual request; otherwise returns explicit_retry_required. Signed participant tokens do not authorize preparation. The platform also uses a server-only internal dispatcher; its credential is not a user API credential.
Uses the selected round’s current eligible group summary and server-captured source identity. A claimed request makes a model call billed through that source session’s owner configuration; the editor need not be its payer. This can incur cost. A current ready result or active pending claim returns its status without another model call. Failed preparation requires an explicit retry; an expired pending claim may be retried after six minutes. No automatic retry is performed. A source change or newer accepted round can reject the request. Summary readiness is not Canvas readiness or human approval, and preparation never advances the chain.
Preparing a replacement after a source change updates the candidate; it cannot replace an immutable snapshot already bound to an affected review round. The host must restart that affected continuation in a fresh chain. Access is rechecked before merging an editor’s result. Responses use private, no-store and never serialize provider prompt/error details.
curl --request POST \
--url https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stepIndex": 0,
"retry": true
}
'import requests
url = "https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc"
payload = {
"stepIndex": 0,
"retry": True
}
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({stepIndex: 0, retry: true})
};
fetch('https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc', 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://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc",
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([
'stepIndex' => 0,
'retry' => true
]),
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://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc"
payload := strings.NewReader("{\n \"stepIndex\": 0,\n \"retry\": true\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://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"stepIndex\": 0,\n \"retry\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.harmonica.chat/api/v1/chains/{instanceId}/extract-bmc")
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 \"stepIndex\": 0,\n \"retry\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "pending",
"revision": 1
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Try again in 30 seconds."
}
}{
"error": "<string>",
"code": "unauthorized"
}{
"error": "<string>",
"code": "unauthorized"
}Authorizations
Path Parameters
Body
Response
Existing claim status or completed preparation; revision is present only after a claimed extraction finishes.