Get what a brief can draw on
const url = 'https://digize.com/api/v1/books/setup';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/setup \ --header 'x-api-key: <x-api-key>'What a book’s interview can read: the workspace’s own sources (website and knowledge, products, reviews, customers and deals, conversations, newsletter posts) with whether each one’s module is on, the connected services whose API it can read, and whether OpenAI is connected for figures, the cover and the voice interview.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
Whether its module is on in the workspace.
Connected services whose own API the interview can read.
Whether OpenAI is connected: figures, the cover and the voice interview run on it.
Whether the interview can be spoken: OpenAI is connected with a key whose project reaches GPT-Live (gpt-live-1). Otherwise it’s typed.
Example
{ "sources": [ { "id": "website" } ], "services": [ "stripe" ]}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" }}