Merge API
https://api.flexipage.app/merge
Request Parameters
templateId
- string representing document template id
recordId
- string representing the record to be merged
tableId
- string representing the table document is created for
Response
200
- Merged PDF is returned with mime type as application/pdf
500
- Returns 500 if there is an issue in creating document
Sample Request
let apiBody = {
templateId: "template_id",
recordId: config.RECORD_ID,
tableId: "table_id",
deliveryOption: {
baseId: base.id,
recordId: config.RECORD_ID,
writeFieldId: "field_id"
}
}
// Make post api with headers
const result = await fetch("https://api.flexipage.app/merge", {
method: "POST",
body: JSON.stringify(apiBody),
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer paste_your_token_here",
}
})