// You can find your project ID in the Overview tab of any Integration
// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
// Create Embedded Signature Request
await paragon.request('dropboxsign', 'signature_request/create_embedded', {
method: 'POST'
body: {
"title": "NDA with Acme Co.",
"subject": "The NDA we talked about",
"message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
"signers": [
{
"email_address": "jack@example.com",
"name": "Jack",
"order": 0
},
],
"cc_email_addresses": [
"lawyer@dropboxsign.com",
"lawyer@dropboxsign.com"
],
"file_urls": [
"https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1"
],
"metadata": {
"custom_id": 1234,
"custom_text": "NDA #9"
},
"signing_options": {
"draw": true,
"type": true,
"upload": true,
"phone": false,
"default_type": "draw"
},
"field_options": {
"date_format": "DD - MM - YYYY"
},
"test_mode": true
}
});
// Get the status of a Signature Request
await paragon.request("dropboxsign", "signature_request/<signature_request_id>", {
method: "GET",
});