curl --request GET \
--url https://app.demand-iq.com/api/decks/{deckId}/generate/status \
--cookie session=import requests
url = "https://app.demand-iq.com/api/decks/{deckId}/generate/status"
headers = {"cookie": "session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'session='}};
fetch('https://app.demand-iq.com/api/decks/{deckId}/generate/status', 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.demand-iq.com/api/decks/{deckId}/generate/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "session=",
]);
$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.demand-iq.com/api/decks/{deckId}/generate/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "session=")
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.demand-iq.com/api/decks/{deckId}/generate/status")
.header("cookie", "session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/decks/{deckId}/generate/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'session='
response = http.request(request)
puts response.read_body{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"currentSlide": 123,
"totalSlides": 123,
"progress": 123,
"error": "<string>",
"slidesCreated": 123,
"faqsCreated": 123,
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Poll generation status
curl --request GET \
--url https://app.demand-iq.com/api/decks/{deckId}/generate/status \
--cookie session=import requests
url = "https://app.demand-iq.com/api/decks/{deckId}/generate/status"
headers = {"cookie": "session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'session='}};
fetch('https://app.demand-iq.com/api/decks/{deckId}/generate/status', 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.demand-iq.com/api/decks/{deckId}/generate/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "session=",
]);
$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.demand-iq.com/api/decks/{deckId}/generate/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "session=")
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.demand-iq.com/api/decks/{deckId}/generate/status")
.header("cookie", "session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/decks/{deckId}/generate/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'session='
response = http.request(request)
puts response.read_body{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"currentSlide": 123,
"totalSlides": 123,
"progress": 123,
"error": "<string>",
"slidesCreated": 123,
"faqsCreated": 123,
"createdAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Session cookie obtained from POST /api/auth/login.
Path Parameters
UUID of the deck
Response
Current job status
A deck generation job. The single-job endpoint (GET /api/decks/{deckId}/generate/status) adds the row counts and timestamps; the deck list and the per-organization poll carry only the fields common to both.
pending, processing, completed, failed The slide that most recently STARTED processing; completed work is currentSlide − 1
0 until the job flips to processing
0-100, derived from completed slides / totalSlides; 100 once settled
Slide rows that exist for the deck right now. This is the signal to refresh on: currentSlide marks a slide's start, and the row lands a full slide's work later. Single-job endpoint only.
FAQ rows that exist right now. The job tracks no FAQ state; they are written in one batch after the last slide. Single-job endpoint only.
Single-job endpoint only
Single-job endpoint only