// You can find your project ID in the Overview tab of any Integration
// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
// Send a document
paragon.request("pandadoc", "/documents/<ID>/send", {
method: "POST",
body: {
"message": "Hello! This document was sent from the PandaDoc API.",
"subject": "Please check this test API document from PandaDoc",
"silent": false,
"sender": {
"membership_id": "gEy74Zx4VjNfV3Q2rHdgZW"
}
}
});
// List documents
paragon.request("pandadoc", "/documents?", {
method: "GET"
});
// Create a contact
paragon.request("pandadoc", "/contacts", {
method: "POST",
body: {
"email": "[email protected]",
"first_name": "John",
"last_name": "Appleseed",
"company": "Apples & Company",
}
});