curl --request GET \
--url https://app.harmonica.chat/api/v1/sessions/{id}/chain-state \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.harmonica.chat/api/v1/sessions/{id}/chain-state"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.harmonica.chat/api/v1/sessions/{id}/chain-state', 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/sessions/{id}/chain-state",
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: Bearer <token>"
],
]);
$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://app.harmonica.chat/api/v1/sessions/{id}/chain-state"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.harmonica.chat/api/v1/sessions/{id}/chain-state")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.harmonica.chat/api/v1/sessions/{id}/chain-state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"chain_id": "<string>",
"status": "pending",
"current_step_index": 123,
"current_step_id": "<string>",
"current_session_id": "<string>",
"can_advance": true,
"blockers": [
{
"code": "chain_not_active",
"message": "<string>",
"step_id": "<string>",
"session_id": "<string>"
}
],
"completion_type": "host_continue",
"total_assignments": 123,
"completed_assignments": 123,
"required_assignments": 123,
"timer_ready_at": "2023-11-07T05:31:56Z",
"steps": [
{
"step_id": "<string>",
"step_index": 123,
"template_step_id": "<string>",
"session_id": "<string>",
"status": "pending",
"title": "<string>"
}
]
}{
"error": {
"code": "forbidden",
"message": "<string>",
"blockers": [
{
"code": "chain_not_active",
"message": "<string>",
"step_id": "<string>",
"session_id": "<string>"
}
]
}
}Inspect host-authorized chain state and blockers
Inspect a chain using any of its session IDs. Requires owner/admin access to the origin (step-zero) session; ownership of a later session or project editor membership alone is insufficient. Returns stable chain, step and session IDs without prompts, summaries, roster emails or participant text. A read makes no state changes. can_advance is advisory; continue rechecks eligibility under the existing runtime’s chain lock.
curl --request GET \
--url https://app.harmonica.chat/api/v1/sessions/{id}/chain-state \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.harmonica.chat/api/v1/sessions/{id}/chain-state"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.harmonica.chat/api/v1/sessions/{id}/chain-state', 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/sessions/{id}/chain-state",
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: Bearer <token>"
],
]);
$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://app.harmonica.chat/api/v1/sessions/{id}/chain-state"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.harmonica.chat/api/v1/sessions/{id}/chain-state")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.harmonica.chat/api/v1/sessions/{id}/chain-state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"chain_id": "<string>",
"status": "pending",
"current_step_index": 123,
"current_step_id": "<string>",
"current_session_id": "<string>",
"can_advance": true,
"blockers": [
{
"code": "chain_not_active",
"message": "<string>",
"step_id": "<string>",
"session_id": "<string>"
}
],
"completion_type": "host_continue",
"total_assignments": 123,
"completed_assignments": 123,
"required_assignments": 123,
"timer_ready_at": "2023-11-07T05:31:56Z",
"steps": [
{
"step_id": "<string>",
"step_index": 123,
"template_step_id": "<string>",
"session_id": "<string>",
"status": "pending",
"title": "<string>"
}
]
}{
"error": {
"code": "forbidden",
"message": "<string>",
"blockers": [
{
"code": "chain_not_active",
"message": "<string>",
"step_id": "<string>",
"session_id": "<string>"
}
]
}
}Authorizations
API key authentication. Pass your key as a Bearer token.
Keys use the format hm_live_<32 hex chars>.
Generate keys from your Harmonica dashboard settings.
Path Parameters
Response
Chain state and actionable blockers
pending, active, awaiting, paused, completed, failed, cancelled Advisory snapshot; eligibility is rechecked under the chain lock when continuing.
Show child attributes
Show child attributes
host_continue, all_submitted, timer, quorum, quorum_percent Completion threshold for assignment-based gates; zero assignments still cannot complete an automatic gate.
Show child attributes
Show child attributes