All URIs are relative to https://api.docspring.com/api/v1
Method | HTTP request | Description |
---|---|---|
addFieldsToTemplate | PUT /templates/{template_id}/add_fields | Add new fields to a Template |
batchGeneratePdfV1 | POST /templates/{template_id}/submissions/batch | Generates multiple PDFs |
batchGeneratePdfs | POST /submissions/batches | Generates multiple PDFs |
combinePdfs | POST /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files |
combineSubmissions | POST /combined_submissions | Merge generated PDFs together |
copyTemplate | POST /templates/{template_id}/copy | Copy a Template |
createCustomFileFromUpload | POST /custom_files | Create a new custom file from a cached presign upload |
createDataRequestToken | POST /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication |
createFolder | POST /folders/ | Create a folder |
createHTMLTemplate | POST /templates?desc=html | Create a new HTML template |
createPDFTemplate | POST /templates | Create a new PDF template with a form POST file upload |
createPDFTemplateFromUpload | POST /templates?desc=cached_upload | Create a new PDF template from a cached presign upload |
deleteFolder | DELETE /folders/{folder_id} | Delete a folder |
deleteTemplate | DELETE /templates/{template_id} | Delete a template |
expireCombinedSubmission | DELETE /combined_submissions/{combined_submission_id} | Expire a combined submission |
expireSubmission | DELETE /submissions/{submission_id} | Expire a PDF submission |
generatePDF | POST /templates/{template_id}/submissions | Generates a new PDF |
getCombinedSubmission | GET /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs) |
getDataRequest | GET /data_requests/{data_request_id} | Look up a submission data request |
getFullTemplate | GET /templates/{template_id}?full=true | Fetch the full template attributes |
getPresignUrl | GET /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket |
getSubmission | GET /submissions/{submission_id} | Check the status of a PDF |
getSubmissionBatch | GET /submissions/batches/{submission_batch_id} | Check the status of a submission batch job |
getTemplate | GET /templates/{template_id} | Check the status of an uploaded template |
getTemplateSchema | GET /templates/{template_id}/schema | Fetch the JSON schema for a template |
listCombinedSubmissions | GET /combined_submissions | Get a list of all combined submissions |
listFolders | GET /folders/ | Get a list of all folders |
listSubmissions | GET /submissions | List all submissions |
listSubmissions_0 | GET /templates/{template_id}/submissions | List all submissions for a given template |
listTemplates | GET /templates | Get a list of all templates |
moveFolderToFolder | POST /folders/{folder_id}/move | Move a folder |
moveTemplateToFolder | POST /templates/{template_id}/move | Move Template to folder |
renameFolder | POST /folders/{folder_id}/rename | Rename a folder |
testAuthentication | GET /authentication | Test Authentication |
updateDataRequest | PUT /data_requests/{data_request_id} | Update a submission data request |
updateTemplate | PUT /templates/{template_id} | Update a Template |
AddFieldsTemplateResponse addFieldsToTemplate(templateId, addFieldsData)
Add new fields to a Template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000002; // String |
var addFieldsData = new DocSpring.AddFieldsData(); // AddFieldsData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addFieldsToTemplate(templateId, addFieldsData, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
addFieldsData | AddFieldsData |
- Content-Type: application/json
- Accept: application/json
[CreateSubmissionResponse] batchGeneratePdfV1(templateId, requestBody)
Generates multiple PDFs
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var requestBody = [null]; // [Object] |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.batchGeneratePdfV1(templateId, requestBody, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
requestBody | [Object] |
- Content-Type: application/json
- Accept: application/json
CreateSubmissionBatchResponse batchGeneratePdfs(submissionBatchData)
Generates multiple PDFs
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var submissionBatchData = new DocSpring.SubmissionBatchData(); // SubmissionBatchData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.batchGeneratePdfs(submissionBatchData, callback);
Name | Type | Description | Notes |
---|---|---|---|
submissionBatchData | SubmissionBatchData |
- Content-Type: application/json
- Accept: application/json
CreateCombinedSubmissionResponse combinePdfs(combinePdfsData)
Merge submission PDFs, template PDFs, or custom files
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var combinePdfsData = new DocSpring.CombinePdfsData(); // CombinePdfsData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.combinePdfs(combinePdfsData, callback);
Name | Type | Description | Notes |
---|---|---|---|
combinePdfsData | CombinePdfsData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
CreateCombinedSubmissionResponse combineSubmissions(combinedSubmissionData)
Merge generated PDFs together
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var combinedSubmissionData = new DocSpring.CombinedSubmissionData(); // CombinedSubmissionData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.combineSubmissions(combinedSubmissionData, callback);
Name | Type | Description | Notes |
---|---|---|---|
combinedSubmissionData | CombinedSubmissionData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
Template copyTemplate(templateId, copyTemplateData)
Copy a Template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var copyTemplateData = new DocSpring.CopyTemplateData(); // CopyTemplateData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.copyTemplate(templateId, copyTemplateData, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
copyTemplateData | CopyTemplateData |
- Content-Type: application/json
- Accept: application/json
CreateCustomFileResponse createCustomFileFromUpload(createCustomFileData)
Create a new custom file from a cached presign upload
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var createCustomFileData = new DocSpring.CreateCustomFileData(); // CreateCustomFileData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createCustomFileFromUpload(createCustomFileData, callback);
Name | Type | Description | Notes |
---|---|---|---|
createCustomFileData | CreateCustomFileData |
- Content-Type: application/json
- Accept: application/json
CreateSubmissionDataRequestTokenResponse createDataRequestToken(dataRequestId)
Creates a new data request token for form authentication
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var dataRequestId = drq_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createDataRequestToken(dataRequestId, callback);
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | String |
CreateSubmissionDataRequestTokenResponse
- Content-Type: Not defined
- Accept: application/json
Folder createFolder(createFolderData)
Create a folder
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var createFolderData = new DocSpring.CreateFolderData(); // CreateFolderData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createFolder(createFolderData, callback);
Name | Type | Description | Notes |
---|---|---|---|
createFolderData | CreateFolderData |
- Content-Type: application/json
- Accept: application/json
PendingTemplate createHTMLTemplate(createHtmlTemplateData)
Create a new HTML template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var createHtmlTemplateData = new DocSpring.CreateHtmlTemplateData(); // CreateHtmlTemplateData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createHTMLTemplate(createHtmlTemplateData, callback);
Name | Type | Description | Notes |
---|---|---|---|
createHtmlTemplateData | CreateHtmlTemplateData |
- Content-Type: application/json
- Accept: application/json
PendingTemplate createPDFTemplate(templateDocument, templateName, opts)
Create a new PDF template with a form POST file upload
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateDocument = "/path/to/file"; // File |
var templateName = "templateName_example"; // String |
var opts = {
'templateParentFolderId': "templateParentFolderId_example" // String |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createPDFTemplate(templateDocument, templateName, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateDocument | File | ||
templateName | String | ||
templateParentFolderId | String | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
PendingTemplate createPDFTemplateFromUpload(createTemplateFromUploadData)
Create a new PDF template from a cached presign upload
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var createTemplateFromUploadData = new DocSpring.CreateTemplateFromUploadData(); // CreateTemplateFromUploadData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createPDFTemplateFromUpload(createTemplateFromUploadData, callback);
Name | Type | Description | Notes |
---|---|---|---|
createTemplateFromUploadData | CreateTemplateFromUploadData |
- Content-Type: application/json
- Accept: application/json
Folder deleteFolder(folderId)
Delete a folder
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var folderId = fld_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteFolder(folderId, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String |
- Content-Type: Not defined
- Accept: application/json
UpdateTemplateResponse deleteTemplate(templateId)
Delete a template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteTemplate(templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String |
- Content-Type: Not defined
- Accept: application/json
CombinedSubmission expireCombinedSubmission(combinedSubmissionId)
Expire a combined submission
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var combinedSubmissionId = com_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.expireCombinedSubmission(combinedSubmissionId, callback);
Name | Type | Description | Notes |
---|---|---|---|
combinedSubmissionId | String |
- Content-Type: Not defined
- Accept: application/json
Submission expireSubmission(submissionId)
Expire a PDF submission
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var submissionId = sub_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.expireSubmission(submissionId, callback);
Name | Type | Description | Notes |
---|---|---|---|
submissionId | String |
- Content-Type: Not defined
- Accept: application/json
CreateSubmissionResponse generatePDF(templateId, submissionData)
Generates a new PDF
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var submissionData = new DocSpring.SubmissionData(); // SubmissionData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.generatePDF(templateId, submissionData, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
submissionData | SubmissionData |
- Content-Type: application/json
- Accept: application/json
CombinedSubmission getCombinedSubmission(combinedSubmissionId)
Check the status of a combined submission (merged PDFs)
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var combinedSubmissionId = com_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getCombinedSubmission(combinedSubmissionId, callback);
Name | Type | Description | Notes |
---|---|---|---|
combinedSubmissionId | String |
- Content-Type: Not defined
- Accept: application/json
SubmissionDataRequest getDataRequest(dataRequestId)
Look up a submission data request
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var dataRequestId = drq_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDataRequest(dataRequestId, callback);
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | String |
- Content-Type: Not defined
- Accept: application/json
FullTemplate getFullTemplate(templateId)
Fetch the full template attributes
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getFullTemplate(templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String |
- Content-Type: Not defined
- Accept: application/json
{String: Object} getPresignUrl()
Get a presigned URL so that you can upload a file to our AWS S3 bucket
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getPresignUrl(callback);
This endpoint does not need any parameter.
{String: Object}
- Content-Type: Not defined
- Accept: application/json
Submission getSubmission(submissionId, opts)
Check the status of a PDF
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var submissionId = sub_000000000000000001; // String |
var opts = {
'includeData': true // Boolean |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getSubmission(submissionId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
submissionId | String | ||
includeData | Boolean | [optional] |
- Content-Type: Not defined
- Accept: application/json
SubmissionBatch getSubmissionBatch(submissionBatchId, opts)
Check the status of a submission batch job
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var submissionBatchId = sbb_000000000000000001; // String |
var opts = {
'includeSubmissions': true // Boolean |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getSubmissionBatch(submissionBatchId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
submissionBatchId | String | ||
includeSubmissions | Boolean | [optional] |
- Content-Type: Not defined
- Accept: application/json
Template getTemplate(templateId)
Check the status of an uploaded template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getTemplate(templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String |
- Content-Type: Not defined
- Accept: application/json
{String: Object} getTemplateSchema(templateId)
Fetch the JSON schema for a template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getTemplateSchema(templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String |
{String: Object}
- Content-Type: Not defined
- Accept: application/json
[CombinedSubmission] listCombinedSubmissions(opts)
Get a list of all combined submissions
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var opts = {
'page': 2, // Number | Default: 1
'perPage': 1 // Number | Default: 50
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listCombinedSubmissions(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
page | Number | Default: 1 | [optional] |
perPage | Number | Default: 50 | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Folder] listFolders(opts)
Get a list of all folders
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var opts = {
'parentFolderId': fld_000000000000000002 // String | Filter By Folder Id
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listFolders(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
parentFolderId | String | Filter By Folder Id | [optional] |
- Content-Type: Not defined
- Accept: application/json
ListSubmissionsResponse listSubmissions(opts)
List all submissions
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var opts = {
'cursor': sub_list_000012, // String |
'limit': 3, // Number |
'createdAfter': 2019-01-01T09:00:00-05:00, // String |
'createdBefore': 2020-01-01T09:00:00.000+0200, // String |
'type': test, // String |
'includeData': true // Boolean |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listSubmissions(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
cursor | String | [optional] | |
limit | Number | [optional] | |
createdAfter | String | [optional] | |
createdBefore | String | [optional] | |
type | String | [optional] | |
includeData | Boolean | [optional] |
- Content-Type: Not defined
- Accept: application/json
ListSubmissionsResponse listSubmissions_0(templateId, opts)
List all submissions for a given template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000002; // String |
var opts = {
'cursor': "cursor_example", // String |
'limit': 3.4, // Number |
'createdAfter': "createdAfter_example", // String |
'createdBefore': "createdBefore_example", // String |
'type': "type_example", // String |
'includeData': true // Boolean |
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listSubmissions_0(templateId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
cursor | String | [optional] | |
limit | Number | [optional] | |
createdAfter | String | [optional] | |
createdBefore | String | [optional] | |
type | String | [optional] | |
includeData | Boolean | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Template] listTemplates(opts)
Get a list of all templates
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var opts = {
'query': 2, // String | Search By Name
'parentFolderId': fld_000000000000000001, // String | Filter By Folder Id
'page': 2, // Number | Default: 1
'perPage': 1 // Number | Default: 50
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listTemplates(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
query | String | Search By Name | [optional] |
parentFolderId | String | Filter By Folder Id | [optional] |
page | Number | Default: 1 | [optional] |
perPage | Number | Default: 50 | [optional] |
- Content-Type: Not defined
- Accept: application/json
Folder moveFolderToFolder(folderId, moveFolderData)
Move a folder
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var folderId = fld_000000000000000001; // String |
var moveFolderData = new DocSpring.MoveFolderData(); // MoveFolderData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.moveFolderToFolder(folderId, moveFolderData, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | ||
moveFolderData | MoveFolderData |
- Content-Type: application/json
- Accept: application/json
Template moveTemplateToFolder(templateId, moveTemplateData)
Move Template to folder
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000001; // String |
var moveTemplateData = new DocSpring.MoveTemplateData(); // MoveTemplateData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.moveTemplateToFolder(templateId, moveTemplateData, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
moveTemplateData | MoveTemplateData |
- Content-Type: application/json
- Accept: application/json
renameFolder(folderId, renameFolderData)
Rename a folder
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var folderId = fld_000000000000000001; // String |
var renameFolderData = new DocSpring.RenameFolderData(); // RenameFolderData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.renameFolder(folderId, renameFolderData, callback);
Name | Type | Description | Notes |
---|---|---|---|
folderId | String | ||
renameFolderData | RenameFolderData |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
AuthenticationSuccessResponse testAuthentication()
Test Authentication
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.testAuthentication(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
UpdateDataRequestResponse updateDataRequest(dataRequestId, updateSubmissionDataRequestData)
Update a submission data request
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var dataRequestId = drq_000000000000000001; // String |
var updateSubmissionDataRequestData = new DocSpring.UpdateSubmissionDataRequestData(); // UpdateSubmissionDataRequestData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateDataRequest(dataRequestId, updateSubmissionDataRequestData, callback);
Name | Type | Description | Notes |
---|---|---|---|
dataRequestId | String | ||
updateSubmissionDataRequestData | UpdateSubmissionDataRequestData |
- Content-Type: application/json
- Accept: application/json
UpdateTemplateResponse updateTemplate(templateId, updateTemplateData)
Update a Template
var DocSpring = require('docspring');
var defaultClient = DocSpring.ApiClient.instance;
// Configure HTTP basic authorization: api_token_basic
var api_token_basic = defaultClient.authentications['api_token_basic'];
api_token_basic.username = 'YOUR USERNAME';
api_token_basic.password = 'YOUR PASSWORD';
var apiInstance = new DocSpring.PDFApi();
var templateId = tpl_000000000000000003; // String |
var updateTemplateData = new DocSpring.UpdateTemplateData(); // UpdateTemplateData |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateTemplate(templateId, updateTemplateData, callback);
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | ||
updateTemplateData | UpdateTemplateData |
- Content-Type: application/json
- Accept: application/json