List a book's insights
GET
/api/v1/books/{bookId}/insights
const url = 'https://digize.com/api/v1/books/example/insights';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/insights \ --header 'x-api-key: <x-api-key>'What the interviews learned for a book, in the order it was noted: stories, lessons, facts, quotes, numbers and people, each with the chapter it belongs to and the records it came from.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”bookId
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
bookId
required
string
kind
required
string
text
required
string
chapterHint
required
The outline chapter’s id it belongs to; null for unplaced.
string | null
refs
required
Records it came from or names: a contact, a review, an order…
Array<object>
object
type
required
string
id
required
string
label
required
string
interviewId
required
string
turn
required
The transcript turn it was taken from.
integer
usedIn
required
The chapters written from it.
Array<string>
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "data": [ { "kind": "story" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}