Custom Connector

DocSpring API Connector

Global

The DocSpring API Connector facilitates seamless integration with the DocSpring service, providing PDF generation, template management, submission processing, and document handling. It acts as a proxy for template creation, PDF generation, batch processing, and document management.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the DocSpring API Connector.

  • Authentication. Test API authentication and verify credentials.
  • Template management. Create, read, update, delete, and manage PDF/HTML templates.
  • PDF generation. Generate individual PDFs from templates.
  • Batch processing. Process multiple PDF submissions in batches.
  • Submission management. Check status, expire, and manage PDF submissions.
  • Combined PDFs. Merge multiple PDFs into single documents.
  • Folder management. Organize templates in folder structures.
  • Custom files. Upload and manage custom files for PDF operations.
  • Data requests. Handle form data collection and processing.
Documentation

Detailed Integration Documentation

Authentication Testing

ActionGET /authentication
PurposeValidates API credentials and tests connectivity to the DocSpring service.
ConfigurationConfigure the connector with the appropriate environment variables.
ParametersRequired:
Authorization – Basic authentication token. Optional:
None.
OutputSuccessful: JSON with status (e.g. success). Failure: error details (e.g. Unauthorized).
Workflow exampleExecute the authentication endpoint with a valid Authorization header, verify status is success, then proceed with API operations.

Template Management

EndpointsGET /templates (list); POST /templates (create); GET /templates/{template_id} (details); PUT /templates/{template_id} (update); DELETE /templates/{template_id} (delete).
PurposeManage PDF and HTML templates for document generation.
ParametersRequired for creation:
Authorization; template configuration (name, type, content). Optional:
parent_folder_id, description, various template settings.
OutputSuccessful: template object (id, name, template_type, document_state, configuration). Failure: error with status code and message.
Workflow exampleCreate a template with POST /templates, retrieve its schema with GET /templates/{id}/schema, then use the template ID for PDF generation.

Single PDF Generation

ActionPOST /templates/{template_id}/submissions
PurposeGenerate a single PDF from a template with provided data.
ParametersRequired:
Authorization; template_id; JSON data for template filling. Optional:
None.
OutputSuccessful: submission object (status, submission details, download URLs when ready). Failure: error with status code and message.
Workflow examplePrepare JSON data matching the template schema, submit to the submissions endpoint, monitor status, then retrieve the generated PDF.

Batch PDF Processing

EndpointsPOST /submissions/batches (create); GET /submissions/batches/{batch_id} (check status).
PurposeProcess multiple PDF generations in a single batch operation.
ParametersRequired:
Authorization; array of submission data objects.
OutputSuccessful: batch object (submission_batch metadata, submissions array, completion_percentage, error_count). Failure: error with status code.
Workflow examplePrepare an array of submission data, submit a batch, monitor status by batch ID, then retrieve individual PDFs as they complete.

Submission Status Management

EndpointsGET /submissions/{submission_id} (status); DELETE /submissions/{submission_id} (expire); GET /submissions (list).
PurposeMonitor and manage the PDF submission lifecycle.
ParametersRequired:
Authorization; submission_id.
OutputSuccessful: submission object (processing state, timestamps, download URLs, validation errors). Failure: error with status code.
Workflow exampleGenerate a submission and obtain its ID, poll until state is processed, retrieve the permanent download URL, then optionally expire it.

PDF Combination Service

EndpointsPOST /combined_submissions (merge); GET /combined_submissions/{combined_id} (status); DELETE /combined_submissions/{combined_id} (expire).
PurposeCombine multiple PDF documents into a single file.
ParametersRequired:
Authorization; source_pdfs – array of PDF sources (submissions, templates, URLs).
OutputSuccessful: combined submission object (metadata, status, download URL, source references). Failure: error with status code.
Workflow exampleIdentify PDF sources to combine, submit a combination request, monitor status, then download the merged PDF.

Example Workflow: Document Generation Pipeline

Template setupCreate or upload a template with POST /templates, retrieve its schema, and validate the data structure.
Single generationExecute POST /templates/{id}/submissions with JSON data, monitor status, then download the PDF.
Batch processingPrepare multiple payloads, submit via POST /submissions/batches, track progress, and retrieve PDFs as available.
Document managementOrganize templates in folders, combine related PDFs, and manage the submission lifecycle.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support