Activate a signature request
POST/submissions/{uuid}/activate
The API endpoint provides the functionality to activate a signature request and send the email if set to true
.
NodeJS
var axios = require("axios").default;
var options = {
method: 'POST',
url: 'https://api.signature.nc/api/v1/submissions/a54af2ab-2668-44f8-896b-7e16cc6c8c53/activate',
headers: {'Authorization': 'Bearer {apiKey}'},
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
json
{
"name": "My submission test name",
"createdAt": "2024-05-27T04:54:51.637Z",
"updatedAt": "2024-05-27T04:54:51.637Z",
"locale": "fr",
"uuid": "a54af2ab-2668-44f8-896b-7e16cc6c8c53",
"sendEmail": true,
"customMessage": null,
"template": {
"name": "API Template v3",
"createdAt": "API Template v3",
"updatedAt": "API Template v3",
"uuid": "24498f77-761c-4695-8df0-218c84059a95"
},
"submitters": [
{
"email": "marie.curie@test.com",
"firstname": "Marie",
"lastname": "Curie",
"uuid": "45319197-5bdf-4ec6-8294-4dcc47b0c67d",
"completedAt": null,
"signatureLink": "http://localhost:3000/sign/1129df97-0d33-415e-9785-af51d3b779fe",
"status": "sent",
"isOpen": false,
"openedAt": null,
"createdAt": "2024-05-27T05:14:31.036Z",
"updatedAt": "2024-05-27T05:14:31.036Z"
},
{
"email": "john.doe@test.com",
"createdAt": "2024-05-27T04:54:51.615Z",
"updatedAt": "2024-05-27T04:54:51.615Z",
"firstname": "John",
"lastname": "Doe",
"uuid": "efc1f9d1-f2b3-4ffa-9602-abbfdf0c03eb",
"completedAt": null,
"signatureLink": "http://localhost:3000/sign/bc0e0611-071a-412d-9255-f817e4ee5df9",
"status": "sent",
"isOpen": false,
"openedAt": null,
"createdAt": "2024-05-27T05:14:30.853Z",
"updatedAt": "2024-05-27T05:14:30.853Z"
}
],
"createdBy": {
"firstname": "Action",
"lastname": "Man",
"email": "action.man@test.com"
}
}