Get Document Status History
curl --request GET \
--url http://localhost:8000/documents/{document_id}/status-historyimport requests
url = "http://localhost:8000/documents/{document_id}/status-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/documents/{document_id}/status-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/documents/{document_id}/status-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:8000/documents/{document_id}/status-history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/documents/{document_id}/status-history")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/documents/{document_id}/status-history")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_status": "<string>",
"new_status": "<string>",
"changed_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"changed_by_worker_id": "<string>",
"detail": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"sri_messages": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}documents
Get Document Status History
Retrieve the complete status history of a Document.
Returns all status transitions ordered chronologically (oldest first), including who/what triggered each change and optional detail messages.
GET
/
documents
/
{document_id}
/
status-history
Get Document Status History
curl --request GET \
--url http://localhost:8000/documents/{document_id}/status-historyimport requests
url = "http://localhost:8000/documents/{document_id}/status-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8000/documents/{document_id}/status-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/documents/{document_id}/status-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:8000/documents/{document_id}/status-history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/documents/{document_id}/status-history")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/documents/{document_id}/status-history")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_status": "<string>",
"new_status": "<string>",
"changed_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"changed_by_worker_id": "<string>",
"detail": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"sri_messages": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Cookies
Response
Successful Response
Show child attributes
Show child attributes