List a book's figures
const url = 'https://digize.com/api/v1/books/example/figures';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/books/example/figures \ --header 'x-api-key: <x-api-key>'The book’s illustrations, charts and diagrams: what each should show and its spec, its caption and width, its status (planned until it’s drawn), its drawing with its dpi, text check and warnings, what it cost, and the drawings kept to go back to. Also whether OpenAI is connected (figures are drawn on it), the model, and the style sample later illustrations are drawn from.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Done
object
object
What it should show.
object
object
object
object
object
object
object
What it shows: its drawing, or a picture the author put in, as it shows in the editor.
The GPT Image model it was drawn with.
What a picture prints at in its place; null for an SVG.
What drawing it has cost on the workspace’s OpenAI account, in US dollars.
The drawing it shows, then the last few to go back to.
object
US dollars, both tries included.
What a “Change this” asked for.
When it was drawn, in ms since the epoch.
A “Change this” under way: what it asked for.
Whether a chapter shows it; one that doesn’t can be deleted.
Every figure’s drawings, in US dollars.
Example
{ "data": [ { "kind": "illustration", "spec": { "kind": "chart", "type": "bar", "unit": "", "source": "" }, "width": "half", "status": "planned", "format": "png", "drawings": [ { "source": "drawn", "format": "png" } ] } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}