Upload or attach a PDF
POST
/envelopes/{id}/documents
const url = 'https://app.qsig.in/backend/api/v1/envelopes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/documents';const form = new FormData();form.append('file', 'file');
const options = {method: 'POST', headers: {'X-Api-Key': '<X-Api-Key>'}};
options.body = form;
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://app.qsig.in/backend/api/v1/envelopes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/documents \ --header 'Content-Type: multipart/form-data' \ --header 'X-Api-Key: <X-Api-Key>' \ --form file=@fileAttach one PDF to a draft envelope. Send multipart/form-data with file, or JSON with document_id for an existing workspace document. DSC envelopes currently support one PDF and one signing recipient.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Request Body
Section titled “Request Body ”object
file
required
string format: binary
object
document_id
required
string format: uuid
Example generated
{ "document_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “ Responses ”Document attached