Create a hosted mock USB DSC test request
POST
/sandbox/mock-dsc/requests
const url = 'https://app.qsig.in/backend/api/v1/sandbox/mock-dsc/requests';const form = new FormData();form.append('file', 'file');form.append('signer_name', 'example');form.append('signer_email', 'hello@example.com');form.append('external_id', 'example');form.append('webhook_url', 'https://example.com');
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/sandbox/mock-dsc/requests \ --header 'Content-Type: multipart/form-data' \ --header 'X-Api-Key: <X-Api-Key>' \ --form file=@file \ --form signer_name=example \ --form signer_email=hello@example.com \ --form external_id=example \ --form webhook_url=https://example.comOnly for explicitly enabled qsk_test_ accounts. The resulting PDF uses an ephemeral self-signed certificate and is not a legally trusted DSC.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type multipart/form-data
object
file
required
string format: binary
signer_name
required
string
signer_email
required
string format: email
external_id
string
webhook_url
Public HTTPS endpoint for a test envelope.completed event
string format: uri
Responses
Section titled “ Responses ”Mock request with 24-hour signing_url and optional webhook_secret
Mock signing is not enabled for this test account