Get a book's briefing and plan
GET
/api/v1/books/{id}/briefing
const url = 'https://digize.com/api/v1/books/example/briefing';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/briefing \ --header 'x-api-key: <x-api-key>'What the agent knew before the interview (the briefing and the sources it read), the outline, and the questions it means to ask with which it has.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
bookId
required
string
status
required
string
briefing
required
What the agent already knew before the interview, from the sources: what the business is, sells, is praised and criticised for, notable customers and numbers.
string
sources
required
The sources it read, with what it found in each.
Array<object>
object
id
required
string
label
required
string
found
required
string
failed
required
boolean
error
required
Why reading the sources failed, when it did.
string | null
outline
required
object
chapters
required
Array<object>
object
id
required
string
title
required
string
promise
required
string
questions
required
Example
{ "status": "brief", "questions": [ { "from": "plan" } ]}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" }}