List decks
curl --request GET \
--url https://app.demand-iq.com/api/decks \
--cookie session=import requests
url = "https://app.demand-iq.com/api/decks"
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', 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",
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"
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")
.header("cookie", "session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/decks")
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{
"decks": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "structured",
"isActive": true,
"tags": [],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"previewImageUrl": "<string>",
"previewImageThumbUrl": "<string>",
"generation": {
"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"
},
"firstSlideType": "standard",
"firstSlideProductData": {
"good": {},
"better": {},
"best": {},
"subtitle": "<string>",
"brandLogo": "<string>",
"disclaimer": "<string>",
"defaultSelectedTier": "good"
},
"brandingColors": {
"primary": "#1a73e8",
"neutral": "#5f6368"
}
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}Decks
List decks
Returns all decks for the authenticated organization, ordered by most recently created.
GET
/
api
/
decks
List decks
curl --request GET \
--url https://app.demand-iq.com/api/decks \
--cookie session=import requests
url = "https://app.demand-iq.com/api/decks"
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', 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",
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"
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")
.header("cookie", "session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.demand-iq.com/api/decks")
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{
"decks": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "structured",
"isActive": true,
"tags": [],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"previewImageUrl": "<string>",
"previewImageThumbUrl": "<string>",
"generation": {
"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"
},
"firstSlideType": "standard",
"firstSlideProductData": {
"good": {},
"better": {},
"best": {},
"subtitle": "<string>",
"brandLogo": "<string>",
"disclaimer": "<string>",
"defaultSelectedTier": "good"
},
"brandingColors": {
"primary": "#1a73e8",
"neutral": "#5f6368"
}
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}