curl --request GET \
--url https://api.recoupable.dev/api/chat/runs/{runId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.recoupable.dev/api/chat/runs/{runId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.recoupable.dev/api/chat/runs/{runId}', 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.recoupable.dev/api/chat/runs/{runId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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://api.recoupable.dev/api/chat/runs/{runId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.recoupable.dev/api/chat/runs/{runId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recoupable.dev/api/chat/runs/{runId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"runId": "wrun_01KVWZNM82NA7XKNEWWHG8VPHJ",
"status": "queued",
"createdAt": "2026-08-25T19:33:56.000Z",
"startedAt": "2026-08-25T19:34:16.386Z",
"completedAt": "2026-08-25T20:15:55.000Z",
"durationMs": 2498614
}{
"status": "error",
"message": "<string>"
}Get Chat Run Status
Status of an asynchronous run started via POST /api/chat/runs. Returns a point-in-time snapshot (is it done?) — not the generated content.
Related endpoints
POST /api/chat/runs— starts the run this reports on.GET /api/chat/{chatId}/stream— read the content: poll this to know whether a run finished; use the stream to watch the output as it’s produced.POST /api/chat— the interactive, streaming counterpart to a headless run.
curl --request GET \
--url https://api.recoupable.dev/api/chat/runs/{runId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.recoupable.dev/api/chat/runs/{runId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.recoupable.dev/api/chat/runs/{runId}', 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.recoupable.dev/api/chat/runs/{runId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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://api.recoupable.dev/api/chat/runs/{runId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.recoupable.dev/api/chat/runs/{runId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recoupable.dev/api/chat/runs/{runId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"runId": "wrun_01KVWZNM82NA7XKNEWWHG8VPHJ",
"status": "queued",
"createdAt": "2026-08-25T19:33:56.000Z",
"startedAt": "2026-08-25T19:34:16.386Z",
"completedAt": "2026-08-25T20:15:55.000Z",
"durationMs": 2498614
}{
"status": "error",
"message": "<string>"
}Authorizations
Your Recoup API key. Learn more.
Path Parameters
The durable workflow run id returned by POST /api/chat/runs.
Response
Run status snapshot
Point-in-time status of an asynchronous chat-generation run.
The durable workflow run id.
"wrun_01KVWZNM82NA7XKNEWWHG8VPHJ"
Lifecycle state of the run. Read the produced content via the chat (chatId from the start response).
queued, running, completed, failed, cancelled When the workflow run was created.
"2026-08-25T19:33:56.000Z"
When the workflow run started executing; null while queued.
"2026-08-25T19:34:16.386Z"
When the workflow run reached a terminal state; null while queued or running.
"2026-08-25T20:15:55.000Z"
completedAt - startedAt in milliseconds; null until the run is terminal.
2498614
Was this page helpful?
