Generate Investor Packet
POST
/api/canvas/{deal_id}/ip/generate
const url = 'https://example.com/api/canvas/example/ip/generate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"terms":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/canvas/example/ip/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "terms": {} }'Generate a .docx Investor Packet from deal terms and template.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deal_id
required
Deal Id
string
Request Body
Section titled “Request Body ” Media type application/json
Any of:
IPGenerateRequest
Optional body for POST /ip/generate.
terms carries an IPDealTerms-shaped dict to save before generating;
validation of individual fields runs downstream in
validate_ip_terms_payload.
null
Example generated
{ "terms": {}}Responses
Section titled “ Responses ”Successful Response
Media type application/json
IPGenerateResponse
Response for IP generation.
object
success
required
Success
boolean
generation_time_ms
Generation Time Ms
integer
Example
{ "generation_time_ms": 0}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}