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 |
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 |
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(ctx, templateId, addFieldsData) Add new fields to a Template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
addFieldsData | AddFieldsData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]CreateSubmissionResponse BatchGeneratePdfV1(ctx, templateId, mapStringinterface) Generates multiple PDFs
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
mapStringinterface | []map[string]interface{} |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionBatchResponse BatchGeneratePdfs(ctx, submissionBatchData) Generates multiple PDFs
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
submissionBatchData | SubmissionBatchData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateCombinedSubmissionResponse CombinePdfs(ctx, combinePdfsData) Merge submission PDFs, template PDFs, or custom files
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
combinePdfsData | CombinePdfsData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateCombinedSubmissionResponse CombineSubmissions(ctx, combinedSubmissionData) Merge generated PDFs together
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
combinedSubmissionData | CombinedSubmissionData |
CreateCombinedSubmissionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template CopyTemplate(ctx, templateId, copyTemplateData) Copy a Template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
copyTemplateData | CopyTemplateData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateCustomFileResponse CreateCustomFileFromUpload(ctx, createCustomFileData) Create a new custom file from a cached presign upload
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
createCustomFileData | CreateCustomFileData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionDataRequestTokenResponse CreateDataRequestToken(ctx, dataRequestId) Creates a new data request token for form authentication
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
dataRequestId | string |
CreateSubmissionDataRequestTokenResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder CreateFolder(ctx, createFolderData) Create a folder
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
createFolderData | CreateFolderData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingTemplate CreateHTMLTemplate(ctx, createHtmlTemplateData) Create a new HTML template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
createHtmlTemplateData | CreateHtmlTemplateData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingTemplate CreatePDFTemplate(ctx, templateDocument, templateName, optional) Create a new PDF template with a form POST file upload
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateDocument | os.Fileos.File | ||
templateName | string | ||
optional | *CreatePDFTemplateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a CreatePDFTemplateOpts struct
Name | Type | Description | Notes |
---|
templateParentFolderId | optional.String| |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PendingTemplate CreatePDFTemplateFromUpload(ctx, createTemplateFromUploadData) Create a new PDF template from a cached presign upload
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
createTemplateFromUploadData | CreateTemplateFromUploadData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder DeleteFolder(ctx, folderId) Delete a folder
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
folderId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CombinedSubmission ExpireCombinedSubmission(ctx, combinedSubmissionId) Expire a combined submission
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
combinedSubmissionId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Submission ExpireSubmission(ctx, submissionId) Expire a PDF submission
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
submissionId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubmissionResponse GeneratePDF(ctx, templateId, submissionData) Generates a new PDF
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
submissionData | SubmissionData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CombinedSubmission GetCombinedSubmission(ctx, combinedSubmissionId) Check the status of a combined submission (merged PDFs)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
combinedSubmissionId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmissionDataRequest GetDataRequest(ctx, dataRequestId) Look up a submission data request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
dataRequestId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template1 GetFullTemplate(ctx, templateId) Fetch the full template attributes
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]map[string]interface{} GetPresignUrl(ctx, ) Get a presigned URL so that you can upload a file to our AWS S3 bucket
This endpoint does not need any parameter.
map[string]map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Submission GetSubmission(ctx, submissionId, optional) Check the status of a PDF
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
submissionId | string | ||
optional | *GetSubmissionOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetSubmissionOpts struct
Name | Type | Description | Notes |
---|
includeData | optional.Bool| |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmissionBatch GetSubmissionBatch(ctx, submissionBatchId, optional) Check the status of a submission batch job
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
submissionBatchId | string | ||
optional | *GetSubmissionBatchOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetSubmissionBatchOpts struct
Name | Type | Description | Notes |
---|
includeSubmissions | optional.Bool| |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template GetTemplate(ctx, templateId) Check the status of an uploaded template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]map[string]interface{} GetTemplateSchema(ctx, templateId) Fetch the JSON schema for a template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string |
map[string]map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Folder ListFolders(ctx, optional) Get a list of all folders
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *ListFoldersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ListFoldersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
parentFolderId | optional.String | Filter By Folder Id |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSubmissionsResponse ListSubmissions(ctx, optional) List all submissions
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *ListSubmissionsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ListSubmissionsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
cursor | optional.String | ||
limit | optional.Float32 | ||
createdAfter | optional.String | ||
createdBefore | optional.String | ||
type_ | optional.String | ||
includeData | optional.Bool |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSubmissionsResponse ListSubmissions_0(ctx, templateId, optional) List all submissions for a given template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
optional | *ListSubmissions_1Opts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ListSubmissions_1Opts struct
Name | Type | Description | Notes |
---|
cursor | optional.String| | limit | optional.Float32| | createdAfter | optional.String| | createdBefore | optional.String| | type_ | optional.String| | includeData | optional.Bool| |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Template ListTemplates(ctx, optional) Get a list of all templates
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *ListTemplatesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ListTemplatesOpts struct
Name | Type | Description | Notes |
---|---|---|---|
query | optional.String | Search By Name | |
parentFolderId | optional.String | Filter By Folder Id | |
page | optional.Int32 | Default: 1 | |
perPage | optional.Int32 | Default: 50 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Folder MoveFolderToFolder(ctx, folderId, moveFolderData) Move a folder
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
folderId | string | ||
moveFolderData | MoveFolderData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Template MoveTemplateToFolder(ctx, templateId, moveTemplateData) Move Template to folder
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
moveTemplateData | MoveTemplateData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RenameFolder(ctx, folderId, renameFolderData) Rename a folder
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
folderId | string | ||
renameFolderData | RenameFolderData |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthenticationSuccessResponse TestAuthentication(ctx, ) Test Authentication
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateDataRequestResponse UpdateDataRequest(ctx, dataRequestId, updateSubmissionDataRequestData) Update a submission data request
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
dataRequestId | string | ||
updateSubmissionDataRequestData | UpdateSubmissionDataRequestData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateTemplateResponse UpdateTemplate(ctx, templateId, updateTemplateData) Update a Template
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string | ||
updateTemplateData | UpdateTemplateData |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]