# Add envelope annotation
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/add-envelope-annotation
post /envelope/{envelope_id}/annotation
# Add envelope document
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/add-envelope-document
post /envelope/{envelope_id}/document
# Add envelope signing steps
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/add-envelope-signing-steps
post /envelope/{envelope_id}/signing_steps
# Add template annotation
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/add-template-annotation
post /template/{template_id}/annotation
# Add template document
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/add-template-document
post /template/{template_id}/document
# Add template signing steps
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/add-template-signing-steps
post /template/{template_id}/signing_steps
# Create new envelope
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/create-new-envelope
post /envelope
# Create new envelope from template
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/create-new-envelope-from-template
post /envelope/from_template/{template_id}
# Create new template
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/create-new-template
post /template
# Create webhook
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/create-webhook
post /webhook
# Delete envelope
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/delete-envelope
delete /envelope/{envelope_id}
# Delete envelope annotation
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/delete-envelope-annotation
delete /envelope/{envelope_id}/annotation/{annotation_id}
# Delete template
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/delete-template
delete /template/{template_id}
# Delete template annotation
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/delete-template-annotation
delete /template/{template_id}/annotation/{annotation_id}
# Delete webhook
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/delete-webhook
delete /webhook/{webhook_id}
# Duplicate envelope
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/duplicate-envelope
post /envelope/{envelope_id}/duplicate
# Duplicate template
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/duplicate-template
post /template/{template_id}/duplicate
# Get document template annotations
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-document-template-annotations
get /template/{template_id}/annotations/{document_id}
# Get envelope
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope
get /envelope/{envelope_id}
# Get envelope annotations
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-annotations
get /envelope/{envelope_id}/annotations
# Get envelope attachment file
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-attachment-file
get /envelope/{envelope_id}/attachments/{file_id}
# Download certificate of completion
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-certificate
get /envelope/{envelope_id}/certificate
Download certificate of completion for an envelope
# Get envelope document
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-document
get /envelope/{envelope_id}/document/{document_id}
# Get envelope document annotations
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-document-annotations
get /envelope/{envelope_id}/annotations/{document_id}
# Get envelope documents
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-documents
get /envelope/{envelope_id}/documents
# Download a single signed document
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-signed-document
get /envelope/{envelope_id}/signed_documents/{document_id}
Download a single signed document for an envelope
Download a single signed PDF from a completed envelope. This is useful when you need just one document instead of the full PDF Portfolio.
# Download signed documents
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-envelope-signed_documents
get /envelope/{envelope_id}/signed_documents
Download signed documents for an envelope
# Get template
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-template
get /template/{template_id}
# Get template annotations
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-template-annotations
get /template/{template_id}/annotations
# Get template document
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-template-document
get /template/{template_id}/document/{document_id}
# Get template documents
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/get-template-documents
get /template/{template_id}/documents
# List envelopes
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/list-envelopes
post /envelopes
# List templates
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/list-templates
post /templates
# List webhooks
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/list-webhooks
post /webhooks
# Rename envelope
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/rename-envelope
put /envelope/{envelope_id}/rename
# Rename template
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/rename-template
put /template/{template_id}/rename
# Send envelope for signature
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/send-envelope-for-signature
post /envelope/{envelope_id}/send
# Set envelope attachment placeholders
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-attachment-placeholders
put /envelope/{envelope_id}/attachments/placeholders
Placeholders to be set, completely replacing the existing ones.
# Set envelope attachment settings
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-attachment-settings
put /envelope/{envelope_id}/attachments/settings
# Set envelope comment
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-comment
put /envelope/{envelope_id}/set_comment
# Set envelope dynamic fields
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-dynamic-fields
put /envelope/{envelope_id}/dynamic_fields
# Set envelope expiration date
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-expiration-date
put /envelope/{envelope_id}/set_expiration_date
# Set envelope legality level
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-legality-level
put /envelope/{envelope_id}/set_legality_level
# Set envelope notification
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-envelope-notification
put /envelope/{envelope_id}/set_notification
# Set template attachment placeholders
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-template-attachment-placeholders
put /template/{template_id}/attachments/placeholders
Placeholders to be set, completely replacing the existing ones.
# Set template attachment settings
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-template-attachment-settings
put /template/{template_id}/attachments/settings
# Set template comment
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-template-comment
put /template/{template_id}/set_comment
# Set template notification
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/set-template-notification
put /template/{template_id}/set_notification
# Void envelope
Source: https://apidoc.sign.plus/api-reference/endpoints/signplus/void-envelope
put /envelope/{envelope_id}/void
# Install
Source: https://apidoc.sign.plus/backend-sdks/go/install
Install the Signplus Go SDK package
```bash theme={null}
go get github.com/alohihq/signplus-go
```
Call your first SDK method
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
client := signplus.NewSignplus(config)
// Set your access token here (make sure to keep it secret)
client.SetAccessToken("YOUR_ACCESS_TOKEN")
envelopeFlowType := signplus.ENVELOPE_FLOW_TYPE_REQUEST_SIGNATURE
envelopeLegalityLevel := signplus.ENVELOPE_LEGALITY_LEVEL_SES
request := signplus.CreateEnvelopeRequest{}
request.SetName("Name")
request.SetFlowType(envelopeFlowType)
request.SetLegalityLevel(envelopeLegalityLevel)
response, err := client.Signplus.CreateEnvelope(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Print(response)
```
Check out the SDK reference to see all the available methods and options
# Sdk reference
Source: https://apidoc.sign.plus/backend-sdks/go/sdk-reference
A list of all methods in the `SignplusService` service. Click on the method name to view detailed information about that method.
| Methods | Description |
| :------------------------------------------------------------------------ | :-------------------------------------------------------------- |
| [CreateEnvelope](#createenvelope) | Create new envelope |
| [CreateEnvelopeFromTemplate](#createenvelopefromtemplate) | Create new envelope from template |
| [ListEnvelopes](#listenvelopes) | List envelopes |
| [GetEnvelope](#getenvelope) | Get envelope |
| [DeleteEnvelope](#deleteenvelope) | Delete envelope |
| [DownloadEnvelopeSignedDocuments](#downloadenvelopesigneddocuments) | Download signed documents for an envelope |
| [DownloadEnvelopeCertificate](#downloadenvelopecertificate) | Download certificate of completion for an envelope |
| [GetEnvelopeDocument](#getenvelopedocument) | Get envelope document |
| [GetEnvelopeDocuments](#getenvelopedocuments) | Get envelope documents |
| [AddEnvelopeDocument](#addenvelopedocument) | Add envelope document |
| [SetEnvelopeDynamicFields](#setenvelopedynamicfields) | Set envelope dynamic fields |
| [AddEnvelopeSigningSteps](#addenvelopesigningsteps) | Add envelope signing steps |
| [SetEnvelopeAttachmentsSettings](#setenvelopeattachmentssettings) | Set envelope attachment settings |
| [SetEnvelopeAttachmentsPlaceholders](#setenvelopeattachmentsplaceholders) | Placeholders to be set, completely replacing the existing ones. |
| [GetAttachmentFile](#getattachmentfile) | Get envelope attachment file |
| [SendEnvelope](#sendenvelope) | Send envelope for signature |
| [DuplicateEnvelope](#duplicateenvelope) | Duplicate envelope |
| [VoidEnvelope](#voidenvelope) | Void envelope |
| [RenameEnvelope](#renameenvelope) | Rename envelope |
| [SetEnvelopeComment](#setenvelopecomment) | Set envelope comment |
| [SetEnvelopeNotification](#setenvelopenotification) | Set envelope notification |
| [SetEnvelopeExpirationDate](#setenvelopeexpirationdate) | Set envelope expiration date |
| [SetEnvelopeLegalityLevel](#setenvelopelegalitylevel) | Set envelope legality level |
| [GetEnvelopeAnnotations](#getenvelopeannotations) | Get envelope annotations |
| [GetEnvelopeDocumentAnnotations](#getenvelopedocumentannotations) | Get envelope document annotations |
| [AddEnvelopeAnnotation](#addenvelopeannotation) | Add envelope annotation |
| [DeleteEnvelopeAnnotation](#deleteenvelopeannotation) | Delete envelope annotation |
| [CreateTemplate](#createtemplate) | Create new template |
| [ListTemplates](#listtemplates) | List templates |
| [GetTemplate](#gettemplate) | Get template |
| [DeleteTemplate](#deletetemplate) | Delete template |
| [DuplicateTemplate](#duplicatetemplate) | Duplicate template |
| [AddTemplateDocument](#addtemplatedocument) | Add template document |
| [GetTemplateDocument](#gettemplatedocument) | Get template document |
| [GetTemplateDocuments](#gettemplatedocuments) | Get template documents |
| [AddTemplateSigningSteps](#addtemplatesigningsteps) | Add template signing steps |
| [RenameTemplate](#renametemplate) | Rename template |
| [SetTemplateComment](#settemplatecomment) | Set template comment |
| [SetTemplateNotification](#settemplatenotification) | Set template notification |
| [GetTemplateAnnotations](#gettemplateannotations) | Get template annotations |
| [GetDocumentTemplateAnnotations](#getdocumenttemplateannotations) | Get document template annotations |
| [AddTemplateAnnotation](#addtemplateannotation) | Add template annotation |
| [DeleteTemplateAnnotation](#deletetemplateannotation) | Delete template annotation |
| [SetTemplateAttachmentsSettings](#settemplateattachmentssettings) | Set template attachment settings |
| [SetTemplateAttachmentsPlaceholders](#settemplateattachmentsplaceholders) | Placeholders to be set, completely replacing the existing ones. |
| [CreateWebhook](#createwebhook) | Create webhook |
| [ListWebhooks](#listwebhooks) | List webhooks |
| [DeleteWebhook](#deletewebhook) | Delete webhook |
## CreateEnvelope
Create new envelope
* HTTP Method: `POST`
* Endpoint: `/envelope`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :----------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| createEnvelopeRequest | [CreateEnvelopeRequest](/api-reference/endpoints/signplus/create-new-envelope) | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
envelopeLegalityLevel := signplus.ENVELOPE_LEGALITY_LEVEL_SES
request := signplus.CreateEnvelopeRequest{
Name: util.ToPointer("name"),
LegalityLevel: &envelopeLegalityLevel,
ExpiresAt: util.ToPointer(int64(8)),
Comment: util.ToPointer("comment"),
Sandbox: util.ToPointer(true),
}
response, err := client.Signplus.CreateEnvelope(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## CreateEnvelopeFromTemplate
Create new envelope from template
* HTTP Method: `POST`
* Endpoint: `/envelope/from_template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :-------------------------------- | :------------------------------------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| createEnvelopeFromTemplateRequest | [CreateEnvelopeFromTemplateRequest](/api-reference/endpoints/signplus/create-new-envelope-from-template) | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.CreateEnvelopeFromTemplateRequest{
Name: util.ToPointer("name"),
Comment: util.ToPointer("comment"),
Sandbox: util.ToPointer(true),
}
response, err := client.Signplus.CreateEnvelopeFromTemplate(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## ListEnvelopes
List envelopes
* HTTP Method: `POST`
* Endpoint: `/envelopes`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :----------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| listEnvelopesRequest | [ListEnvelopesRequest](/api-reference/endpoints/signplus/list-envelopes) | ✅ | |
**Return Type**
`ListEnvelopesResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
envelopeStatus := signplus.ENVELOPE_STATUS_DRAFT
envelopeOrderField := signplus.ENVELOPE_ORDER_FIELD_CREATION_DATE
request := signplus.ListEnvelopesRequest{
Name: util.ToPointer("name"),
Tags: []string{},
Comment: util.ToPointer("comment"),
Ids: []string{},
Statuses: []signplus.EnvelopeStatus{envelopeStatus},
FolderIds: []string{},
OnlyRootFolder: util.ToPointer(true),
DateFrom: util.ToPointer(int64(5)),
DateTo: util.ToPointer(int64(9)),
Uid: util.ToPointer("uid"),
First: util.ToPointer(int64(9)),
Last: util.ToPointer(int64(7)),
After: util.ToPointer("after"),
Before: util.ToPointer("before"),
OrderField: &envelopeOrderField,
Ascending: util.ToPointer(true),
IncludeTrash: util.ToPointer(true),
}
response, err := client.Signplus.ListEnvelopes(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetEnvelope
Get envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetEnvelope(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DeleteEnvelope
Delete envelope
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
**Return Type**
`any`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DeleteEnvelope(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DownloadEnvelopeSignedDocuments
Download signed documents for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/signed_documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------- | :------- | :---------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | ID of the envelope |
| params | DownloadEnvelopeSignedDocumentsRequestParams | ✅ | Additional request parameters |
**Return Type**
`[]byte`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
params := signplus.DownloadEnvelopeSignedDocumentsRequestParams{
}
response, err := client.Signplus.DownloadEnvelopeSignedDocuments(context.Background(), "envelope_id", params)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DownloadEnvelopeCertificate
Download certificate of completion for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/certificate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`[]byte`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DownloadEnvelopeCertificate(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetEnvelopeDocument
Get envelope document
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| documentId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetEnvelopeDocument(context.Background(), "envelope_id", "document_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetEnvelopeDocuments
Get envelope documents
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
**Return Type**
`ListEnvelopeDocumentsResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetEnvelopeDocuments(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## AddEnvelopeDocument
Add envelope document
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :------------------------- | :------------------------------------------------------------------------------------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| addEnvelopeDocumentRequest | [AddEnvelopeDocumentRequest](/api-reference/endpoints/signplus/add-envelope-document) | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.AddEnvelopeDocumentRequest{
File: []byte{},
}
response, err := client.Signplus.AddEnvelopeDocument(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeDynamicFields
Set envelope dynamic fields
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/dynamic_fields`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------ | :----------------------------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| setEnvelopeDynamicFieldsRequest | [SetEnvelopeDynamicFieldsRequest](/api-reference/endpoints/signplus/set-envelope-dynamic-fields) | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
dynamicField := signplus.DynamicField{
Name: util.ToPointer("name"),
Value: util.ToPointer("value"),
}
request := signplus.SetEnvelopeDynamicFieldsRequest{
DynamicFields: []signplus.DynamicField{dynamicField},
}
response, err := client.Signplus.SetEnvelopeDynamicFields(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## AddEnvelopeSigningSteps
Add envelope signing steps
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :----------------------------- | :--------------------------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| addEnvelopeSigningStepsRequest | [AddEnvelopeSigningStepsRequest](/api-reference/endpoints/signplus/add-envelope-signing-steps) | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
recipientRole := signplus.RECIPIENT_ROLE_SIGNER
recipientVerificationType := signplus.RECIPIENT_VERIFICATION_TYPE_SMS
recipientVerification := signplus.RecipientVerification{
Type_: &recipientVerificationType,
Value: util.ToPointer("value"),
}
recipient := signplus.Recipient{
Id: util.ToPointer("id"),
Uid: util.ToPointer("uid"),
Name: util.ToPointer("name"),
Email: util.ToPointer("email"),
Role: &recipientRole,
Verification: &recipientVerification,
}
signingStep := signplus.SigningStep{
Recipients: []signplus.Recipient{recipient},
}
request := signplus.AddEnvelopeSigningStepsRequest{
SigningSteps: []signplus.SigningStep{signingStep},
}
response, err := client.Signplus.AddEnvelopeSigningSteps(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeAttachmentsSettings
Set envelope attachment settings
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------------ | :------------------------------------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| setEnvelopeAttachmentsSettingsRequest | SetEnvelopeAttachmentsSettingsRequest | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
attachmentSettings := signplus.AttachmentSettings{
VisibleToRecipients: util.ToPointer(true),
}
request := signplus.SetEnvelopeAttachmentsSettingsRequest{
Settings: &attachmentSettings,
}
response, err := client.Signplus.SetEnvelopeAttachmentsSettings(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeAttachmentsPlaceholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :---------------------------------------- | :---------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| setEnvelopeAttachmentsPlaceholdersRequest | SetEnvelopeAttachmentsPlaceholdersRequest | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
attachmentPlaceholderRequest := signplus.AttachmentPlaceholderRequest{
RecipientId: util.ToPointer("recipient_id"),
Id: util.ToPointer("id"),
Name: util.ToPointer("name"),
Hint: util.ToPointer("hint"),
Required: util.ToPointer(true),
Multiple: util.ToPointer(true),
}
request := signplus.SetEnvelopeAttachmentsPlaceholdersRequest{
Placeholders: []signplus.AttachmentPlaceholderRequest{attachmentPlaceholderRequest},
}
response, err := client.Signplus.SetEnvelopeAttachmentsPlaceholders(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetAttachmentFile
Get envelope attachment file
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/attachments/{file_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| fileId | string | ✅ | |
**Return Type**
`[]byte`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetAttachmentFile(context.Background(), "envelope_id", "file_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SendEnvelope
Send envelope for signature
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/send`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.SendEnvelope(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DuplicateEnvelope
Duplicate envelope
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DuplicateEnvelope(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## VoidEnvelope
Void envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/void`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.VoidEnvelope(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## RenameEnvelope
Rename envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| renameEnvelopeRequest | [RenameEnvelopeRequest](/api-reference/endpoints/signplus/rename-envelope) | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.RenameEnvelopeRequest{
Name: util.ToPointer("name"),
}
response, err := client.Signplus.RenameEnvelope(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeComment
Set envelope comment
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :------------------------ | :---------------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| setEnvelopeCommentRequest | [SetEnvelopeCommentRequest](/api-reference/endpoints/signplus/set-envelope-comment) | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.SetEnvelopeCommentRequest{
Comment: util.ToPointer("comment"),
}
response, err := client.Signplus.SetEnvelopeComment(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeNotification
Set envelope notification
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| envelopeNotification | EnvelopeNotification | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.EnvelopeNotification{
Subject: util.ToPointer("subject"),
Message: util.ToPointer("message"),
ReminderInterval: util.ToPointer(int64(1)),
}
response, err := client.Signplus.SetEnvelopeNotification(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeExpirationDate
Set envelope expiration date
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_expiration_date`
**Parameters**
| Name | Type | Required | Description |
| :--------------------------- | :--------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| setEnvelopeExpirationRequest | SetEnvelopeExpirationRequest | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.SetEnvelopeExpirationRequest{
ExpiresAt: util.ToPointer(int64(0)),
}
response, err := client.Signplus.SetEnvelopeExpirationDate(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetEnvelopeLegalityLevel
Set envelope legality level
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_legality_level`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------ | :------------------------------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | |
| setEnvelopeLegalityLevelRequest | SetEnvelopeLegalityLevelRequest | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
envelopeLegalityLevel := signplus.ENVELOPE_LEGALITY_LEVEL_SES
request := signplus.SetEnvelopeLegalityLevelRequest{
LegalityLevel: &envelopeLegalityLevel,
}
response, err := client.Signplus.SetEnvelopeLegalityLevel(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetEnvelopeAnnotations
Get envelope annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`[]Annotation`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetEnvelopeAnnotations(context.Background(), "envelope_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetEnvelopeDocumentAnnotations
Get envelope document annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | ID of the envelope |
| documentId | string | ✅ | ID of document |
**Return Type**
`ListEnvelopeDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetEnvelopeDocumentAnnotations(context.Background(), "envelope_id", "document_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## AddEnvelopeAnnotation
Add envelope annotation
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :-------------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | ID of the envelope |
| addAnnotationRequest | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
annotationType := signplus.ANNOTATION_TYPE_TEXT
annotationSignature := signplus.AnnotationSignature{
Id: util.ToPointer("id"),
}
annotationInitials := signplus.AnnotationInitials{
Id: util.ToPointer("id"),
}
annotationFontFamily := signplus.ANNOTATION_FONT_FAMILY_UNKNOWN
annotationFont := signplus.AnnotationFont{
Family: &annotationFontFamily,
Italic: util.ToPointer(true),
Bold: util.ToPointer(true),
}
annotationText := signplus.AnnotationText{
Size: util.ToPointer(float64(5.96)),
Color: util.ToPointer(float64(8.73)),
Value: util.ToPointer("value"),
Tooltip: util.ToPointer("tooltip"),
DynamicFieldName: util.ToPointer("dynamic_field_name"),
Font: &annotationFont,
}
annotationFontFamily := signplus.ANNOTATION_FONT_FAMILY_UNKNOWN
annotationFont := signplus.AnnotationFont{
Family: &annotationFontFamily,
Italic: util.ToPointer(true),
Bold: util.ToPointer(true),
}
annotationDateTimeFormat := signplus.ANNOTATION_DATE_TIME_FORMAT_DMY_NUMERIC_SLASH
annotationDateTime := signplus.AnnotationDateTime{
Size: util.ToPointer(float64(0.26)),
Font: &annotationFont,
Color: util.ToPointer("color"),
AutoFill: util.ToPointer(true),
Timezone: util.ToPointer("timezone"),
Timestamp: util.ToPointer(int64(1)),
Format: &annotationDateTimeFormat,
}
annotationCheckboxStyle := signplus.ANNOTATION_CHECKBOX_STYLE_CIRCLE_CHECK
annotationCheckbox := signplus.AnnotationCheckbox{
Checked: util.ToPointer(true),
Style: &annotationCheckboxStyle,
}
request := signplus.AddAnnotationRequest{
RecipientId: util.ToPointer("recipient_id"),
DocumentId: util.ToPointer("document_id"),
Page: util.ToPointer(int64(2)),
X: util.ToPointer(float64(1.99)),
Y: util.ToPointer(float64(8.2)),
Width: util.ToPointer(float64(4.89)),
Height: util.ToPointer(float64(9.43)),
Required: util.ToPointer(true),
Type_: &annotationType,
Signature: &annotationSignature,
Initials: &annotationInitials,
Text: &annotationText,
Datetime: &annotationDateTime,
Checkbox: &annotationCheckbox,
}
response, err := client.Signplus.AddEnvelopeAnnotation(context.Background(), "envelope_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DeleteEnvelopeAnnotation
Delete envelope annotation
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------ | :------- | :----------------------------- |
| ctx | Context | ✅ | Default go language context |
| envelopeId | string | ✅ | ID of the envelope |
| annotationId | string | ✅ | ID of the annotation to delete |
**Return Type**
`any`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DeleteEnvelopeAnnotation(context.Background(), "envelope_id", "annotation_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## CreateTemplate
Create new template
* HTTP Method: `POST`
* Endpoint: `/template`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :----------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| createTemplateRequest | [CreateTemplateRequest](/api-reference/endpoints/signplus/create-new-template) | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.CreateTemplateRequest{
Name: util.ToPointer("name"),
}
response, err := client.Signplus.CreateTemplate(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## ListTemplates
List templates
* HTTP Method: `POST`
* Endpoint: `/templates`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :----------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| listTemplatesRequest | [ListTemplatesRequest](/api-reference/endpoints/signplus/list-templates) | ✅ | |
**Return Type**
`ListTemplatesResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
templateOrderField := signplus.TEMPLATE_ORDER_FIELD_TEMPLATE_ID
request := signplus.ListTemplatesRequest{
Name: util.ToPointer("name"),
Tags: []string{},
Ids: []string{},
First: util.ToPointer(int64(1)),
Last: util.ToPointer(int64(6)),
After: util.ToPointer("after"),
Before: util.ToPointer("before"),
OrderField: &templateOrderField,
Ascending: util.ToPointer(true),
}
response, err := client.Signplus.ListTemplates(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetTemplate
Get template
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetTemplate(context.Background(), "template_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DeleteTemplate
Delete template
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
**Return Type**
`any`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DeleteTemplate(context.Background(), "template_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DuplicateTemplate
Duplicate template
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DuplicateTemplate(context.Background(), "template_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## AddTemplateDocument
Add template document
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :------------------------- | :------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| addTemplateDocumentRequest | AddTemplateDocumentRequest | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.AddTemplateDocumentRequest{
File: []byte{},
}
response, err := client.Signplus.AddTemplateDocument(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetTemplateDocument
Get template document
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| documentId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetTemplateDocument(context.Background(), "template_id", "document_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetTemplateDocuments
Get template documents
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
**Return Type**
`ListTemplateDocumentsResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetTemplateDocuments(context.Background(), "template_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## AddTemplateSigningSteps
Add template signing steps
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :----------------------------- | :----------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| addTemplateSigningStepsRequest | AddTemplateSigningStepsRequest | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
templateRecipientRole := signplus.TEMPLATE_RECIPIENT_ROLE_SIGNER
templateRecipient := signplus.TemplateRecipient{
Id: util.ToPointer("id"),
Uid: util.ToPointer("uid"),
Name: util.ToPointer("name"),
Email: util.ToPointer("email"),
Role: &templateRecipientRole,
}
templateSigningStep := signplus.TemplateSigningStep{
Recipients: []signplus.TemplateRecipient{templateRecipient},
}
request := signplus.AddTemplateSigningStepsRequest{
SigningSteps: []signplus.TemplateSigningStep{templateSigningStep},
}
response, err := client.Signplus.AddTemplateSigningSteps(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## RenameTemplate
Rename template
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :-------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| renameTemplateRequest | RenameTemplateRequest | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.RenameTemplateRequest{
Name: util.ToPointer("name"),
}
response, err := client.Signplus.RenameTemplate(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetTemplateComment
Set template comment
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :------------------------ | :------------------------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| setTemplateCommentRequest | SetTemplateCommentRequest | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.SetTemplateCommentRequest{
Comment: util.ToPointer("comment"),
}
response, err := client.Signplus.SetTemplateComment(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetTemplateNotification
Set template notification
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| envelopeNotification | EnvelopeNotification | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
request := signplus.EnvelopeNotification{
Subject: util.ToPointer("subject"),
Message: util.ToPointer("message"),
ReminderInterval: util.ToPointer(int64(1)),
}
response, err := client.Signplus.SetTemplateNotification(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetTemplateAnnotations
Get template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | ID of the template |
**Return Type**
`ListTemplateAnnotationsResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetTemplateAnnotations(context.Background(), "template_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## GetDocumentTemplateAnnotations
Get document template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | ID of the template |
| documentId | string | ✅ | ID of document |
**Return Type**
`ListTemplateDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.GetDocumentTemplateAnnotations(context.Background(), "template_id", "document_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## AddTemplateAnnotation
Add template annotation
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :-------------------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | ID of the template |
| addAnnotationRequest | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
annotationType := signplus.ANNOTATION_TYPE_TEXT
annotationSignature := signplus.AnnotationSignature{
Id: util.ToPointer("id"),
}
annotationInitials := signplus.AnnotationInitials{
Id: util.ToPointer("id"),
}
annotationFontFamily := signplus.ANNOTATION_FONT_FAMILY_UNKNOWN
annotationFont := signplus.AnnotationFont{
Family: &annotationFontFamily,
Italic: util.ToPointer(true),
Bold: util.ToPointer(true),
}
annotationText := signplus.AnnotationText{
Size: util.ToPointer(float64(5.96)),
Color: util.ToPointer(float64(8.73)),
Value: util.ToPointer("value"),
Tooltip: util.ToPointer("tooltip"),
DynamicFieldName: util.ToPointer("dynamic_field_name"),
Font: &annotationFont,
}
annotationFontFamily := signplus.ANNOTATION_FONT_FAMILY_UNKNOWN
annotationFont := signplus.AnnotationFont{
Family: &annotationFontFamily,
Italic: util.ToPointer(true),
Bold: util.ToPointer(true),
}
annotationDateTimeFormat := signplus.ANNOTATION_DATE_TIME_FORMAT_DMY_NUMERIC_SLASH
annotationDateTime := signplus.AnnotationDateTime{
Size: util.ToPointer(float64(0.26)),
Font: &annotationFont,
Color: util.ToPointer("color"),
AutoFill: util.ToPointer(true),
Timezone: util.ToPointer("timezone"),
Timestamp: util.ToPointer(int64(1)),
Format: &annotationDateTimeFormat,
}
annotationCheckboxStyle := signplus.ANNOTATION_CHECKBOX_STYLE_CIRCLE_CHECK
annotationCheckbox := signplus.AnnotationCheckbox{
Checked: util.ToPointer(true),
Style: &annotationCheckboxStyle,
}
request := signplus.AddAnnotationRequest{
RecipientId: util.ToPointer("recipient_id"),
DocumentId: util.ToPointer("document_id"),
Page: util.ToPointer(int64(2)),
X: util.ToPointer(float64(1.99)),
Y: util.ToPointer(float64(8.2)),
Width: util.ToPointer(float64(4.89)),
Height: util.ToPointer(float64(9.43)),
Required: util.ToPointer(true),
Type_: &annotationType,
Signature: &annotationSignature,
Initials: &annotationInitials,
Text: &annotationText,
Datetime: &annotationDateTime,
Checkbox: &annotationCheckbox,
}
response, err := client.Signplus.AddTemplateAnnotation(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DeleteTemplateAnnotation
Delete template annotation
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------ | :------- | :----------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | ID of the template |
| annotationId | string | ✅ | ID of the annotation to delete |
**Return Type**
`any`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DeleteTemplateAnnotation(context.Background(), "template_id", "annotation_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetTemplateAttachmentsSettings
Set template attachment settings
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------------ | :------------------------------------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| setEnvelopeAttachmentsSettingsRequest | SetEnvelopeAttachmentsSettingsRequest | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
attachmentSettings := signplus.AttachmentSettings{
VisibleToRecipients: util.ToPointer(true),
}
request := signplus.SetEnvelopeAttachmentsSettingsRequest{
Settings: &attachmentSettings,
}
response, err := client.Signplus.SetTemplateAttachmentsSettings(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## SetTemplateAttachmentsPlaceholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :---------------------------------------- | :---------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| templateId | string | ✅ | |
| setEnvelopeAttachmentsPlaceholdersRequest | SetEnvelopeAttachmentsPlaceholdersRequest | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
attachmentPlaceholderRequest := signplus.AttachmentPlaceholderRequest{
RecipientId: util.ToPointer("recipient_id"),
Id: util.ToPointer("id"),
Name: util.ToPointer("name"),
Hint: util.ToPointer("hint"),
Required: util.ToPointer(true),
Multiple: util.ToPointer(true),
}
request := signplus.SetEnvelopeAttachmentsPlaceholdersRequest{
Placeholders: []signplus.AttachmentPlaceholderRequest{attachmentPlaceholderRequest},
}
response, err := client.Signplus.SetTemplateAttachmentsPlaceholders(context.Background(), "template_id", request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## CreateWebhook
Create webhook
* HTTP Method: `POST`
* Endpoint: `/webhook`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :----------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| createWebhookRequest | [CreateWebhookRequest](/api-reference/endpoints/signplus/create-webhook) | ✅ | |
**Return Type**
`Webhook`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
webhookEvent := signplus.WEBHOOK_EVENT_ENVELOPE_EXPIRED
request := signplus.CreateWebhookRequest{
Event: &webhookEvent,
Target: util.ToPointer("target"),
}
response, err := client.Signplus.CreateWebhook(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## ListWebhooks
List webhooks
* HTTP Method: `POST`
* Endpoint: `/webhooks`
**Parameters**
| Name | Type | Required | Description |
| :------------------ | :--------------------------------------------------------------------- | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| listWebhooksRequest | [ListWebhooksRequest](/api-reference/endpoints/signplus/list-webhooks) | ✅ | |
**Return Type**
`ListWebhooksResponse`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
"github.com/alohihq/signplus-go/pkg/util"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
webhookEvent := signplus.WEBHOOK_EVENT_ENVELOPE_EXPIRED
request := signplus.ListWebhooksRequest{
WebhookId: util.ToPointer("webhook_id"),
Event: &webhookEvent,
}
response, err := client.Signplus.ListWebhooks(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
```
## DeleteWebhook
Delete webhook
* HTTP Method: `DELETE`
* Endpoint: `/webhook/{webhook_id}`
**Parameters**
| Name | Type | Required | Description |
| :-------- | :------ | :------- | :-------------------------- |
| ctx | Context | ✅ | Default go language context |
| webhookId | string | ✅ | |
**Return Type**
`any`
**Example Usage Code Snippet**
```go theme={null}
import (
"fmt"
"encoding/json"
"github.com/alohihq/signplus-go/pkg/signplusconfig"
"github.com/alohihq/signplus-go/pkg/signplus"
)
config := signplusconfig.NewConfig()
config.SetAccessToken("ACCESS_TOKEN")
client := signplus.NewSignplus(config)
response, err := client.Signplus.DeleteWebhook(context.Background(), "webhook_id")
if err != nil {
panic(err)
}
fmt.Println(response)
```
# Models
# Document
**Properties**
| Name | Type | Required | Description |
| :-------- | :--------------- | :------- | :-------------------------------- |
| Id | string | ❌ | Unique identifier of the document |
| Name | string | ❌ | Name of the document |
| Filename | string | ❌ | Filename of the document |
| PageCount | int64 | ❌ | Number of pages in the document |
| Pages | \[]signplus.Page | ❌ | List of pages in the document |
# SetEnvelopeAttachmentsSettingsRequest
**Properties**
| Name | Type | Required | Description |
| :------- | :-------------------------- | :------- | :---------- |
| Settings | signplus.AttachmentSettings | ✅ | |
# TemplateSigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :---------------------------- | :------- | :----------------- |
| Recipients | \[]signplus.TemplateRecipient | ❌ | List of recipients |
# ListEnvelopeDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :--------------------- | :------- | :---------- |
| Annotations | \[]signplus.Annotation | ❌ | |
# Template
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------------------------------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Id | string | ❌ | Unique identifier of the template |
| Name | string | ❌ | Name of the template |
| Comment | string | ❌ | Comment for the template |
| Pages | int64 | ❌ | Total number of pages in the template |
| LegalityLevel | signplus.EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| CreatedAt | int64 | ❌ | Unix timestamp of the creation date |
| UpdatedAt | int64 | ❌ | Unix timestamp of the last modification date |
| ExpirationDelay | int64 | ❌ | Expiration delay added to the current time when an envelope is created from this template |
| NumRecipients | int64 | ❌ | Number of recipients in the envelope |
| SigningSteps | \[]signplus.TemplateSigningStep | ❌ | |
| Documents | \[]signplus.Document | ❌ | |
| Notification | signplus.EnvelopeNotification | ❌ | |
| DynamicFields | \[]string | ❌ | List of dynamic fields |
| Attachments | signplus.EnvelopeAttachments | ❌ | |
# WebhookEvent
Event of the webhook
**Properties**
| Name | Type | Required | Description |
| :--------------------- | :----- | :------- | :----------------------- |
| ENVELOPE\_EXPIRED | string | ✅ | "ENVELOPE\_EXPIRED" |
| ENVELOPE\_DECLINED | string | ✅ | "ENVELOPE\_DECLINED" |
| ENVELOPE\_VOIDED | string | ✅ | "ENVELOPE\_VOIDED" |
| ENVELOPE\_COMPLETED | string | ✅ | "ENVELOPE\_COMPLETED" |
| ENVELOPE\_AUDIT\_TRAIL | string | ✅ | "ENVELOPE\_AUDIT\_TRAIL" |
# RenameTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| Name | string | ✅ | Name of the template |
# AnnotationCheckboxStyle
Style of the checkbox
**Properties**
| Name | Type | Required | Description |
| :------------ | :----- | :------- | :-------------- |
| CIRCLE\_CHECK | string | ✅ | "CIRCLE\_CHECK" |
| CIRCLE\_FULL | string | ✅ | "CIRCLE\_FULL" |
| SQUARE\_CHECK | string | ✅ | "SQUARE\_CHECK" |
| SQUARE\_FULL | string | ✅ | "SQUARE\_FULL" |
| CHECK\_MARK | string | ✅ | "CHECK\_MARK" |
| TIMES\_SQUARE | string | ✅ | "TIMES\_SQUARE" |
# AnnotationInitials
Initials annotation (null if annotation is not initials)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------------------- |
| Id | string | ❌ | Unique identifier of the annotation initials |
# AttachmentPlaceholderFile
**Properties**
| Name | Type | Required | Description |
| :------- | :----- | :------- | :------------------------ |
| Id | string | ❌ | ID of the file |
| Name | string | ❌ | Name of the file |
| Size | int64 | ❌ | Size of the file in bytes |
| Mimetype | string | ❌ | MIME type of the file |
# RenameEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| Name | string | ❌ | Name of the envelope |
# DynamicField
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :------------------------- |
| Name | string | ❌ | Name of the dynamic field |
| Value | string | ❌ | Value of the dynamic field |
# SetEnvelopeDynamicFieldsRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :----------------------- | :------- | :--------------------- |
| DynamicFields | \[]signplus.DynamicField | ✅ | List of dynamic fields |
# AddEnvelopeSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :---------------------- | :------- | :-------------------- |
| SigningSteps | \[]signplus.SigningStep | ❌ | List of signing steps |
# EnvelopeFlowType
Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| REQUEST\_SIGNATURE | string | ✅ | "REQUEST\_SIGNATURE" |
| SIGN\_MYSELF | string | ✅ | "SIGN\_MYSELF" |
# SetEnvelopeCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| Comment | string | ✅ | Comment for the envelope |
# AnnotationText
Text annotation (null if annotation is not a text)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :---------------------- | :------- | :--------------------------------- |
| Size | float64 | ❌ | Font size of the text in pt |
| Color | float64 | ❌ | Text color in 32bit representation |
| Value | string | ❌ | Text content of the annotation |
| Tooltip | string | ❌ | Tooltip of the annotation |
| DynamicFieldName | string | ❌ | Name of the dynamic field |
| Font | signplus.AnnotationFont | ❌ | |
# Envelope
**Properties**
| Name | Type | Required | Description |
| :------------ | :----------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Id | string | ❌ | Unique identifier of the envelope |
| Name | string | ❌ | Name of the envelope |
| Comment | string | ❌ | Comment for the envelope |
| Pages | int64 | ❌ | Total number of pages in the envelope |
| FlowType | signplus.EnvelopeFlowType | ❌ | Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow) |
| LegalityLevel | signplus.EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| Status | signplus.EnvelopeStatus | ❌ | Status of the envelope |
| CreatedAt | int64 | ❌ | Unix timestamp of the creation date |
| UpdatedAt | int64 | ❌ | Unix timestamp of the last modification date |
| ExpiresAt | int64 | ❌ | Unix timestamp of the expiration date |
| NumRecipients | int64 | ❌ | Number of recipients in the envelope |
| IsDuplicable | bool | ❌ | Whether the envelope can be duplicated |
| SigningSteps | \[]signplus.SigningStep | ❌ | |
| Documents | \[]signplus.Document | ❌ | |
| Notification | signplus.EnvelopeNotification | ❌ | |
| Attachments | signplus.EnvelopeAttachments | ❌ | |
# AddTemplateSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :------------------------------ | :------- | :-------------------- |
| SigningSteps | \[]signplus.TemplateSigningStep | ✅ | List of signing steps |
# AttachmentPlaceholder
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------------------------ | :------- | :--------------------------------------------------------- |
| RecipientId | string | ❌ | ID of the recipient |
| Id | string | ❌ | ID of the attachment placeholder |
| Name | string | ❌ | Name of the attachment placeholder |
| Hint | string | ❌ | Hint of the attachment placeholder |
| Required | bool | ❌ | Whether the attachment placeholder is required |
| Multiple | bool | ❌ | Whether the attachment placeholder can have multiple files |
| Files | \[]signplus.AttachmentPlaceholderFile | ❌ | |
# CreateEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :----------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Name | string | ✅ | Name of the envelope |
| LegalityLevel | signplus.EnvelopeLegalityLevel | ✅ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| ExpiresAt | int64 | ❌ | Unix timestamp of the expiration date |
| Comment | string | ❌ | Comment for the envelope |
| Sandbox | bool | ❌ | Whether the envelope is created in sandbox mode |
# TemplateRecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| SIGNER | string | ✅ | "SIGNER" |
| RECEIVES\_COPY | string | ✅ | "RECEIVES\_COPY" |
| IN\_PERSON\_SIGNER | string | ✅ | "IN\_PERSON\_SIGNER" |
| SENDER | string | ✅ | "SENDER" |
# ListWebhooksRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :-------------------- | :------- | :------------------- |
| WebhookId | string | ❌ | ID of the webhook |
| Event | signplus.WebhookEvent | ❌ | Event of the webhook |
# AnnotationDateTimeFormat
Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces)
**Properties**
| Name | Type | Required | Description |
| :------------------------ | :----- | :------- | :-------------------------- |
| DMY\_NUMERIC\_SLASH | string | ✅ | "DMY\_NUMERIC\_SLASH" |
| MDY\_NUMERIC\_SLASH | string | ✅ | "MDY\_NUMERIC\_SLASH" |
| YMD\_NUMERIC\_SLASH | string | ✅ | "YMD\_NUMERIC\_SLASH" |
| DMY\_NUMERIC\_DASH\_SHORT | string | ✅ | "DMY\_NUMERIC\_DASH\_SHORT" |
| DMY\_NUMERIC\_DASH | string | ✅ | "DMY\_NUMERIC\_DASH" |
| YMD\_NUMERIC\_DASH | string | ✅ | "YMD\_NUMERIC\_DASH" |
| MDY\_TEXT\_DASH\_SHORT | string | ✅ | "MDY\_TEXT\_DASH\_SHORT" |
| MDY\_TEXT\_SPACE\_SHORT | string | ✅ | "MDY\_TEXT\_SPACE\_SHORT" |
| MDY\_TEXT\_SPACE | string | ✅ | "MDY\_TEXT\_SPACE" |
# ListTemplateDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :--------------------- | :------- | :---------- |
| Annotations | \[]signplus.Annotation | ❌ | |
# AnnotationFontFamily
Font family of the text
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------- |
| UNKNOWN | string | ✅ | "UNKNOWN" |
| SERIF | string | ✅ | "SERIF" |
| SANS | string | ✅ | "SANS" |
| MONO | string | ✅ | "MONO" |
# CreateTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :---------- |
| Name | string | ✅ | |
# AddTemplateDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :------ | :------- | :------------------------------ |
| File | \[]byte | ✅ | File to upload in binary format |
# SetEnvelopeExpirationRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :---- | :------- | :------------------------------------ |
| ExpiresAt | int64 | ✅ | Unix timestamp of the expiration date |
# SetEnvelopeLegalityLevelRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :----------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| LegalityLevel | signplus.EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
# ListTemplatesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------------------- | :------- | :------------------------------- |
| HasNextPage | bool | ❌ | Whether there is a next page |
| HasPreviousPage | bool | ❌ | Whether there is a previous page |
| Templates | \[]signplus.Template | ❌ | |
# SetTemplateCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| Comment | string | ✅ | Comment for the template |
# ListEnvelopesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------------------- | :------- | :------------------------------- |
| HasNextPage | bool | ❌ | Whether there is a next page |
| HasPreviousPage | bool | ❌ | Whether there is a previous page |
| Envelopes | \[]signplus.Envelope | ❌ | |
# ListTemplatesRequest
**Properties**
| Name | Type | Required | Description |
| :--------- | :-------------------------- | :------- | :-------------------------------------------- |
| Name | string | ❌ | Name of the template |
| Tags | \[]string | ❌ | List of tag templates |
| Ids | \[]string | ❌ | List of templates IDs |
| First | int64 | ❌ | |
| Last | int64 | ❌ | |
| After | string | ❌ | |
| Before | string | ❌ | |
| OrderField | signplus.TemplateOrderField | ❌ | Field to order templates by |
| Ascending | bool | ❌ | Whether to order templates in ascending order |
# AnnotationFont
**Properties**
| Name | Type | Required | Description |
| :----- | :---------------------------- | :------- | :------------------------- |
| Family | signplus.AnnotationFontFamily | ❌ | Font family of the text |
| Italic | bool | ❌ | Whether the text is italic |
| Bold | bool | ❌ | Whether the text is bold |
# AnnotationType
Type of the annotation
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| TEXT | string | ✅ | "TEXT" |
| SIGNATURE | string | ✅ | "SIGNATURE" |
| INITIALS | string | ✅ | "INITIALS" |
| CHECKBOX | string | ✅ | "CHECKBOX" |
| DATE | string | ✅ | "DATE" |
# ListWebhooksResponse
**Properties**
| Name | Type | Required | Description |
| :------- | :------------------ | :------- | :---------- |
| Webhooks | \[]signplus.Webhook | ❌ | |
# Webhook
**Properties**
| Name | Type | Required | Description |
| :----- | :-------------------- | :------- | :------------------------------- |
| Id | string | ❌ | Unique identifier of the webhook |
| Event | signplus.WebhookEvent | ❌ | Event of the webhook |
| Target | string | ❌ | Target URL of the webhook |
# CreateEnvelopeFromTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------------------------------------------- |
| Name | string | ✅ | Name of the envelope |
| Comment | string | ❌ | Comment for the envelope |
| Sandbox | bool | ❌ | Whether the envelope is created in sandbox mode |
# RecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| SIGNER | string | ✅ | "SIGNER" |
| RECEIVES\_COPY | string | ✅ | "RECEIVES\_COPY" |
| IN\_PERSON\_SIGNER | string | ✅ | "IN\_PERSON\_SIGNER" |
# EnvelopeLegalityLevel
Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes)
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| SES | string | ✅ | "SES" |
| QES\_EIDAS | string | ✅ | "QES\_EIDAS" |
| QES\_ZERTES | string | ✅ | "QES\_ZERTES" |
# ListTemplateDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :------------------- | :------- | :---------- |
| Documents | \[]signplus.Document | ❌ | |
# TemplateRecipient
**Properties**
| Name | Type | Required | Description |
| :---- | :----------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Id | string | ❌ | Unique identifier of the recipient |
| Uid | string | ❌ | Unique identifier of the user associated with the recipient |
| Name | string | ❌ | Name of the recipient |
| Email | string | ❌ | Email of the recipient |
| Role | signplus.TemplateRecipientRole | ❌ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
# RecipientVerification
**Properties**
| Name | Type | Required | Description |
| :----- | :--------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type\_ | signplus.RecipientVerificationType | ❌ | Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check. |
| Value | string | ❌ | Required for `PASSCODE` and `SMS` verification. - `PASSCODE`: code required by the recipient to sign the document. - `SMS`: recipient's phone number. - `ID_VERIFICATION`: leave empty. |
# ListTemplateAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :--------------------- | :------- | :---------- |
| Annotations | \[]signplus.Annotation | ❌ | |
# SetEnvelopeAttachmentsPlaceholdersRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :--------------------------------------- | :------- | :---------- |
| Placeholders | \[]signplus.AttachmentPlaceholderRequest | ✅ | |
# AttachmentPlaceholderRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :--------------------------------------------- |
| RecipientId | string | ✅ | ID of the recipient |
| Name | string | ✅ | |
| Required | bool | ✅ | Whether the attachment placeholder is required |
| Multiple | bool | ✅ | |
| Id | string | ❌ | ID of the attachment placeholder |
| Hint | string | ❌ | Hint of the attachment placeholder |
# Annotation
**Properties**
| Name | Type | Required | Description |
| :---------- | :--------------------------- | :------- | :---------------------------------------------------------------------------------------------- |
| Id | string | ❌ | Unique identifier of the annotation |
| RecipientId | string | ❌ | ID of the recipient |
| DocumentId | string | ❌ | ID of the document |
| Page | int64 | ❌ | Page number where the annotation is placed |
| X | float64 | ❌ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| Y | float64 | ❌ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| Width | float64 | ❌ | Width of the annotation (in % of the page width from 0 to 100) |
| Height | float64 | ❌ | Height of the annotation (in % of the page height from 0 to 100) |
| Required | bool | ❌ | Whether the annotation is required |
| Type\_ | signplus.AnnotationType | ❌ | Type of the annotation |
| Signature | signplus.AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| Initials | signplus.AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| Text | signplus.AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| Datetime | signplus.AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| Checkbox | signplus.AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# ListEnvelopeDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :------------------- | :------- | :---------- |
| Documents | \[]signplus.Document | ❌ | |
# CreateWebhookRequest
**Properties**
| Name | Type | Required | Description |
| :----- | :-------------------- | :------- | :------------------------ |
| Event | signplus.WebhookEvent | ✅ | Event of the webhook |
| Target | string | ✅ | URL of the webhook target |
# Page
**Properties**
| Name | Type | Required | Description |
| :----- | :---- | :------- | :--------------------------- |
| Width | int64 | ❌ | Width of the page in pixels |
| Height | int64 | ❌ | Height of the page in pixels |
# Recipient
**Properties**
| Name | Type | Required | Description |
| :----------- | :----------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name | string | ✅ | Name of the recipient |
| Email | string | ✅ | Email of the recipient |
| Role | signplus.RecipientRole | ✅ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
| Id | string | ❌ | Unique identifier of the recipient |
| Uid | string | ❌ | Unique identifier of the user associated with the recipient |
| Verification | signplus.RecipientVerification | ❌ | |
# EnvelopeOrderField
Field to order envelopes by
**Properties**
| Name | Type | Required | Description |
| :--------------------- | :----- | :------- | :----------------------- |
| CREATION\_DATE | string | ✅ | "CREATION\_DATE" |
| MODIFICATION\_DATE | string | ✅ | "MODIFICATION\_DATE" |
| NAME | string | ✅ | "NAME" |
| STATUS | string | ✅ | "STATUS" |
| LAST\_DOCUMENT\_CHANGE | string | ✅ | "LAST\_DOCUMENT\_CHANGE" |
# AttachmentPlaceholdersPerRecipient
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------------------- | :------- | :-------------------- |
| RecipientId | string | ❌ | ID of the recipient |
| RecipientName | string | ❌ | Name of the recipient |
| Placeholders | \[]signplus.AttachmentPlaceholder | ❌ | |
# EnvelopeAttachments
**Properties**
| Name | Type | Required | Description |
| :--------- | :--------------------------------------------- | :------- | :---------- |
| Settings | signplus.AttachmentSettings | ❌ | |
| Recipients | \[]signplus.AttachmentPlaceholdersPerRecipient | ❌ | |
# SigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :-------------------- | :------- | :----------------- |
| Recipients | \[]signplus.Recipient | ❌ | List of recipients |
# EnvelopeStatus
Status of the envelope
**Properties**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :------------- |
| DRAFT | string | ✅ | "DRAFT" |
| IN\_PROGRESS | string | ✅ | "IN\_PROGRESS" |
| COMPLETED | string | ✅ | "COMPLETED" |
| EXPIRED | string | ✅ | "EXPIRED" |
| DECLINED | string | ✅ | "DECLINED" |
| VOIDED | string | ✅ | "VOIDED" |
| PENDING | string | ✅ | "PENDING" |
# ListEnvelopesRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :-------------------------- | :------- | :------------------------------------------------ |
| Name | string | ❌ | Name of the envelope |
| Tags | \[]string | ❌ | List of tags |
| Comment | string | ❌ | Comment of the envelope |
| Ids | \[]string | ❌ | List of envelope IDs |
| Statuses | \[]signplus.EnvelopeStatus | ❌ | List of envelope statuses |
| FolderIds | \[]string | ❌ | List of folder IDs |
| OnlyRootFolder | bool | ❌ | Whether to only list envelopes in the root folder |
| DateFrom | int64 | ❌ | Unix timestamp of the start date |
| DateTo | int64 | ❌ | Unix timestamp of the end date |
| Uid | string | ❌ | Unique identifier of the user |
| First | int64 | ❌ | |
| Last | int64 | ❌ | |
| After | string | ❌ | |
| Before | string | ❌ | |
| OrderField | signplus.EnvelopeOrderField | ❌ | Field to order envelopes by |
| Ascending | bool | ❌ | Whether to order envelopes in ascending order |
| IncludeTrash | bool | ❌ | Whether to include envelopes in the trash |
# RecipientVerificationType
Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check.
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :----------------- |
| SMS | string | ✅ | "SMS" |
| PASSCODE | string | ✅ | "PASSCODE" |
| ID\_VERIFICATION | string | ✅ | "ID\_VERIFICATION" |
# TemplateOrderField
Field to order templates by
**Properties**
| Name | Type | Required | Description |
| :--------------------------- | :----- | :------- | :----------------------------- |
| TEMPLATE\_ID | string | ✅ | "TEMPLATE\_ID" |
| TEMPLATE\_CREATION\_DATE | string | ✅ | "TEMPLATE\_CREATION\_DATE" |
| TEMPLATE\_MODIFICATION\_DATE | string | ✅ | "TEMPLATE\_MODIFICATION\_DATE" |
| TEMPLATE\_NAME | string | ✅ | "TEMPLATE\_NAME" |
# AnnotationCheckbox
Checkbox annotation (null if annotation is not a checkbox)
**Properties**
| Name | Type | Required | Description |
| :------ | :------------------------------- | :------- | :------------------------------ |
| Checked | bool | ❌ | Whether the checkbox is checked |
| Style | signplus.AnnotationCheckboxStyle | ❌ | Style of the checkbox |
# AnnotationSignature
Signature annotation (null if annotation is not a signature)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :-------------------------------------------- |
| Id | string | ❌ | Unique identifier of the annotation signature |
# AddAnnotationRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :--------------------------- | :------- | :---------------------------------------------------------------------------------------------- |
| DocumentId | string | ✅ | ID of the document |
| Page | int64 | ✅ | Page number where the annotation is placed |
| X | float64 | ✅ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| Y | float64 | ✅ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| Width | float64 | ✅ | Width of the annotation (in % of the page width from 0 to 100) |
| Height | float64 | ✅ | Height of the annotation (in % of the page height from 0 to 100) |
| Type\_ | signplus.AnnotationType | ✅ | Type of the annotation |
| RecipientId | string | ❌ | ID of the recipient |
| Required | bool | ❌ | |
| Signature | signplus.AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| Initials | signplus.AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| Text | signplus.AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| Datetime | signplus.AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| Checkbox | signplus.AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# AttachmentSettings
**Properties**
| Name | Type | Required | Description |
| :------------------ | :--- | :------- | :-------------------------------------------------- |
| VisibleToRecipients | bool | ❌ | Whether the attachment is visible to the recipients |
# AnnotationDateTime
Date annotation (null if annotation is not a date)
**Properties**
| Name | Type | Required | Description |
| :-------- | :-------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Size | float64 | ❌ | Font size of the text in pt |
| Font | signplus.AnnotationFont | ❌ | |
| Color | string | ❌ | Color of the text in hex format |
| AutoFill | bool | ❌ | Whether the date should be automatically filled |
| Timezone | string | ❌ | Timezone of the date |
| Timestamp | int64 | ❌ | Unix timestamp of the date |
| Format | signplus.AnnotationDateTimeFormat | ❌ | Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces) |
# AddEnvelopeDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :------ | :------- | :------------------------------ |
| File | \[]byte | ❌ | File to upload in binary format |
# EnvelopeNotification
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :-------------------------------- |
| Subject | string | ❌ | Subject of the notification |
| Message | string | ❌ | Message of the notification |
| ReminderInterval | int64 | ❌ | Interval in days to send reminder |
# Install
Source: https://apidoc.sign.plus/backend-sdks/java/install
Add the Signplus Java SDK package to your project
```xml theme={null}
com.alohi
signplus
2.0.0
```
Save the pom.xml file and run the following command to install the dependencies:
```bash theme={null}
mvn install
```
Call your first SDK method
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.CreateEnvelopeRequest;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.EnvelopeFlowType;
import com.alohi.signplus.models.EnvelopeLegalityLevel;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
CreateEnvelopeRequest createEnvelopeRequest = CreateEnvelopeRequest
.builder()
.name("name")
.flowType(EnvelopeFlowType.REQUEST_SIGNATURE)
.legalityLevel(EnvelopeLegalityLevel.SES)
.expiresAt(8L)
.comment("comment")
.sandbox(false)
.build();
Envelope response = signplus.signplusService.createEnvelope(createEnvelopeRequest);
System.out.println(response);
}
}
```
Check out the SDK reference to see all the available methods and options
# Sdk reference
Source: https://apidoc.sign.plus/backend-sdks/java/sdk-reference
A list of all methods in the `SignplusService` service. Click on the method name to view detailed information about that method.
| Methods | Description |
| :------------------------------------------------------------------------ | :-------------------------------------------------------------- |
| [createEnvelope](#createenvelope) | Create new envelope |
| [createEnvelopeFromTemplate](#createenvelopefromtemplate) | Create new envelope from template |
| [listEnvelopes](#listenvelopes) | List envelopes |
| [getEnvelope](#getenvelope) | Get envelope |
| [deleteEnvelope](#deleteenvelope) | Delete envelope |
| [downloadEnvelopeSignedDocuments](#downloadenvelopesigneddocuments) | Download signed documents for an envelope |
| [downloadEnvelopeCertificate](#downloadenvelopecertificate) | Download certificate of completion for an envelope |
| [getEnvelopeDocument](#getenvelopedocument) | Get envelope document |
| [getEnvelopeDocuments](#getenvelopedocuments) | Get envelope documents |
| [addEnvelopeDocument](#addenvelopedocument) | Add envelope document |
| [setEnvelopeDynamicFields](#setenvelopedynamicfields) | Set envelope dynamic fields |
| [addEnvelopeSigningSteps](#addenvelopesigningsteps) | Add envelope signing steps |
| [setEnvelopeAttachmentsSettings](#setenvelopeattachmentssettings) | Set envelope attachment settings |
| [setEnvelopeAttachmentsPlaceholders](#setenvelopeattachmentsplaceholders) | Placeholders to be set, completely replacing the existing ones. |
| [getAttachmentFile](#getattachmentfile) | Get envelope attachment file |
| [sendEnvelope](#sendenvelope) | Send envelope for signature |
| [duplicateEnvelope](#duplicateenvelope) | Duplicate envelope |
| [voidEnvelope](#voidenvelope) | Void envelope |
| [renameEnvelope](#renameenvelope) | Rename envelope |
| [setEnvelopeComment](#setenvelopecomment) | Set envelope comment |
| [setEnvelopeNotification](#setenvelopenotification) | Set envelope notification |
| [setEnvelopeExpirationDate](#setenvelopeexpirationdate) | Set envelope expiration date |
| [setEnvelopeLegalityLevel](#setenvelopelegalitylevel) | Set envelope legality level |
| [getEnvelopeAnnotations](#getenvelopeannotations) | Get envelope annotations |
| [getEnvelopeDocumentAnnotations](#getenvelopedocumentannotations) | Get envelope document annotations |
| [addEnvelopeAnnotation](#addenvelopeannotation) | Add envelope annotation |
| [deleteEnvelopeAnnotation](#deleteenvelopeannotation) | Delete envelope annotation |
| [createTemplate](#createtemplate) | Create new template |
| [listTemplates](#listtemplates) | List templates |
| [getTemplate](#gettemplate) | Get template |
| [deleteTemplate](#deletetemplate) | Delete template |
| [duplicateTemplate](#duplicatetemplate) | Duplicate template |
| [addTemplateDocument](#addtemplatedocument) | Add template document |
| [getTemplateDocument](#gettemplatedocument) | Get template document |
| [getTemplateDocuments](#gettemplatedocuments) | Get template documents |
| [addTemplateSigningSteps](#addtemplatesigningsteps) | Add template signing steps |
| [renameTemplate](#renametemplate) | Rename template |
| [setTemplateComment](#settemplatecomment) | Set template comment |
| [setTemplateNotification](#settemplatenotification) | Set template notification |
| [getTemplateAnnotations](#gettemplateannotations) | Get template annotations |
| [getDocumentTemplateAnnotations](#getdocumenttemplateannotations) | Get document template annotations |
| [addTemplateAnnotation](#addtemplateannotation) | Add template annotation |
| [deleteTemplateAnnotation](#deletetemplateannotation) | Delete template annotation |
| [setTemplateAttachmentsSettings](#settemplateattachmentssettings) | Set template attachment settings |
| [setTemplateAttachmentsPlaceholders](#settemplateattachmentsplaceholders) | Placeholders to be set, completely replacing the existing ones. |
| [createWebhook](#createwebhook) | Create webhook |
| [listWebhooks](#listwebhooks) | List webhooks |
| [deleteWebhook](#deletewebhook) | Delete webhook |
## createEnvelope
Create new envelope
* HTTP Method: `POST`
* Endpoint: `/envelope`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :----------------------------------------------------------------------------- | :------- | :----------- |
| createEnvelopeRequest | [CreateEnvelopeRequest](/api-reference/endpoints/signplus/create-new-envelope) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.CreateEnvelopeRequest;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.EnvelopeLegalityLevel;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
CreateEnvelopeRequest createEnvelopeRequest = CreateEnvelopeRequest.builder()
.name("name")
.legalityLevel(EnvelopeLegalityLevel.SES)
.expiresAt(8L)
.comment("comment")
.sandbox(false)
.build();
Envelope response = signplus.signplus.createEnvelope(createEnvelopeRequest);
System.out.println(response);
}
}
```
## createEnvelopeFromTemplate
Create new envelope from template
* HTTP Method: `POST`
* Endpoint: `/envelope/from_template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :-------------------------------- | :------------------------------------------------------------------------------------------------------- | :------- | :----------- |
| templateId | String | ✅ | |
| createEnvelopeFromTemplateRequest | [CreateEnvelopeFromTemplateRequest](/api-reference/endpoints/signplus/create-new-envelope-from-template) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.CreateEnvelopeFromTemplateRequest;
import com.alohi.signplus.models.Envelope;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
CreateEnvelopeFromTemplateRequest createEnvelopeFromTemplateRequest = CreateEnvelopeFromTemplateRequest.builder()
.name("name")
.comment("comment")
.sandbox(true)
.build();
Envelope response = signplus.signplus.createEnvelopeFromTemplate("template_id", createEnvelopeFromTemplateRequest);
System.out.println(response);
}
}
```
## listEnvelopes
List envelopes
* HTTP Method: `POST`
* Endpoint: `/envelopes`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :----------------------------------------------------------------------- | :------- | :----------- |
| listEnvelopesRequest | [ListEnvelopesRequest](/api-reference/endpoints/signplus/list-envelopes) | ❌ | Request Body |
**Return Type**
`ListEnvelopesResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.EnvelopeOrderField;
import com.alohi.signplus.models.EnvelopeStatus;
import com.alohi.signplus.models.ListEnvelopesRequest;
import com.alohi.signplus.models.ListEnvelopesResponse;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
List tagsList = Arrays.asList("tags");
List idsList = Arrays.asList("ids");
List statusesList = Arrays.asList(EnvelopeStatus.DRAFT);
List folderIdsList = Arrays.asList("folder_ids");
ListEnvelopesRequest listEnvelopesRequest = ListEnvelopesRequest.builder()
.name("name")
.tags(tagsList)
.comment("comment")
.ids(idsList)
.statuses(statusesList)
.folderIds(folderIdsList)
.onlyRootFolder(true)
.dateFrom(5L)
.dateTo(9L)
.uid("uid")
.first(9L)
.last(7L)
.after("after")
.before("before")
.orderField(EnvelopeOrderField.CREATION_DATE)
.ascending(true)
.includeTrash(true)
.build();
ListEnvelopesResponse response = signplus.signplus.listEnvelopes(listEnvelopesRequest);
System.out.println(response);
}
}
```
## getEnvelope
Get envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Envelope response = signplus.signplus.getEnvelope("envelope_id");
System.out.println(response);
}
}
```
## deleteEnvelope
Delete envelope
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
signplus.signplus.deleteEnvelope("envelope_id");
}
}
```
## downloadEnvelopeSignedDocuments
Download signed documents for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/signed_documents`
**Parameters**
| Name | Type | Required | Description |
| :---------------- | :----------------------------------------------------------------------------------------------------------- | :------- | :------------------------ |
| envelopeId | String | ✅ | ID of the envelope |
| requestParameters | [DownloadEnvelopeSignedDocumentsParameters](/api-reference/endpoints/signplus/get-envelope-signed_documents) | ❌ | Request Parameters Object |
**Return Type**
`byte[]`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.DownloadEnvelopeSignedDocumentsParameters;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
DownloadEnvelopeSignedDocumentsParameters requestParameters = DownloadEnvelopeSignedDocumentsParameters.builder()
.certificateOfCompletion(true)
.build();
byte[] response = signplus.signplus.downloadEnvelopeSignedDocuments("envelope_id", requestParameters);
System.out.println(response);
}
}
```
## downloadEnvelopeCertificate
Download certificate of completion for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/certificate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | String | ✅ | ID of the envelope |
**Return Type**
`byte[]`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
byte[] response = signplus.signplus.downloadEnvelopeCertificate("envelope_id");
System.out.println(response);
}
}
```
## getEnvelopeDocument
Get envelope document
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
| documentId | String | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Document;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Document response = signplus.signplus.getEnvelopeDocument("envelope_id", "document_id");
System.out.println(response);
}
}
```
## getEnvelopeDocuments
Get envelope documents
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
**Return Type**
`ListEnvelopeDocumentsResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListEnvelopeDocumentsResponse;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
ListEnvelopeDocumentsResponse response = signplus.signplus.getEnvelopeDocuments("envelope_id");
System.out.println(response);
}
}
```
## addEnvelopeDocument
Add envelope document
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :------------------------- | :------------------------------------------------------------------------------------ | :------- | :----------------------------- |
| envelopeId | String | ✅ | |
| addEnvelopeDocumentRequest | [AddEnvelopeDocumentRequest](/api-reference/endpoints/signplus/add-envelope-document) | ✅ | Request Body |
| \_filename | [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) | ✅ | Filename for the uploaded file |
**Return Type**
`Document`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AddEnvelopeDocumentRequest;
import com.alohi.signplus.models.Document;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AddEnvelopeDocumentRequest addEnvelopeDocumentRequest = AddEnvelopeDocumentRequest.builder().file(file).build();
AddEnvelopeDocumentRequest addEnvelopeDocumentRequest = AddEnvelopeDocumentRequest.builder().file(file).build();
Document response = signplus.signplus.addEnvelopeDocument(
"envelope_id",
addEnvelopeDocumentRequest,
addEnvelopeDocumentRequest
);
System.out.println(response);
}
}
```
## setEnvelopeDynamicFields
Set envelope dynamic fields
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/dynamic_fields`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------ | :----------------------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| setEnvelopeDynamicFieldsRequest | [SetEnvelopeDynamicFieldsRequest](/api-reference/endpoints/signplus/set-envelope-dynamic-fields) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.DynamicField;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.SetEnvelopeDynamicFieldsRequest;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
DynamicField dynamicField = DynamicField.builder().name("name").value("value").build();
List dynamicFieldsList = Arrays.asList(dynamicField);
SetEnvelopeDynamicFieldsRequest setEnvelopeDynamicFieldsRequest = SetEnvelopeDynamicFieldsRequest.builder()
.dynamicFields(dynamicFieldsList)
.build();
Envelope response = signplus.signplus.setEnvelopeDynamicFields("envelope_id", setEnvelopeDynamicFieldsRequest);
System.out.println(response);
}
}
```
## addEnvelopeSigningSteps
Add envelope signing steps
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :----------------------------- | :--------------------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| addEnvelopeSigningStepsRequest | [AddEnvelopeSigningStepsRequest](/api-reference/endpoints/signplus/add-envelope-signing-steps) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AddEnvelopeSigningStepsRequest;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.Recipient;
import com.alohi.signplus.models.RecipientRole;
import com.alohi.signplus.models.RecipientVerification;
import com.alohi.signplus.models.RecipientVerificationType;
import com.alohi.signplus.models.SigningStep;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
RecipientVerification recipientVerification = RecipientVerification.builder()
.type(RecipientVerificationType.SMS)
.value("value")
.build();
Recipient recipient = Recipient.builder()
.id("id")
.uid("uid")
.name("name")
.email("email")
.role(RecipientRole.SIGNER)
.verification(recipientVerification)
.build();
List recipientsList = Arrays.asList(recipient);
SigningStep signingStep = SigningStep.builder().recipients(recipientsList).build();
List signingStepsList = Arrays.asList(signingStep);
AddEnvelopeSigningStepsRequest addEnvelopeSigningStepsRequest = AddEnvelopeSigningStepsRequest.builder()
.signingSteps(signingStepsList)
.build();
Envelope response = signplus.signplus.addEnvelopeSigningSteps("envelope_id", addEnvelopeSigningStepsRequest);
System.out.println(response);
}
}
```
## setEnvelopeAttachmentsSettings
Set envelope attachment settings
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------------ | :---------------------------------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| setEnvelopeAttachmentsSettingsRequest | [SetEnvelopeAttachmentsSettingsRequest](/api-reference/endpoints/signplus/set-envelope-attachment-settings) | ✅ | Request Body |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AttachmentSettings;
import com.alohi.signplus.models.EnvelopeAttachments;
import com.alohi.signplus.models.SetEnvelopeAttachmentsSettingsRequest;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AttachmentSettings attachmentSettings = AttachmentSettings.builder().visibleToRecipients(false).build();
SetEnvelopeAttachmentsSettingsRequest setEnvelopeAttachmentsSettingsRequest =
SetEnvelopeAttachmentsSettingsRequest.builder().settings(attachmentSettings).build();
EnvelopeAttachments response = signplus.signplus.setEnvelopeAttachmentsSettings(
"envelope_id",
setEnvelopeAttachmentsSettingsRequest
);
System.out.println(response);
}
}
```
## setEnvelopeAttachmentsPlaceholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :---------------------------------------- | :------------------------------------------------------------------------------------------------------------------ | :------- | :----------- |
| envelopeId | String | ✅ | |
| setEnvelopeAttachmentsPlaceholdersRequest | [SetEnvelopeAttachmentsPlaceholdersRequest](/api-reference/endpoints/signplus/set-envelope-attachment-placeholders) | ✅ | Request Body |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AttachmentPlaceholderRequest;
import com.alohi.signplus.models.EnvelopeAttachments;
import com.alohi.signplus.models.SetEnvelopeAttachmentsPlaceholdersRequest;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AttachmentPlaceholderRequest attachmentPlaceholderRequest = AttachmentPlaceholderRequest.builder()
.recipientId("recipient_id")
.id("id")
.name("name")
.hint("hint")
.required(false)
.multiple(true)
.build();
List placeholdersList = Arrays.asList(attachmentPlaceholderRequest);
SetEnvelopeAttachmentsPlaceholdersRequest setEnvelopeAttachmentsPlaceholdersRequest =
SetEnvelopeAttachmentsPlaceholdersRequest.builder().placeholders(placeholdersList).build();
EnvelopeAttachments response = signplus.signplus.setEnvelopeAttachmentsPlaceholders(
"envelope_id",
setEnvelopeAttachmentsPlaceholdersRequest
);
System.out.println(response);
}
}
```
## getAttachmentFile
Get envelope attachment file
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/attachments/{file_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
| fileId | String | ✅ | |
**Return Type**
`byte[]`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
byte[] response = signplus.signplus.getAttachmentFile("envelope_id", "file_id");
System.out.println(response);
}
}
```
## sendEnvelope
Send envelope for signature
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/send`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Envelope response = signplus.signplus.sendEnvelope("envelope_id");
System.out.println(response);
}
}
```
## duplicateEnvelope
Duplicate envelope
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Envelope response = signplus.signplus.duplicateEnvelope("envelope_id");
System.out.println(response);
}
}
```
## voidEnvelope
Void envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/void`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | String | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Envelope response = signplus.signplus.voidEnvelope("envelope_id");
System.out.println(response);
}
}
```
## renameEnvelope
Rename envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| renameEnvelopeRequest | [RenameEnvelopeRequest](/api-reference/endpoints/signplus/rename-envelope) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.RenameEnvelopeRequest;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
RenameEnvelopeRequest renameEnvelopeRequest = RenameEnvelopeRequest.builder().name("name").build();
Envelope response = signplus.signplus.renameEnvelope("envelope_id", renameEnvelopeRequest);
System.out.println(response);
}
}
```
## setEnvelopeComment
Set envelope comment
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :------------------------ | :---------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| setEnvelopeCommentRequest | [SetEnvelopeCommentRequest](/api-reference/endpoints/signplus/set-envelope-comment) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.SetEnvelopeCommentRequest;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
SetEnvelopeCommentRequest setEnvelopeCommentRequest = SetEnvelopeCommentRequest.builder()
.comment("comment")
.build();
Envelope response = signplus.signplus.setEnvelopeComment("envelope_id", setEnvelopeCommentRequest);
System.out.println(response);
}
}
```
## setEnvelopeNotification
Set envelope notification
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :---------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| envelopeNotification | [EnvelopeNotification](/api-reference/endpoints/signplus/set-envelope-notification) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.EnvelopeNotification;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
EnvelopeNotification envelopeNotification = EnvelopeNotification.builder()
.subject("subject")
.message("message")
.reminderInterval(1L)
.build();
Envelope response = signplus.signplus.setEnvelopeNotification("envelope_id", envelopeNotification);
System.out.println(response);
}
}
```
## setEnvelopeExpirationDate
Set envelope expiration date
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_expiration_date`
**Parameters**
| Name | Type | Required | Description |
| :--------------------------- | :--------------------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| setEnvelopeExpirationRequest | [SetEnvelopeExpirationRequest](/api-reference/endpoints/signplus/set-envelope-expiration-date) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.SetEnvelopeExpirationRequest;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
SetEnvelopeExpirationRequest setEnvelopeExpirationRequest = SetEnvelopeExpirationRequest.builder()
.expiresAt(0L)
.build();
Envelope response = signplus.signplus.setEnvelopeExpirationDate("envelope_id", setEnvelopeExpirationRequest);
System.out.println(response);
}
}
```
## setEnvelopeLegalityLevel
Set envelope legality level
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_legality_level`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------ | :----------------------------------------------------------------------------------------------- | :------- | :----------- |
| envelopeId | String | ✅ | |
| setEnvelopeLegalityLevelRequest | [SetEnvelopeLegalityLevelRequest](/api-reference/endpoints/signplus/set-envelope-legality-level) | ✅ | Request Body |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.EnvelopeLegalityLevel;
import com.alohi.signplus.models.SetEnvelopeLegalityLevelRequest;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
SetEnvelopeLegalityLevelRequest setEnvelopeLegalityLevelRequest = SetEnvelopeLegalityLevelRequest.builder()
.legalityLevel(EnvelopeLegalityLevel.SES)
.build();
Envelope response = signplus.signplus.setEnvelopeLegalityLevel("envelope_id", setEnvelopeLegalityLevelRequest);
System.out.println(response);
}
}
```
## getEnvelopeAnnotations
Get envelope annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | String | ✅ | ID of the envelope |
**Return Type**
`List<Annotation>`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Annotation;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
List response = signplus.signplus.getEnvelopeAnnotations("envelope_id");
System.out.println(response);
}
}
```
## getEnvelopeDocumentAnnotations
Get envelope document annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | String | ✅ | ID of the envelope |
| documentId | String | ✅ | ID of document |
**Return Type**
`ListEnvelopeDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListEnvelopeDocumentAnnotationsResponse;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
ListEnvelopeDocumentAnnotationsResponse response = signplus.signplus.getEnvelopeDocumentAnnotations(
"envelope_id",
"document_id"
);
System.out.println(response);
}
}
```
## addEnvelopeAnnotation
Add envelope annotation
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :-------------------------------------------------------------------------------- | :------- | :----------------- |
| envelopeId | String | ✅ | ID of the envelope |
| addAnnotationRequest | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | Request Body |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AddAnnotationRequest;
import com.alohi.signplus.models.Annotation;
import com.alohi.signplus.models.AnnotationCheckbox;
import com.alohi.signplus.models.AnnotationCheckboxStyle;
import com.alohi.signplus.models.AnnotationDateTime;
import com.alohi.signplus.models.AnnotationDateTimeFormat;
import com.alohi.signplus.models.AnnotationFont;
import com.alohi.signplus.models.AnnotationFontFamily;
import com.alohi.signplus.models.AnnotationInitials;
import com.alohi.signplus.models.AnnotationSignature;
import com.alohi.signplus.models.AnnotationText;
import com.alohi.signplus.models.AnnotationType;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AnnotationSignature annotationSignature = AnnotationSignature.builder().id("id").build();
AnnotationInitials annotationInitials = AnnotationInitials.builder().id("id").build();
AnnotationFont annotationFont = AnnotationFont.builder()
.family(AnnotationFontFamily.UNKNOWN)
.italic(true)
.bold(true)
.build();
AnnotationText annotationText = AnnotationText.builder()
.size(5.96D)
.color(8.73D)
.value("value")
.tooltip("tooltip")
.dynamicFieldName("dynamic_field_name")
.font(annotationFont)
.build();
AnnotationDateTime annotationDateTime = AnnotationDateTime.builder()
.size(0.26D)
.font(annotationFont)
.color("color")
.autoFill(true)
.timezone("timezone")
.timestamp(1L)
.format(AnnotationDateTimeFormat.DMY_NUMERIC_SLASH)
.build();
AnnotationCheckbox annotationCheckbox = AnnotationCheckbox.builder()
.checked(true)
.style(AnnotationCheckboxStyle.CIRCLE_CHECK)
.build();
AddAnnotationRequest addAnnotationRequest = AddAnnotationRequest.builder()
.recipientId("recipient_id")
.documentId("document_id")
.page(2L)
.x(1.99D)
.y(8.2D)
.width(4.89D)
.height(9.43D)
.required(false)
.type(AnnotationType.TEXT)
.signature(annotationSignature)
.initials(annotationInitials)
.text(annotationText)
.datetime(annotationDateTime)
.checkbox(annotationCheckbox)
.build();
Annotation response = signplus.signplus.addEnvelopeAnnotation("envelope_id", addAnnotationRequest);
System.out.println(response);
}
}
```
## deleteEnvelopeAnnotation
Delete envelope annotation
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------------------- |
| envelopeId | String | ✅ | ID of the envelope |
| annotationId | String | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
signplus.signplus.deleteEnvelopeAnnotation("envelope_id", "annotation_id");
}
}
```
## createTemplate
Create new template
* HTTP Method: `POST`
* Endpoint: `/template`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :----------------------------------------------------------------------------- | :------- | :----------- |
| createTemplateRequest | [CreateTemplateRequest](/api-reference/endpoints/signplus/create-new-template) | ✅ | Request Body |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.CreateTemplateRequest;
import com.alohi.signplus.models.Template;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
CreateTemplateRequest createTemplateRequest = CreateTemplateRequest.builder().name("name").build();
Template response = signplus.signplus.createTemplate(createTemplateRequest);
System.out.println(response);
}
}
```
## listTemplates
List templates
* HTTP Method: `POST`
* Endpoint: `/templates`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :----------------------------------------------------------------------- | :------- | :----------- |
| listTemplatesRequest | [ListTemplatesRequest](/api-reference/endpoints/signplus/list-templates) | ❌ | Request Body |
**Return Type**
`ListTemplatesResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListTemplatesRequest;
import com.alohi.signplus.models.ListTemplatesResponse;
import com.alohi.signplus.models.TemplateOrderField;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
List tagsList = Arrays.asList("tags");
List idsList = Arrays.asList("ids");
ListTemplatesRequest listTemplatesRequest = ListTemplatesRequest.builder()
.name("name")
.tags(tagsList)
.ids(idsList)
.first(1L)
.last(6L)
.after("after")
.before("before")
.orderField(TemplateOrderField.TEMPLATE_ID)
.ascending(false)
.build();
ListTemplatesResponse response = signplus.signplus.listTemplates(listTemplatesRequest);
System.out.println(response);
}
}
```
## getTemplate
Get template
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | String | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Template;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Template response = signplus.signplus.getTemplate("template_id");
System.out.println(response);
}
}
```
## deleteTemplate
Delete template
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | String | ✅ | |
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
signplus.signplus.deleteTemplate("template_id");
}
}
```
## duplicateTemplate
Duplicate template
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | String | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Template;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Template response = signplus.signplus.duplicateTemplate("template_id");
System.out.println(response);
}
}
```
## addTemplateDocument
Add template document
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :------------------------- | :------------------------------------------------------------------------------------ | :------- | :----------------------------- |
| templateId | String | ✅ | |
| addTemplateDocumentRequest | [AddTemplateDocumentRequest](/api-reference/endpoints/signplus/add-template-document) | ✅ | Request Body |
| \_filename | [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) | ✅ | Filename for the uploaded file |
**Return Type**
`Document`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AddTemplateDocumentRequest;
import com.alohi.signplus.models.Document;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AddTemplateDocumentRequest addTemplateDocumentRequest = AddTemplateDocumentRequest.builder().file(file).build();
AddTemplateDocumentRequest addTemplateDocumentRequest = AddTemplateDocumentRequest.builder().file(file).build();
Document response = signplus.signplus.addTemplateDocument(
"template_id",
addTemplateDocumentRequest,
addTemplateDocumentRequest
);
System.out.println(response);
}
}
```
## getTemplateDocument
Get template document
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | String | ✅ | |
| documentId | String | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.Document;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
Document response = signplus.signplus.getTemplateDocument("template_id", "document_id");
System.out.println(response);
}
}
```
## getTemplateDocuments
Get template documents
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | String | ✅ | |
**Return Type**
`ListTemplateDocumentsResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListTemplateDocumentsResponse;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
ListTemplateDocumentsResponse response = signplus.signplus.getTemplateDocuments("template_id");
System.out.println(response);
}
}
```
## addTemplateSigningSteps
Add template signing steps
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :----------------------------- | :--------------------------------------------------------------------------------------------- | :------- | :----------- |
| templateId | String | ✅ | |
| addTemplateSigningStepsRequest | [AddTemplateSigningStepsRequest](/api-reference/endpoints/signplus/add-template-signing-steps) | ✅ | Request Body |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AddTemplateSigningStepsRequest;
import com.alohi.signplus.models.Template;
import com.alohi.signplus.models.TemplateRecipient;
import com.alohi.signplus.models.TemplateRecipientRole;
import com.alohi.signplus.models.TemplateSigningStep;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
TemplateRecipient templateRecipient = TemplateRecipient.builder()
.id("id")
.uid("uid")
.name("name")
.email("email")
.role(TemplateRecipientRole.SIGNER)
.build();
List recipientsList = Arrays.asList(templateRecipient);
TemplateSigningStep templateSigningStep = TemplateSigningStep.builder().recipients(recipientsList).build();
List signingStepsList = Arrays.asList(templateSigningStep);
AddTemplateSigningStepsRequest addTemplateSigningStepsRequest = AddTemplateSigningStepsRequest.builder()
.signingSteps(signingStepsList)
.build();
Template response = signplus.signplus.addTemplateSigningSteps("template_id", addTemplateSigningStepsRequest);
System.out.println(response);
}
}
```
## renameTemplate
Rename template
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :-------------------- | :------------------------------------------------------------------------- | :------- | :----------- |
| templateId | String | ✅ | |
| renameTemplateRequest | [RenameTemplateRequest](/api-reference/endpoints/signplus/rename-template) | ✅ | Request Body |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.RenameTemplateRequest;
import com.alohi.signplus.models.Template;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
RenameTemplateRequest renameTemplateRequest = RenameTemplateRequest.builder().name("name").build();
Template response = signplus.signplus.renameTemplate("template_id", renameTemplateRequest);
System.out.println(response);
}
}
```
## setTemplateComment
Set template comment
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :------------------------ | :---------------------------------------------------------------------------------- | :------- | :----------- |
| templateId | String | ✅ | |
| setTemplateCommentRequest | [SetTemplateCommentRequest](/api-reference/endpoints/signplus/set-template-comment) | ✅ | Request Body |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.SetTemplateCommentRequest;
import com.alohi.signplus.models.Template;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
SetTemplateCommentRequest setTemplateCommentRequest = SetTemplateCommentRequest.builder()
.comment("comment")
.build();
Template response = signplus.signplus.setTemplateComment("template_id", setTemplateCommentRequest);
System.out.println(response);
}
}
```
## setTemplateNotification
Set template notification
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :---------------------------------------------------------------------------------- | :------- | :----------- |
| templateId | String | ✅ | |
| envelopeNotification | [EnvelopeNotification](/api-reference/endpoints/signplus/set-envelope-notification) | ✅ | Request Body |
**Return Type**
`Template`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.EnvelopeNotification;
import com.alohi.signplus.models.Template;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
EnvelopeNotification envelopeNotification = EnvelopeNotification.builder()
.subject("subject")
.message("message")
.reminderInterval(1L)
.build();
Template response = signplus.signplus.setTemplateNotification("template_id", envelopeNotification);
System.out.println(response);
}
}
```
## getTemplateAnnotations
Get template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| templateId | String | ✅ | ID of the template |
**Return Type**
`ListTemplateAnnotationsResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListTemplateAnnotationsResponse;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
ListTemplateAnnotationsResponse response = signplus.signplus.getTemplateAnnotations("template_id");
System.out.println(response);
}
}
```
## getDocumentTemplateAnnotations
Get document template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| templateId | String | ✅ | ID of the template |
| documentId | String | ✅ | ID of document |
**Return Type**
`ListTemplateDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListTemplateDocumentAnnotationsResponse;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
ListTemplateDocumentAnnotationsResponse response = signplus.signplus.getDocumentTemplateAnnotations(
"template_id",
"document_id"
);
System.out.println(response);
}
}
```
## addTemplateAnnotation
Add template annotation
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :-------------------------------------------------------------------------------- | :------- | :----------------- |
| templateId | String | ✅ | ID of the template |
| addAnnotationRequest | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | Request Body |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AddAnnotationRequest;
import com.alohi.signplus.models.Annotation;
import com.alohi.signplus.models.AnnotationCheckbox;
import com.alohi.signplus.models.AnnotationCheckboxStyle;
import com.alohi.signplus.models.AnnotationDateTime;
import com.alohi.signplus.models.AnnotationDateTimeFormat;
import com.alohi.signplus.models.AnnotationFont;
import com.alohi.signplus.models.AnnotationFontFamily;
import com.alohi.signplus.models.AnnotationInitials;
import com.alohi.signplus.models.AnnotationSignature;
import com.alohi.signplus.models.AnnotationText;
import com.alohi.signplus.models.AnnotationType;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AnnotationSignature annotationSignature = AnnotationSignature.builder().id("id").build();
AnnotationInitials annotationInitials = AnnotationInitials.builder().id("id").build();
AnnotationFont annotationFont = AnnotationFont.builder()
.family(AnnotationFontFamily.UNKNOWN)
.italic(true)
.bold(true)
.build();
AnnotationText annotationText = AnnotationText.builder()
.size(5.96D)
.color(8.73D)
.value("value")
.tooltip("tooltip")
.dynamicFieldName("dynamic_field_name")
.font(annotationFont)
.build();
AnnotationDateTime annotationDateTime = AnnotationDateTime.builder()
.size(0.26D)
.font(annotationFont)
.color("color")
.autoFill(true)
.timezone("timezone")
.timestamp(1L)
.format(AnnotationDateTimeFormat.DMY_NUMERIC_SLASH)
.build();
AnnotationCheckbox annotationCheckbox = AnnotationCheckbox.builder()
.checked(true)
.style(AnnotationCheckboxStyle.CIRCLE_CHECK)
.build();
AddAnnotationRequest addAnnotationRequest = AddAnnotationRequest.builder()
.recipientId("recipient_id")
.documentId("document_id")
.page(2L)
.x(1.99D)
.y(8.2D)
.width(4.89D)
.height(9.43D)
.required(false)
.type(AnnotationType.TEXT)
.signature(annotationSignature)
.initials(annotationInitials)
.text(annotationText)
.datetime(annotationDateTime)
.checkbox(annotationCheckbox)
.build();
Annotation response = signplus.signplus.addTemplateAnnotation("template_id", addAnnotationRequest);
System.out.println(response);
}
}
```
## deleteTemplateAnnotation
Delete template annotation
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------------------- |
| templateId | String | ✅ | ID of the template |
| annotationId | String | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
signplus.signplus.deleteTemplateAnnotation("template_id", "annotation_id");
}
}
```
## setTemplateAttachmentsSettings
Set template attachment settings
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :------------------------------------ | :---------------------------------------------------------------------------------------------------------- | :------- | :----------- |
| templateId | String | ✅ | |
| setEnvelopeAttachmentsSettingsRequest | [SetEnvelopeAttachmentsSettingsRequest](/api-reference/endpoints/signplus/set-envelope-attachment-settings) | ✅ | Request Body |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AttachmentSettings;
import com.alohi.signplus.models.EnvelopeAttachments;
import com.alohi.signplus.models.SetEnvelopeAttachmentsSettingsRequest;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AttachmentSettings attachmentSettings = AttachmentSettings.builder().visibleToRecipients(false).build();
SetEnvelopeAttachmentsSettingsRequest setEnvelopeAttachmentsSettingsRequest =
SetEnvelopeAttachmentsSettingsRequest.builder().settings(attachmentSettings).build();
EnvelopeAttachments response = signplus.signplus.setTemplateAttachmentsSettings(
"template_id",
setEnvelopeAttachmentsSettingsRequest
);
System.out.println(response);
}
}
```
## setTemplateAttachmentsPlaceholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :---------------------------------------- | :------------------------------------------------------------------------------------------------------------------ | :------- | :----------- |
| templateId | String | ✅ | |
| setEnvelopeAttachmentsPlaceholdersRequest | [SetEnvelopeAttachmentsPlaceholdersRequest](/api-reference/endpoints/signplus/set-envelope-attachment-placeholders) | ✅ | Request Body |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.AttachmentPlaceholderRequest;
import com.alohi.signplus.models.EnvelopeAttachments;
import com.alohi.signplus.models.SetEnvelopeAttachmentsPlaceholdersRequest;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
AttachmentPlaceholderRequest attachmentPlaceholderRequest = AttachmentPlaceholderRequest.builder()
.recipientId("recipient_id")
.id("id")
.name("name")
.hint("hint")
.required(false)
.multiple(true)
.build();
List placeholdersList = Arrays.asList(attachmentPlaceholderRequest);
SetEnvelopeAttachmentsPlaceholdersRequest setEnvelopeAttachmentsPlaceholdersRequest =
SetEnvelopeAttachmentsPlaceholdersRequest.builder().placeholders(placeholdersList).build();
EnvelopeAttachments response = signplus.signplus.setTemplateAttachmentsPlaceholders(
"template_id",
setEnvelopeAttachmentsPlaceholdersRequest
);
System.out.println(response);
}
}
```
## createWebhook
Create webhook
* HTTP Method: `POST`
* Endpoint: `/webhook`
**Parameters**
| Name | Type | Required | Description |
| :------------------- | :----------------------------------------------------------------------- | :------- | :----------- |
| createWebhookRequest | [CreateWebhookRequest](/api-reference/endpoints/signplus/create-webhook) | ✅ | Request Body |
**Return Type**
`Webhook`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.CreateWebhookRequest;
import com.alohi.signplus.models.Webhook;
import com.alohi.signplus.models.WebhookEvent;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
CreateWebhookRequest createWebhookRequest = CreateWebhookRequest.builder()
.event(WebhookEvent.ENVELOPE_EXPIRED)
.target("target")
.build();
Webhook response = signplus.signplus.createWebhook(createWebhookRequest);
System.out.println(response);
}
}
```
## listWebhooks
List webhooks
* HTTP Method: `POST`
* Endpoint: `/webhooks`
**Parameters**
| Name | Type | Required | Description |
| :------------------ | :--------------------------------------------------------------------- | :------- | :----------- |
| listWebhooksRequest | [ListWebhooksRequest](/api-reference/endpoints/signplus/list-webhooks) | ❌ | Request Body |
**Return Type**
`ListWebhooksResponse`
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.ListWebhooksRequest;
import com.alohi.signplus.models.ListWebhooksResponse;
import com.alohi.signplus.models.WebhookEvent;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
ListWebhooksRequest listWebhooksRequest = ListWebhooksRequest.builder()
.webhookId("webhook_id")
.event(WebhookEvent.ENVELOPE_EXPIRED)
.build();
ListWebhooksResponse response = signplus.signplus.listWebhooks(listWebhooksRequest);
System.out.println(response);
}
}
```
## deleteWebhook
Delete webhook
* HTTP Method: `DELETE`
* Endpoint: `/webhook/{webhook_id}`
**Parameters**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| webhookId | String | ✅ | |
**Example Usage Code Snippet**
```java theme={null}
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
signplus.signplus.deleteWebhook("webhook_id");
}
}
```
# Models
# SetEnvelopeAttachmentsPlaceholdersRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :----------------------------------------- | :------- | :---------- |
| placeholders | List\<AttachmentPlaceholderRequest\> | ✅ | |
# Document
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------------- | :------- | :-------------------------------- |
| id | String | ❌ | Unique identifier of the document |
| name | String | ❌ | Name of the document |
| filename | String | ❌ | Filename of the document |
| pageCount | Long | ❌ | Number of pages in the document |
| pages | List\<Page\> | ❌ | List of pages in the document |
# CreateEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name | String | ✅ | Name of the envelope |
| legalityLevel | EnvelopeLegalityLevel | ✅ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| expiresAt | Long | ❌ | Unix timestamp of the expiration date |
| comment | String | ❌ | Comment for the envelope |
| sandbox | Boolean | ❌ | Whether the envelope is created in sandbox mode |
# ListEnvelopesRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :--------------------------- | :------- | :------------------------------------------------ |
| name | String | ❌ | Name of the envelope |
| tags | List\<String\> | ❌ | List of tags |
| comment | String | ❌ | Comment of the envelope |
| ids | List\<String\> | ❌ | List of envelope IDs |
| statuses | List\<EnvelopeStatus\> | ❌ | List of envelope statuses |
| folderIds | List\<String\> | ❌ | List of folder IDs |
| onlyRootFolder | Boolean | ❌ | Whether to only list envelopes in the root folder |
| dateFrom | Long | ❌ | Unix timestamp of the start date |
| dateTo | Long | ❌ | Unix timestamp of the end date |
| uid | String | ❌ | Unique identifier of the user |
| first | Long | ❌ | |
| last | Long | ❌ | |
| after | String | ❌ | |
| before | String | ❌ | |
| orderField | EnvelopeOrderField | ❌ | Field to order envelopes by |
| ascending | Boolean | ❌ | Whether to order envelopes in ascending order |
| includeTrash | Boolean | ❌ | Whether to include envelopes in the trash |
# AttachmentPlaceholder
**Properties**
| Name | Type | Required | Description |
| :---------- | :-------------------------------------- | :------- | :--------------------------------------------------------- |
| recipientId | String | ❌ | ID of the recipient |
| id | String | ❌ | ID of the attachment placeholder |
| name | String | ❌ | Name of the attachment placeholder |
| hint | String | ❌ | Hint of the attachment placeholder |
| required | Boolean | ❌ | Whether the attachment placeholder is required |
| multiple | Boolean | ❌ | Whether the attachment placeholder can have multiple files |
| files | List\<AttachmentPlaceholderFile\> | ❌ | |
# SetEnvelopeAttachmentsSettingsRequest
**Properties**
| Name | Type | Required | Description |
| :------- | :----------------- | :------- | :---------- |
| settings | AttachmentSettings | ✅ | |
# EnvelopeNotification
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :-------------------------------- |
| subject | String | ❌ | Subject of the notification |
| message | String | ❌ | Message of the notification |
| reminderInterval | Long | ❌ | Interval in days to send reminder |
# ListTemplatesRequest
**Properties**
| Name | Type | Required | Description |
| :--------- | :------------------- | :------- | :-------------------------------------------- |
| name | String | ❌ | Name of the template |
| tags | List\<String\> | ❌ | List of tag templates |
| ids | List\<String\> | ❌ | List of templates IDs |
| first | Long | ❌ | |
| last | Long | ❌ | |
| after | String | ❌ | |
| before | String | ❌ | |
| orderField | TemplateOrderField | ❌ | Field to order templates by |
| ascending | Boolean | ❌ | Whether to order templates in ascending order |
# SetTemplateCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| comment | String | ✅ | Comment for the template |
# Template
**Properties**
| Name | Type | Required | Description |
| :-------------- | :-------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id | String | ❌ | Unique identifier of the template |
| name | String | ❌ | Name of the template |
| comment | String | ❌ | Comment for the template |
| pages | Long | ❌ | Total number of pages in the template |
| legalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| createdAt | Long | ❌ | Unix timestamp of the creation date |
| updatedAt | Long | ❌ | Unix timestamp of the last modification date |
| expirationDelay | Long | ❌ | Expiration delay added to the current time when an envelope is created from this template |
| numRecipients | Long | ❌ | Number of recipients in the envelope |
| signingSteps | List\<TemplateSigningStep\> | ❌ | |
| documents | List\<Document\> | ❌ | |
| notification | EnvelopeNotification | ❌ | |
| dynamicFields | List\<String\> | ❌ | List of dynamic fields |
| attachments | EnvelopeAttachments | ❌ | |
# RecipientVerificationType
Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check.
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :----------------- |
| SMS | String | ✅ | "SMS" |
| PASSCODE | String | ✅ | "PASSCODE" |
| ID\_VERIFICATION | String | ✅ | "ID\_VERIFICATION" |
# AddEnvelopeSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :------------------------ | :------- | :-------------------- |
| signingSteps | List\<SigningStep\> | ❌ | List of signing steps |
# AnnotationFontFamily
Font family of the text
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------- |
| UNKNOWN | String | ✅ | "UNKNOWN" |
| SERIF | String | ✅ | "SERIF" |
| SANS | String | ✅ | "SANS" |
| MONO | String | ✅ | "MONO" |
# AddTemplateSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :-------------------------------- | :------- | :-------------------- |
| signingSteps | List\<TemplateSigningStep\> | ✅ | List of signing steps |
# SetEnvelopeCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| comment | String | ✅ | Comment for the envelope |
# TemplateOrderField
Field to order templates by
**Properties**
| Name | Type | Required | Description |
| :--------------------------- | :----- | :------- | :----------------------------- |
| TEMPLATE\_ID | String | ✅ | "TEMPLATE\_ID" |
| TEMPLATE\_CREATION\_DATE | String | ✅ | "TEMPLATE\_CREATION\_DATE" |
| TEMPLATE\_MODIFICATION\_DATE | String | ✅ | "TEMPLATE\_MODIFICATION\_DATE" |
| TEMPLATE\_NAME | String | ✅ | "TEMPLATE\_NAME" |
# EnvelopeOrderField
Field to order envelopes by
**Properties**
| Name | Type | Required | Description |
| :--------------------- | :----- | :------- | :----------------------- |
| CREATION\_DATE | String | ✅ | "CREATION\_DATE" |
| MODIFICATION\_DATE | String | ✅ | "MODIFICATION\_DATE" |
| NAME | String | ✅ | "NAME" |
| STATUS | String | ✅ | "STATUS" |
| LAST\_DOCUMENT\_CHANGE | String | ✅ | "LAST\_DOCUMENT\_CHANGE" |
# AddEnvelopeDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :------ | :------- | :------------------------------ |
| file | byte\[] | ❌ | File to upload in binary format |
# ListWebhooksRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------- | :------- | :------------------- |
| webhookId | String | ❌ | ID of the webhook |
| event | WebhookEvent | ❌ | Event of the webhook |
# SetEnvelopeLegalityLevelRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| legalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
# AttachmentPlaceholderFile
**Properties**
| Name | Type | Required | Description |
| :------- | :----- | :------- | :------------------------ |
| id | String | ❌ | ID of the file |
| name | String | ❌ | Name of the file |
| size | Long | ❌ | Size of the file in bytes |
| mimetype | String | ❌ | MIME type of the file |
# SetEnvelopeExpirationRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :--- | :------- | :------------------------------------ |
| expiresAt | Long | ✅ | Unix timestamp of the expiration date |
# AnnotationText
Text annotation (null if annotation is not a text)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :------------- | :------- | :--------------------------------- |
| size | Double | ❌ | Font size of the text in pt |
| color | Double | ❌ | Text color in 32bit representation |
| value | String | ❌ | Text content of the annotation |
| tooltip | String | ❌ | Tooltip of the annotation |
| dynamicFieldName | String | ❌ | Name of the dynamic field |
| font | AnnotationFont | ❌ | |
# AnnotationCheckbox
Checkbox annotation (null if annotation is not a checkbox)
**Properties**
| Name | Type | Required | Description |
| :------ | :---------------------- | :------- | :------------------------------ |
| checked | Boolean | ❌ | Whether the checkbox is checked |
| style | AnnotationCheckboxStyle | ❌ | Style of the checkbox |
# Envelope
**Properties**
| Name | Type | Required | Description |
| :------------ | :------------------------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id | String | ❌ | Unique identifier of the envelope |
| name | String | ❌ | Name of the envelope |
| comment | String | ❌ | Comment for the envelope |
| pages | Long | ❌ | Total number of pages in the envelope |
| flowType | EnvelopeFlowType | ❌ | Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow) |
| legalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| status | EnvelopeStatus | ❌ | Status of the envelope |
| createdAt | Long | ❌ | Unix timestamp of the creation date |
| updatedAt | Long | ❌ | Unix timestamp of the last modification date |
| expiresAt | Long | ❌ | Unix timestamp of the expiration date |
| numRecipients | Long | ❌ | Number of recipients in the envelope |
| isDuplicable | Boolean | ❌ | Whether the envelope can be duplicated |
| signingSteps | List\<SigningStep\> | ❌ | |
| documents | List\<Document\> | ❌ | |
| notification | EnvelopeNotification | ❌ | |
| attachments | EnvelopeAttachments | ❌ | |
# AddTemplateDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :------ | :------- | :------------------------------ |
| file | byte\[] | ✅ | File to upload in binary format |
# TemplateRecipient
**Properties**
| Name | Type | Required | Description |
| :---- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id | String | ❌ | Unique identifier of the recipient |
| uid | String | ❌ | Unique identifier of the user associated with the recipient |
| name | String | ❌ | Name of the recipient |
| email | String | ❌ | Email of the recipient |
| role | TemplateRecipientRole | ❌ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
# AddAnnotationRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| documentId | String | ✅ | ID of the document |
| page | Long | ✅ | Page number where the annotation is placed |
| x | Double | ✅ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | Double | ✅ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | Double | ✅ | Width of the annotation (in % of the page width from 0 to 100) |
| height | Double | ✅ | Height of the annotation (in % of the page height from 0 to 100) |
| type | AnnotationType | ✅ | Type of the annotation |
| recipientId | String | ❌ | ID of the recipient |
| required | Boolean | ❌ | |
| signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| datetime | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# ListEnvelopeDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :----------------------- | :------- | :---------- |
| annotations | List\<Annotation\> | ❌ | |
# EnvelopeStatus
Status of the envelope
**Properties**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :------------- |
| DRAFT | String | ✅ | "DRAFT" |
| IN\_PROGRESS | String | ✅ | "IN\_PROGRESS" |
| COMPLETED | String | ✅ | "COMPLETED" |
| EXPIRED | String | ✅ | "EXPIRED" |
| DECLINED | String | ✅ | "DECLINED" |
| VOIDED | String | ✅ | "VOIDED" |
| PENDING | String | ✅ | "PENDING" |
# RecipientVerification
**Properties**
| Name | Type | Required | Description |
| :---- | :------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | RecipientVerificationType | ❌ | Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check. |
| value | String | ❌ | Required for `PASSCODE` and `SMS` verification. - `PASSCODE`: code required by the recipient to sign the document. - `SMS`: recipient's phone number. - `ID_VERIFICATION`: leave empty. |
# AnnotationCheckboxStyle
Style of the checkbox
**Properties**
| Name | Type | Required | Description |
| :------------ | :----- | :------- | :-------------- |
| CIRCLE\_CHECK | String | ✅ | "CIRCLE\_CHECK" |
| CIRCLE\_FULL | String | ✅ | "CIRCLE\_FULL" |
| SQUARE\_CHECK | String | ✅ | "SQUARE\_CHECK" |
| SQUARE\_FULL | String | ✅ | "SQUARE\_FULL" |
| CHECK\_MARK | String | ✅ | "CHECK\_MARK" |
| TIMES\_SQUARE | String | ✅ | "TIMES\_SQUARE" |
# SigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :---------------------- | :------- | :----------------- |
| recipients | List\<Recipient\> | ❌ | List of recipients |
# AnnotationDateTime
Date annotation (null if annotation is not a date)
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| size | Double | ❌ | Font size of the text in pt |
| font | AnnotationFont | ❌ | |
| color | String | ❌ | Color of the text in hex format |
| autoFill | Boolean | ❌ | Whether the date should be automatically filled |
| timezone | String | ❌ | Timezone of the date |
| timestamp | Long | ❌ | Unix timestamp of the date |
| format | AnnotationDateTimeFormat | ❌ | Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces) |
# DownloadEnvelopeSignedDocumentsParameters
**Properties**
| Name | Type | Required | Description |
| :---------------------- | :------ | :------- | :---------------------------------------------------------------------- |
| certificateOfCompletion | Boolean | ❌ | Whether to include the certificate of completion in the downloaded file |
# AttachmentSettings
**Properties**
| Name | Type | Required | Description |
| :------------------ | :------ | :------- | :-------------------------------------------------- |
| visibleToRecipients | Boolean | ❌ | Whether the attachment is visible to the recipients |
# CreateTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :---------- |
| name | String | ✅ | |
# ListTemplateDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :--------------------- | :------- | :---------- |
| documents | List\<Document\> | ❌ | |
# AnnotationInitials
Initials annotation (null if annotation is not initials)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------------------- |
| id | String | ❌ | Unique identifier of the annotation initials |
# AnnotationFont
**Properties**
| Name | Type | Required | Description |
| :----- | :------------------- | :------- | :------------------------- |
| family | AnnotationFontFamily | ❌ | Font family of the text |
| italic | Boolean | ❌ | Whether the text is italic |
| bold | Boolean | ❌ | Whether the text is bold |
# AnnotationType
Type of the annotation
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| TEXT | String | ✅ | "TEXT" |
| SIGNATURE | String | ✅ | "SIGNATURE" |
| INITIALS | String | ✅ | "INITIALS" |
| CHECKBOX | String | ✅ | "CHECKBOX" |
| DATE | String | ✅ | "DATE" |
# Webhook
**Properties**
| Name | Type | Required | Description |
| :----- | :----------- | :------- | :------------------------------- |
| id | String | ❌ | Unique identifier of the webhook |
| event | WebhookEvent | ❌ | Event of the webhook |
| target | String | ❌ | Target URL of the webhook |
# RenameTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| name | String | ✅ | Name of the template |
# ListTemplatesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :--------------------- | :------- | :------------------------------- |
| hasNextPage | Boolean | ❌ | Whether there is a next page |
| hasPreviousPage | Boolean | ❌ | Whether there is a previous page |
| templates | List\<Template\> | ❌ | |
# EnvelopeAttachments
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------------------------------------------- | :------- | :---------- |
| settings | AttachmentSettings | ❌ | |
| recipients | List\<AttachmentPlaceholdersPerRecipient\> | ❌ | |
# RecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| SIGNER | String | ✅ | "SIGNER" |
| RECEIVES\_COPY | String | ✅ | "RECEIVES\_COPY" |
| IN\_PERSON\_SIGNER | String | ✅ | "IN\_PERSON\_SIGNER" |
# Annotation
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| id | String | ❌ | Unique identifier of the annotation |
| recipientId | String | ❌ | ID of the recipient |
| documentId | String | ❌ | ID of the document |
| page | Long | ❌ | Page number where the annotation is placed |
| x | Double | ❌ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | Double | ❌ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | Double | ❌ | Width of the annotation (in % of the page width from 0 to 100) |
| height | Double | ❌ | Height of the annotation (in % of the page height from 0 to 100) |
| required | Boolean | ❌ | Whether the annotation is required |
| type | AnnotationType | ❌ | Type of the annotation |
| signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| datetime | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# DynamicField
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :------------------------- |
| name | String | ❌ | Name of the dynamic field |
| value | String | ❌ | Value of the dynamic field |
# AnnotationDateTimeFormat
Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces)
**Properties**
| Name | Type | Required | Description |
| :------------------------ | :----- | :------- | :-------------------------- |
| DMY\_NUMERIC\_SLASH | String | ✅ | "DMY\_NUMERIC\_SLASH" |
| MDY\_NUMERIC\_SLASH | String | ✅ | "MDY\_NUMERIC\_SLASH" |
| YMD\_NUMERIC\_SLASH | String | ✅ | "YMD\_NUMERIC\_SLASH" |
| DMY\_NUMERIC\_DASH\_SHORT | String | ✅ | "DMY\_NUMERIC\_DASH\_SHORT" |
| DMY\_NUMERIC\_DASH | String | ✅ | "DMY\_NUMERIC\_DASH" |
| YMD\_NUMERIC\_DASH | String | ✅ | "YMD\_NUMERIC\_DASH" |
| MDY\_TEXT\_DASH\_SHORT | String | ✅ | "MDY\_TEXT\_DASH\_SHORT" |
| MDY\_TEXT\_SPACE\_SHORT | String | ✅ | "MDY\_TEXT\_SPACE\_SHORT" |
| MDY\_TEXT\_SPACE | String | ✅ | "MDY\_TEXT\_SPACE" |
# EnvelopeFlowType
Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| REQUEST\_SIGNATURE | String | ✅ | "REQUEST\_SIGNATURE" |
| SIGN\_MYSELF | String | ✅ | "SIGN\_MYSELF" |
# EnvelopeLegalityLevel
Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes)
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| SES | String | ✅ | "SES" |
| QES\_EIDAS | String | ✅ | "QES\_EIDAS" |
| QES\_ZERTES | String | ✅ | "QES\_ZERTES" |
# TemplateRecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| SIGNER | String | ✅ | "SIGNER" |
| RECEIVES\_COPY | String | ✅ | "RECEIVES\_COPY" |
| IN\_PERSON\_SIGNER | String | ✅ | "IN\_PERSON\_SIGNER" |
| SENDER | String | ✅ | "SENDER" |
# AttachmentPlaceholderRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :------ | :------- | :--------------------------------------------- |
| recipientId | String | ✅ | ID of the recipient |
| name | String | ✅ | |
| required | Boolean | ✅ | Whether the attachment placeholder is required |
| multiple | Boolean | ✅ | |
| id | String | ❌ | ID of the attachment placeholder |
| hint | String | ❌ | Hint of the attachment placeholder |
# SetEnvelopeDynamicFieldsRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :------------------------- | :------- | :--------------------- |
| dynamicFields | List\<DynamicField\> | ✅ | List of dynamic fields |
# Page
**Properties**
| Name | Type | Required | Description |
| :----- | :--- | :------- | :--------------------------- |
| width | Long | ❌ | Width of the page in pixels |
| height | Long | ❌ | Height of the page in pixels |
# TemplateSigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :------------------------------ | :------- | :----------------- |
| recipients | List\<TemplateRecipient\> | ❌ | List of recipients |
# AttachmentPlaceholdersPerRecipient
**Properties**
| Name | Type | Required | Description |
| :------------ | :---------------------------------- | :------- | :-------------------- |
| recipientId | String | ❌ | ID of the recipient |
| recipientName | String | ❌ | Name of the recipient |
| placeholders | List\<AttachmentPlaceholder\> | ❌ | |
# ListEnvelopesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :--------------------- | :------- | :------------------------------- |
| hasNextPage | Boolean | ❌ | Whether there is a next page |
| hasPreviousPage | Boolean | ❌ | Whether there is a previous page |
| envelopes | List\<Envelope\> | ❌ | |
# Recipient
**Properties**
| Name | Type | Required | Description |
| :----------- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | String | ✅ | Name of the recipient |
| email | String | ✅ | Email of the recipient |
| role | RecipientRole | ✅ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
| id | String | ❌ | Unique identifier of the recipient |
| uid | String | ❌ | Unique identifier of the user associated with the recipient |
| verification | RecipientVerification | ❌ | |
# WebhookEvent
Event of the webhook
**Properties**
| Name | Type | Required | Description |
| :--------------------- | :----- | :------- | :----------------------- |
| ENVELOPE\_EXPIRED | String | ✅ | "ENVELOPE\_EXPIRED" |
| ENVELOPE\_DECLINED | String | ✅ | "ENVELOPE\_DECLINED" |
| ENVELOPE\_VOIDED | String | ✅ | "ENVELOPE\_VOIDED" |
| ENVELOPE\_COMPLETED | String | ✅ | "ENVELOPE\_COMPLETED" |
| ENVELOPE\_AUDIT\_TRAIL | String | ✅ | "ENVELOPE\_AUDIT\_TRAIL" |
# CreateWebhookRequest
**Properties**
| Name | Type | Required | Description |
| :----- | :----------- | :------- | :------------------------ |
| event | WebhookEvent | ✅ | Event of the webhook |
| target | String | ✅ | URL of the webhook target |
# CreateEnvelopeFromTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :------ | :------- | :---------------------------------------------- |
| name | String | ✅ | Name of the envelope |
| comment | String | ❌ | Comment for the envelope |
| sandbox | Boolean | ❌ | Whether the envelope is created in sandbox mode |
# ListTemplateAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :----------------------- | :------- | :---------- |
| annotations | List\<Annotation\> | ❌ | |
# RenameEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| name | String | ❌ | Name of the envelope |
# ListTemplateDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :----------------------- | :------- | :---------- |
| annotations | List\<Annotation\> | ❌ | |
# ListEnvelopeDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :--------------------- | :------- | :---------- |
| documents | List\<Document\> | ❌ | |
# ListWebhooksResponse
**Properties**
| Name | Type | Required | Description |
| :------- | :-------------------- | :------- | :---------- |
| webhooks | List\<Webhook\> | ❌ | |
# AnnotationSignature
Signature annotation (null if annotation is not a signature)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :-------------------------------------------- |
| id | String | ❌ | Unique identifier of the annotation signature |
# Install
Source: https://apidoc.sign.plus/backend-sdks/php/install
Install the Signplus PHP SDK package
```bash theme={null}
composer install alohi/signplus
```
Call your first SDK method
```php theme={null}
Signplus->createEnvelope(input: $input);
print_r($response);
```
# Sdk reference
Source: https://apidoc.sign.plus/backend-sdks/php/sdk-reference
A list of all methods in the `Signplus` service. Click on the method name to view detailed information about that method.
| Methods | Description |
| :--------------------------------------------------------------------------------- | :-------------------------------------------------------------- |
| [create\_envelope](#create_envelope) | Create new envelope |
| [create\_envelope\_from\_template](#create_envelope_from_template) | Create new envelope from template |
| [list\_envelopes](#list_envelopes) | List envelopes |
| [get\_envelope](#get_envelope) | Get envelope |
| [delete\_envelope](#delete_envelope) | Delete envelope |
| [download\_envelope\_signed\_documents](#download_envelope_signed_documents) | Download signed documents for an envelope |
| [download\_envelope\_certificate](#download_envelope_certificate) | Download certificate of completion for an envelope |
| [get\_envelope\_document](#get_envelope_document) | Get envelope document |
| [get\_envelope\_documents](#get_envelope_documents) | Get envelope documents |
| [add\_envelope\_document](#add_envelope_document) | Add envelope document |
| [set\_envelope\_dynamic\_fields](#set_envelope_dynamic_fields) | Set envelope dynamic fields |
| [add\_envelope\_signing\_steps](#add_envelope_signing_steps) | Add envelope signing steps |
| [set\_envelope\_attachments\_settings](#set_envelope_attachments_settings) | Set envelope attachment settings |
| [set\_envelope\_attachments\_placeholders](#set_envelope_attachments_placeholders) | Placeholders to be set, completely replacing the existing ones. |
| [get\_attachment\_file](#get_attachment_file) | Get envelope attachment file |
| [send\_envelope](#send_envelope) | Send envelope for signature |
| [duplicate\_envelope](#duplicate_envelope) | Duplicate envelope |
| [void\_envelope](#void_envelope) | Void envelope |
| [rename\_envelope](#rename_envelope) | Rename envelope |
| [set\_envelope\_comment](#set_envelope_comment) | Set envelope comment |
| [set\_envelope\_notification](#set_envelope_notification) | Set envelope notification |
| [set\_envelope\_expiration\_date](#set_envelope_expiration_date) | Set envelope expiration date |
| [set\_envelope\_legality\_level](#set_envelope_legality_level) | Set envelope legality level |
| [get\_envelope\_annotations](#get_envelope_annotations) | Get envelope annotations |
| [get\_envelope\_document\_annotations](#get_envelope_document_annotations) | Get envelope document annotations |
| [add\_envelope\_annotation](#add_envelope_annotation) | Add envelope annotation |
| [delete\_envelope\_annotation](#delete_envelope_annotation) | Delete envelope annotation |
| [create\_template](#create_template) | Create new template |
| [list\_templates](#list_templates) | List templates |
| [get\_template](#get_template) | Get template |
| [delete\_template](#delete_template) | Delete template |
| [duplicate\_template](#duplicate_template) | Duplicate template |
| [add\_template\_document](#add_template_document) | Add template document |
| [get\_template\_document](#get_template_document) | Get template document |
| [get\_template\_documents](#get_template_documents) | Get template documents |
| [add\_template\_signing\_steps](#add_template_signing_steps) | Add template signing steps |
| [rename\_template](#rename_template) | Rename template |
| [set\_template\_comment](#set_template_comment) | Set template comment |
| [set\_template\_notification](#set_template_notification) | Set template notification |
| [get\_template\_annotations](#get_template_annotations) | Get template annotations |
| [get\_document\_template\_annotations](#get_document_template_annotations) | Get document template annotations |
| [add\_template\_annotation](#add_template_annotation) | Add template annotation |
| [delete\_template\_annotation](#delete_template_annotation) | Delete template annotation |
| [set\_template\_attachments\_settings](#set_template_attachments_settings) | Set template attachment settings |
| [set\_template\_attachments\_placeholders](#set_template_attachments_placeholders) | Placeholders to be set, completely replacing the existing ones. |
| [create\_webhook](#create_webhook) | Create webhook |
| [list\_webhooks](#list_webhooks) | List webhooks |
| [delete\_webhook](#delete_webhook) | Delete webhook |
## create\_envelope
Create new envelope
* HTTP Method: `POST`
* Endpoint: `/envelope`
**Parameters**
| Name | Type | Required | Description |
| :---- | :------------------------------------------------------------------------------------ | :------- | :------------------ |
| input | [Models\CreateEnvelopeRequest](/api-reference/endpoints/signplus/create-new-envelope) | ✅ | Create new envelope |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->createEnvelope(
input: $input
);
print_r($response);
```
## create\_envelope\_from\_template
Create new envelope from template
* HTTP Method: `POST`
* Endpoint: `/envelope/from_template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :-------------------------------------------------------------------------------------------------------------- | :------- | :-------------------------------- |
| input | [Models\CreateEnvelopeFromTemplateRequest](/api-reference/endpoints/signplus/create-new-envelope-from-template) | ✅ | Create new envelope from template |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->createEnvelopeFromTemplate(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## list\_envelopes
List envelopes
* HTTP Method: `POST`
* Endpoint: `/envelopes`
**Parameters**
| Name | Type | Required | Description |
| :---- | :------------------------------------------------------------------------------ | :------- | :------------- |
| input | [Models\ListEnvelopesRequest](/api-reference/endpoints/signplus/list-envelopes) | ❌ | List envelopes |
**Return Type**
`Models\ListEnvelopesResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->listEnvelopes(
input: $input
);
print_r($response);
```
## get\_envelope
Get envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->getEnvelope(
envelopeId: "envelope_id"
);
print_r($response);
```
## delete\_envelope
Delete envelope
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->deleteEnvelope(
envelopeId: "envelope_id"
);
print_r($response);
```
## download\_envelope\_signed\_documents
Download signed documents for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/signed_documents`
**Parameters**
| Name | Type | Required | Description |
| :------------------------ | :----- | :------- | :---------------------------------------------------------------------- |
| \$envelopeId | string | ✅ | ID of the envelope |
| \$certificateOfCompletion | bool | ❌ | Whether to include the certificate of completion in the downloaded file |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->downloadEnvelopeSignedDocuments(
certificateOfCompletion: true,
envelopeId: "envelope_id"
);
print_r($response);
```
## download\_envelope\_certificate
Download certificate of completion for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/certificate`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------- |
| \$envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->downloadEnvelopeCertificate(
envelopeId: "envelope_id"
);
print_r($response);
```
## get\_envelope\_document
Get envelope document
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
| \$documentId | string | ✅ | |
**Return Type**
`Models\Document`
**Example Usage Code Snippet**
```php theme={null}
signplus->getEnvelopeDocument(
envelopeId: "envelope_id",
documentId: "document_id"
);
print_r($response);
```
## get\_envelope\_documents
Get envelope documents
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\ListEnvelopeDocumentsResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->getEnvelopeDocuments(
envelopeId: "envelope_id"
);
print_r($response);
```
## add\_envelope\_document
Add envelope document
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------------------------------------------------------------------- | :------- | :-------------------- |
| input | [Models\AddEnvelopeDocumentRequest](/api-reference/endpoints/signplus/add-envelope-document) | ✅ | Add envelope document |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Document`
**Example Usage Code Snippet**
```php theme={null}
signplus->addEnvelopeDocument(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_dynamic\_fields
Set envelope dynamic fields
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/dynamic_fields`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------------------------------------------------------------------------------ | :------- | :-------------------------- |
| input | [Models\SetEnvelopeDynamicFieldsRequest](/api-reference/endpoints/signplus/set-envelope-dynamic-fields) | ✅ | Set envelope dynamic fields |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeDynamicFields(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## add\_envelope\_signing\_steps
Add envelope signing steps
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :---------------------------------------------------------------------------------------------------- | :------- | :------------------------- |
| input | [Models\AddEnvelopeSigningStepsRequest](/api-reference/endpoints/signplus/add-envelope-signing-steps) | ✅ | Add envelope signing steps |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->addEnvelopeSigningSteps(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_attachments\_settings
Set envelope attachment settings
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------------------- | :------- | :------------------------------- |
| input | Models\SetEnvelopeAttachmentsSettingsRequest | ✅ | Set envelope attachment settings |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\EnvelopeAttachments`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeAttachmentsSettings(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_attachments\_placeholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----------------------------------------------- | :------- | :-------------------------------------------------------------- |
| input | Models\SetEnvelopeAttachmentsPlaceholdersRequest | ✅ | Placeholders to be set, completely replacing the existing ones. |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\EnvelopeAttachments`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeAttachmentsPlaceholders(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## get\_attachment\_file
Get envelope attachment file
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/attachments/{file_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
| \$fileId | string | ✅ | |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->getAttachmentFile(
envelopeId: "envelope_id",
fileId: "file_id"
);
print_r($response);
```
## send\_envelope
Send envelope for signature
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/send`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->sendEnvelope(
envelopeId: "envelope_id"
);
print_r($response);
```
## duplicate\_envelope
Duplicate envelope
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->duplicateEnvelope(
envelopeId: "envelope_id"
);
print_r($response);
```
## void\_envelope
Void envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/void`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->voidEnvelope(
envelopeId: "envelope_id"
);
print_r($response);
```
## rename\_envelope
Rename envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :-------------------------------------------------------------------------------- | :------- | :-------------- |
| input | [Models\RenameEnvelopeRequest](/api-reference/endpoints/signplus/rename-envelope) | ✅ | Rename envelope |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->renameEnvelope(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_comment
Set envelope comment
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----------------------------------------------------------------------------------------- | :------- | :------------------- |
| input | [Models\SetEnvelopeCommentRequest](/api-reference/endpoints/signplus/set-envelope-comment) | ✅ | Set envelope comment |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeComment(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_notification
Set envelope notification
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :-------------------------- | :------- | :------------------------ |
| input | Models\EnvelopeNotification | ✅ | Set envelope notification |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeNotification(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_expiration\_date
Set envelope expiration date
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_expiration_date`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :---------------------------------- | :------- | :--------------------------- |
| input | Models\SetEnvelopeExpirationRequest | ✅ | Set envelope expiration date |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeExpirationDate(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## set\_envelope\_legality\_level
Set envelope legality level
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_legality_level`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------------- | :------- | :-------------------------- |
| input | Models\SetEnvelopeLegalityLevelRequest | ✅ | Set envelope legality level |
| \$envelopeId | string | ✅ | |
**Return Type**
`Models\Envelope`
**Example Usage Code Snippet**
```php theme={null}
signplus->setEnvelopeLegalityLevel(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## get\_envelope\_annotations
Get envelope annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------- |
| \$envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`array`
**Example Usage Code Snippet**
```php theme={null}
signplus->getEnvelopeAnnotations(
envelopeId: "envelope_id"
);
print_r($response);
```
## get\_envelope\_document\_annotations
Get envelope document annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------- |
| \$envelopeId | string | ✅ | ID of the envelope |
| \$documentId | string | ✅ | ID of document |
**Return Type**
`Models\ListEnvelopeDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->getEnvelopeDocumentAnnotations(
envelopeId: "envelope_id",
documentId: "document_id"
);
print_r($response);
```
## add\_envelope\_annotation
Add envelope annotation
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--------------------------------------------------------------------------------------- | :------- | :---------------------- |
| input | [Models\AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | Add envelope annotation |
| \$envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`Models\Annotation`
**Example Usage Code Snippet**
```php theme={null}
signplus->addEnvelopeAnnotation(
input: $input,
envelopeId: "envelope_id"
);
print_r($response);
```
## delete\_envelope\_annotation
Delete envelope annotation
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :----------------------------- |
| \$envelopeId | string | ✅ | ID of the envelope |
| \$annotationId | string | ✅ | ID of the annotation to delete |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->deleteEnvelopeAnnotation(
envelopeId: "envelope_id",
annotationId: "annotation_id"
);
print_r($response);
```
## create\_template
Create new template
* HTTP Method: `POST`
* Endpoint: `/template`
**Parameters**
| Name | Type | Required | Description |
| :---- | :------------------------------------------------------------------------------------ | :------- | :------------------ |
| input | [Models\CreateTemplateRequest](/api-reference/endpoints/signplus/create-new-template) | ✅ | Create new template |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->createTemplate(
input: $input
);
print_r($response);
```
## list\_templates
List templates
* HTTP Method: `POST`
* Endpoint: `/templates`
**Parameters**
| Name | Type | Required | Description |
| :---- | :------------------------------------------------------------------------------ | :------- | :------------- |
| input | [Models\ListTemplatesRequest](/api-reference/endpoints/signplus/list-templates) | ❌ | List templates |
**Return Type**
`Models\ListTemplatesResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->listTemplates(
input: $input
);
print_r($response);
```
## get\_template
Get template
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->getTemplate(
templateId: "template_id"
);
print_r($response);
```
## delete\_template
Delete template
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$templateId | string | ✅ | |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->deleteTemplate(
templateId: "template_id"
);
print_r($response);
```
## duplicate\_template
Duplicate template
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->duplicateTemplate(
templateId: "template_id"
);
print_r($response);
```
## add\_template\_document
Add template document
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :-------------------------------- | :------- | :-------------------- |
| input | Models\AddTemplateDocumentRequest | ✅ | Add template document |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Document`
**Example Usage Code Snippet**
```php theme={null}
signplus->addTemplateDocument(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## get\_template\_document
Get template document
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$templateId | string | ✅ | |
| \$documentId | string | ✅ | |
**Return Type**
`Models\Document`
**Example Usage Code Snippet**
```php theme={null}
signplus->getTemplateDocument(
templateId: "template_id",
documentId: "document_id"
);
print_r($response);
```
## get\_template\_documents
Get template documents
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------- |
| \$templateId | string | ✅ | |
**Return Type**
`Models\ListTemplateDocumentsResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->getTemplateDocuments(
templateId: "template_id"
);
print_r($response);
```
## add\_template\_signing\_steps
Add template signing steps
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------------ | :------- | :------------------------- |
| input | Models\AddTemplateSigningStepsRequest | ✅ | Add template signing steps |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->addTemplateSigningSteps(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## rename\_template
Rename template
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--------------------------- | :------- | :-------------- |
| input | Models\RenameTemplateRequest | ✅ | Rename template |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->renameTemplate(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## set\_template\_comment
Set template comment
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------- | :------- | :------------------- |
| input | Models\SetTemplateCommentRequest | ✅ | Set template comment |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->setTemplateComment(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## set\_template\_notification
Set template notification
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :-------------------------- | :------- | :------------------------ |
| input | Models\EnvelopeNotification | ✅ | Set template notification |
| \$templateId | string | ✅ | |
**Return Type**
`Models\Template`
**Example Usage Code Snippet**
```php theme={null}
signplus->setTemplateNotification(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## get\_template\_annotations
Get template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------- |
| \$templateId | string | ✅ | ID of the template |
**Return Type**
`Models\ListTemplateAnnotationsResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->getTemplateAnnotations(
templateId: "template_id"
);
print_r($response);
```
## get\_document\_template\_annotations
Get document template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------- |
| \$templateId | string | ✅ | ID of the template |
| \$documentId | string | ✅ | ID of document |
**Return Type**
`Models\ListTemplateDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->getDocumentTemplateAnnotations(
templateId: "template_id",
documentId: "document_id"
);
print_r($response);
```
## add\_template\_annotation
Add template annotation
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--------------------------------------------------------------------------------------- | :------- | :---------------------- |
| input | [Models\AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | Add template annotation |
| \$templateId | string | ✅ | ID of the template |
**Return Type**
`Models\Annotation`
**Example Usage Code Snippet**
```php theme={null}
signplus->addTemplateAnnotation(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## delete\_template\_annotation
Delete template annotation
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :----------------------------- |
| \$templateId | string | ✅ | ID of the template |
| \$annotationId | string | ✅ | ID of the annotation to delete |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->deleteTemplateAnnotation(
templateId: "template_id",
annotationId: "annotation_id"
);
print_r($response);
```
## set\_template\_attachments\_settings
Set template attachment settings
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :------------------------------------------- | :------- | :------------------------------- |
| input | Models\SetEnvelopeAttachmentsSettingsRequest | ✅ | Set template attachment settings |
| \$templateId | string | ✅ | |
**Return Type**
`Models\EnvelopeAttachments`
**Example Usage Code Snippet**
```php theme={null}
signplus->setTemplateAttachmentsSettings(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## set\_template\_attachments\_placeholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----------------------------------------------- | :------- | :-------------------------------------------------------------- |
| input | Models\SetEnvelopeAttachmentsPlaceholdersRequest | ✅ | Placeholders to be set, completely replacing the existing ones. |
| \$templateId | string | ✅ | |
**Return Type**
`Models\EnvelopeAttachments`
**Example Usage Code Snippet**
```php theme={null}
signplus->setTemplateAttachmentsPlaceholders(
input: $input,
templateId: "template_id"
);
print_r($response);
```
## create\_webhook
Create webhook
* HTTP Method: `POST`
* Endpoint: `/webhook`
**Parameters**
| Name | Type | Required | Description |
| :---- | :------------------------------------------------------------------------------ | :------- | :------------- |
| input | [Models\CreateWebhookRequest](/api-reference/endpoints/signplus/create-webhook) | ✅ | Create webhook |
**Return Type**
`Models\Webhook`
**Example Usage Code Snippet**
```php theme={null}
signplus->createWebhook(
input: $input
);
print_r($response);
```
## list\_webhooks
List webhooks
* HTTP Method: `POST`
* Endpoint: `/webhooks`
**Parameters**
| Name | Type | Required | Description |
| :---- | :---------------------------------------------------------------------------- | :------- | :------------ |
| input | [Models\ListWebhooksRequest](/api-reference/endpoints/signplus/list-webhooks) | ❌ | List webhooks |
**Return Type**
`Models\ListWebhooksResponse`
**Example Usage Code Snippet**
```php theme={null}
signplus->listWebhooks(
input: $input
);
print_r($response);
```
## delete\_webhook
Delete webhook
* HTTP Method: `DELETE`
* Endpoint: `/webhook/{webhook_id}`
**Parameters**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| \$webhookId | string | ✅ | |
**Return Type**
`mixed`
**Example Usage Code Snippet**
```php theme={null}
signplus->deleteWebhook(
webhookId: "webhook_id"
);
print_r($response);
```
# Models
# SetEnvelopeAttachmentsPlaceholdersRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :---- | :------- | :---------- |
| placeholders | array | ✅ | |
# Document
**Properties**
| Name | Type | Required | Description |
| :-------- | :------ | :------- | :-------------------------------- |
| id | string | ❌ | Unique identifier of the document |
| name | string | ❌ | Name of the document |
| filename | string | ❌ | Filename of the document |
| pageCount | integer | ❌ | Number of pages in the document |
| pages | array | ❌ | List of pages in the document |
# CreateEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name | string | ✅ | Name of the envelope |
| legalityLevel | model | ✅ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| expiresAt | integer | ❌ | Unix timestamp of the expiration date |
| comment | string | ❌ | Comment for the envelope |
| sandbox | boolean | ❌ | Whether the envelope is created in sandbox mode |
# ListEnvelopesRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :------ | :------- | :------------------------------------------------ |
| name | string | ❌ | Name of the envelope |
| tags | array | ❌ | List of tags |
| comment | string | ❌ | Comment of the envelope |
| ids | array | ❌ | List of envelope IDs |
| statuses | array | ❌ | List of envelope statuses |
| folderIds | array | ❌ | List of folder IDs |
| onlyRootFolder | boolean | ❌ | Whether to only list envelopes in the root folder |
| dateFrom | integer | ❌ | Unix timestamp of the start date |
| dateTo | integer | ❌ | Unix timestamp of the end date |
| uid | string | ❌ | Unique identifier of the user |
| first | integer | ❌ | |
| last | integer | ❌ | |
| after | string | ❌ | |
| before | string | ❌ | |
| orderField | model | ❌ | Field to order envelopes by |
| ascending | boolean | ❌ | Whether to order envelopes in ascending order |
| includeTrash | boolean | ❌ | Whether to include envelopes in the trash |
# AttachmentPlaceholder
**Properties**
| Name | Type | Required | Description |
| :---------- | :------ | :------- | :--------------------------------------------------------- |
| recipientId | string | ❌ | ID of the recipient |
| id | string | ❌ | ID of the attachment placeholder |
| name | string | ❌ | Name of the attachment placeholder |
| hint | string | ❌ | Hint of the attachment placeholder |
| required | boolean | ❌ | Whether the attachment placeholder is required |
| multiple | boolean | ❌ | Whether the attachment placeholder can have multiple files |
| files | array | ❌ | |
# SetEnvelopeAttachmentsSettingsRequest
**Properties**
| Name | Type | Required | Description |
| :------- | :---- | :------- | :---------- |
| settings | model | ✅ | |
# EnvelopeNotification
**Properties**
| Name | Type | Required | Description |
| :--------------- | :------ | :------- | :-------------------------------- |
| subject | string | ❌ | Subject of the notification |
| message | string | ❌ | Message of the notification |
| reminderInterval | integer | ❌ | Interval in days to send reminder |
# ListTemplatesRequest
**Properties**
| Name | Type | Required | Description |
| :--------- | :------ | :------- | :-------------------------------------------- |
| name | string | ❌ | Name of the template |
| tags | array | ❌ | List of tag templates |
| ids | array | ❌ | List of templates IDs |
| first | integer | ❌ | |
| last | integer | ❌ | |
| after | string | ❌ | |
| before | string | ❌ | |
| orderField | model | ❌ | Field to order templates by |
| ascending | boolean | ❌ | Whether to order templates in ascending order |
# SetTemplateCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| comment | string | ✅ | Comment for the template |
# Template
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id | string | ❌ | Unique identifier of the template |
| name | string | ❌ | Name of the template |
| comment | string | ❌ | Comment for the template |
| pages | integer | ❌ | Total number of pages in the template |
| legalityLevel | model | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| createdAt | integer | ❌ | Unix timestamp of the creation date |
| updatedAt | integer | ❌ | Unix timestamp of the last modification date |
| expirationDelay | integer | ❌ | Expiration delay added to the current time when an envelope is created from this template |
| numRecipients | integer | ❌ | Number of recipients in the envelope |
| signingSteps | array | ❌ | |
| documents | array | ❌ | |
| notification | model | ❌ | |
| dynamicFields | array | ❌ | List of dynamic fields |
| attachments | model | ❌ | |
# RecipientVerificationType
Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check.
**Properties**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :--------------- |
| Sms | string | | SMS |
| Passcode | string | | PASSCODE |
| IdVerification | string | | ID\_VERIFICATION |
# AddEnvelopeSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :---- | :------- | :-------------------- |
| signingSteps | array | ❌ | List of signing steps |
# AnnotationFontFamily
Font family of the text
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------- |
| Unknown | string | | UNKNOWN |
| Serif | string | | SERIF |
| Sans | string | | SANS |
| Mono | string | | MONO |
# AddTemplateSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :---- | :------- | :-------------------- |
| signingSteps | array | ✅ | List of signing steps |
# SetEnvelopeCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| comment | string | ✅ | Comment for the envelope |
# TemplateOrderField
Field to order templates by
**Properties**
| Name | Type | Required | Description |
| :----------------------- | :----- | :------- | :--------------------------- |
| TemplateId | string | | TEMPLATE\_ID |
| TemplateCreationDate | string | | TEMPLATE\_CREATION\_DATE |
| TemplateModificationDate | string | | TEMPLATE\_MODIFICATION\_DATE |
| TemplateName | string | | TEMPLATE\_NAME |
# EnvelopeOrderField
Field to order envelopes by
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :--------------------- |
| CreationDate | string | | CREATION\_DATE |
| ModificationDate | string | | MODIFICATION\_DATE |
| Name | string | | NAME |
| Status | string | | STATUS |
| LastDocumentChange | string | | LAST\_DOCUMENT\_CHANGE |
# AddEnvelopeDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------ |
| file | binary | ❌ | File to upload in binary format |
# ListWebhooksRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :------------------- |
| webhookId | string | ❌ | ID of the webhook |
| event | model | ❌ | Event of the webhook |
# SetEnvelopeLegalityLevelRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :---- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| legalityLevel | model | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
# AttachmentPlaceholderFile
**Properties**
| Name | Type | Required | Description |
| :------- | :------ | :------- | :------------------------ |
| id | string | ❌ | ID of the file |
| name | string | ❌ | Name of the file |
| size | integer | ❌ | Size of the file in bytes |
| mimetype | string | ❌ | MIME type of the file |
# SetEnvelopeExpirationRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :------ | :------- | :------------------------------------ |
| expiresAt | integer | ✅ | Unix timestamp of the expiration date |
# AnnotationText
Text annotation (null if annotation is not a text)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :--------------------------------- |
| size | number | ❌ | Font size of the text in pt |
| color | number | ❌ | Text color in 32bit representation |
| value | string | ❌ | Text content of the annotation |
| tooltip | string | ❌ | Tooltip of the annotation |
| dynamicFieldName | string | ❌ | Name of the dynamic field |
| font | model | ❌ | |
# AnnotationCheckbox
Checkbox annotation (null if annotation is not a checkbox)
**Properties**
| Name | Type | Required | Description |
| :------ | :------ | :------- | :------------------------------ |
| checked | boolean | ❌ | Whether the checkbox is checked |
| style | model | ❌ | Style of the checkbox |
# Envelope
**Properties**
| Name | Type | Required | Description |
| :------------ | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id | string | ❌ | Unique identifier of the envelope |
| name | string | ❌ | Name of the envelope |
| comment | string | ❌ | Comment for the envelope |
| pages | integer | ❌ | Total number of pages in the envelope |
| flowType | model | ❌ | Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow) |
| legalityLevel | model | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| status | model | ❌ | Status of the envelope |
| createdAt | integer | ❌ | Unix timestamp of the creation date |
| updatedAt | integer | ❌ | Unix timestamp of the last modification date |
| expiresAt | integer | ❌ | Unix timestamp of the expiration date |
| numRecipients | integer | ❌ | Number of recipients in the envelope |
| isDuplicable | boolean | ❌ | Whether the envelope can be duplicated |
| signingSteps | array | ❌ | |
| documents | array | ❌ | |
| notification | model | ❌ | |
| attachments | model | ❌ | |
# AddTemplateDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------ |
| file | binary | ✅ | File to upload in binary format |
# TemplateRecipient
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id | string | ❌ | Unique identifier of the recipient |
| uid | string | ❌ | Unique identifier of the user associated with the recipient |
| name | string | ❌ | Name of the recipient |
| email | string | ❌ | Email of the recipient |
| role | model | ❌ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
# AddAnnotationRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :------ | :------- | :---------------------------------------------------------------------------------------------- |
| documentId | string | ✅ | ID of the document |
| page | integer | ✅ | Page number where the annotation is placed |
| x | number | ✅ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | number | ✅ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | number | ✅ | Width of the annotation (in % of the page width from 0 to 100) |
| height | number | ✅ | Height of the annotation (in % of the page height from 0 to 100) |
| type | model | ✅ | Type of the annotation |
| recipientId | string | ❌ | ID of the recipient |
| required | boolean | ❌ | |
| signature | model | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | model | ❌ | Initials annotation (null if annotation is not initials) |
| text | model | ❌ | Text annotation (null if annotation is not a text) |
| datetime | model | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | model | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# ListEnvelopeDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---- | :------- | :---------- |
| annotations | array | ❌ | |
# EnvelopeStatus
Status of the envelope
**Properties**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------- |
| Draft | string | | DRAFT |
| InProgress | string | | IN\_PROGRESS |
| Completed | string | | COMPLETED |
| Expired | string | | EXPIRED |
| Declined | string | | DECLINED |
| Voided | string | | VOIDED |
| Pending | string | | PENDING |
# RecipientVerification
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | model | ❌ | Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check. |
| value | string | ❌ | Required for `PASSCODE` and `SMS` verification. - `PASSCODE`: code required by the recipient to sign the document. - `SMS`: recipient's phone number. - `ID_VERIFICATION`: leave empty. |
# AnnotationCheckboxStyle
Style of the checkbox
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| CircleCheck | string | | CIRCLE\_CHECK |
| CircleFull | string | | CIRCLE\_FULL |
| SquareCheck | string | | SQUARE\_CHECK |
| SquareFull | string | | SQUARE\_FULL |
| CheckMark | string | | CHECK\_MARK |
| TimesSquare | string | | TIMES\_SQUARE |
# SigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :---- | :------- | :----------------- |
| recipients | array | ❌ | List of recipients |
# AnnotationDateTime
Date annotation (null if annotation is not a date)
**Properties**
| Name | Type | Required | Description |
| :-------- | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| size | number | ❌ | Font size of the text in pt |
| font | model | ❌ | |
| color | string | ❌ | Color of the text in hex format |
| autoFill | boolean | ❌ | Whether the date should be automatically filled |
| timezone | string | ❌ | Timezone of the date |
| timestamp | integer | ❌ | Unix timestamp of the date |
| format | model | ❌ | Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces) |
# AttachmentSettings
**Properties**
| Name | Type | Required | Description |
| :------------------ | :------ | :------- | :-------------------------------------------------- |
| visibleToRecipients | boolean | ❌ | Whether the attachment is visible to the recipients |
# CreateTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :---------- |
| name | string | ✅ | |
# ListTemplateDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :---- | :------- | :---------- |
| documents | array | ❌ | |
# AnnotationInitials
Initials annotation (null if annotation is not initials)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------------------- |
| id | string | ❌ | Unique identifier of the annotation initials |
# AnnotationFont
**Properties**
| Name | Type | Required | Description |
| :----- | :------ | :------- | :------------------------- |
| family | model | ❌ | Font family of the text |
| italic | boolean | ❌ | Whether the text is italic |
| bold | boolean | ❌ | Whether the text is bold |
# AnnotationType
Type of the annotation
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| Text | string | | TEXT |
| Signature | string | | SIGNATURE |
| Initials | string | | INITIALS |
| Checkbox | string | | CHECKBOX |
| Date | string | | DATE |
# Webhook
**Properties**
| Name | Type | Required | Description |
| :----- | :----- | :------- | :------------------------------- |
| id | string | ❌ | Unique identifier of the webhook |
| event | model | ❌ | Event of the webhook |
| target | string | ❌ | Target URL of the webhook |
# RenameTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| name | string | ✅ | Name of the template |
# ListTemplatesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------ | :------- | :------------------------------- |
| hasNextPage | boolean | ❌ | Whether there is a next page |
| hasPreviousPage | boolean | ❌ | Whether there is a previous page |
| templates | array | ❌ | |
# EnvelopeAttachments
**Properties**
| Name | Type | Required | Description |
| :--------- | :---- | :------- | :---------- |
| settings | model | ❌ | |
| recipients | array | ❌ | |
# RecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :----------------- |
| Signer | string | | SIGNER |
| ReceivesCopy | string | | RECEIVES\_COPY |
| InPersonSigner | string | | IN\_PERSON\_SIGNER |
# Annotation
**Properties**
| Name | Type | Required | Description |
| :---------- | :------ | :------- | :---------------------------------------------------------------------------------------------- |
| id | string | ❌ | Unique identifier of the annotation |
| recipientId | string | ❌ | ID of the recipient |
| documentId | string | ❌ | ID of the document |
| page | integer | ❌ | Page number where the annotation is placed |
| x | number | ❌ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | number | ❌ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | number | ❌ | Width of the annotation (in % of the page width from 0 to 100) |
| height | number | ❌ | Height of the annotation (in % of the page height from 0 to 100) |
| required | boolean | ❌ | Whether the annotation is required |
| type | model | ❌ | Type of the annotation |
| signature | model | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | model | ❌ | Initials annotation (null if annotation is not initials) |
| text | model | ❌ | Text annotation (null if annotation is not a text) |
| datetime | model | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | model | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# DynamicField
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :------------------------- |
| name | string | ❌ | Name of the dynamic field |
| value | string | ❌ | Value of the dynamic field |
# AnnotationDateTimeFormat
Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces)
**Properties**
| Name | Type | Required | Description |
| :------------------ | :----- | :------- | :------------------------ |
| DmyNumericSlash | string | | DMY\_NUMERIC\_SLASH |
| MdyNumericSlash | string | | MDY\_NUMERIC\_SLASH |
| YmdNumericSlash | string | | YMD\_NUMERIC\_SLASH |
| DmyNumericDashShort | string | | DMY\_NUMERIC\_DASH\_SHORT |
| DmyNumericDash | string | | DMY\_NUMERIC\_DASH |
| YmdNumericDash | string | | YMD\_NUMERIC\_DASH |
| MdyTextDashShort | string | | MDY\_TEXT\_DASH\_SHORT |
| MdyTextSpaceShort | string | | MDY\_TEXT\_SPACE\_SHORT |
| MdyTextSpace | string | | MDY\_TEXT\_SPACE |
# EnvelopeFlowType
Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :----------------- |
| RequestSignature | string | | REQUEST\_SIGNATURE |
| SignMyself | string | | SIGN\_MYSELF |
# EnvelopeLegalityLevel
Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes)
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| Ses | string | | SES |
| QesEidas | string | | QES\_EIDAS |
| QesZertes | string | | QES\_ZERTES |
# TemplateRecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :----------------- |
| Signer | string | | SIGNER |
| ReceivesCopy | string | | RECEIVES\_COPY |
| InPersonSigner | string | | IN\_PERSON\_SIGNER |
| Sender | string | | SENDER |
# AttachmentPlaceholderRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :------ | :------- | :--------------------------------------------- |
| recipientId | string | ✅ | ID of the recipient |
| name | string | ✅ | |
| required | boolean | ✅ | Whether the attachment placeholder is required |
| multiple | boolean | ✅ | |
| id | string | ❌ | ID of the attachment placeholder |
| hint | string | ❌ | Hint of the attachment placeholder |
# SetEnvelopeDynamicFieldsRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :---- | :------- | :--------------------- |
| dynamicFields | array | ✅ | List of dynamic fields |
# Page
**Properties**
| Name | Type | Required | Description |
| :----- | :------ | :------- | :--------------------------- |
| width | integer | ❌ | Width of the page in pixels |
| height | integer | ❌ | Height of the page in pixels |
# TemplateSigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :---- | :------- | :----------------- |
| recipients | array | ❌ | List of recipients |
# AttachmentPlaceholdersPerRecipient
**Properties**
| Name | Type | Required | Description |
| :------------ | :----- | :------- | :-------------------- |
| recipientId | string | ❌ | ID of the recipient |
| recipientName | string | ❌ | Name of the recipient |
| placeholders | array | ❌ | |
# ListEnvelopesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------ | :------- | :------------------------------- |
| hasNextPage | boolean | ❌ | Whether there is a next page |
| hasPreviousPage | boolean | ❌ | Whether there is a previous page |
| envelopes | array | ❌ | |
# Recipient
**Properties**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | string | ✅ | Name of the recipient |
| email | string | ✅ | Email of the recipient |
| role | model | ✅ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
| id | string | ❌ | Unique identifier of the recipient |
| uid | string | ❌ | Unique identifier of the user associated with the recipient |
| verification | model | ❌ | |
# WebhookEvent
Event of the webhook
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :--------------------- |
| EnvelopeExpired | string | | ENVELOPE\_EXPIRED |
| EnvelopeDeclined | string | | ENVELOPE\_DECLINED |
| EnvelopeVoided | string | | ENVELOPE\_VOIDED |
| EnvelopeCompleted | string | | ENVELOPE\_COMPLETED |
| EnvelopeAuditTrail | string | | ENVELOPE\_AUDIT\_TRAIL |
# CreateWebhookRequest
**Properties**
| Name | Type | Required | Description |
| :----- | :----- | :------- | :------------------------ |
| event | model | ✅ | Event of the webhook |
| target | string | ✅ | URL of the webhook target |
# CreateEnvelopeFromTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :------ | :------- | :---------------------------------------------- |
| name | string | ✅ | Name of the envelope |
| comment | string | ❌ | Comment for the envelope |
| sandbox | boolean | ❌ | Whether the envelope is created in sandbox mode |
# ListTemplateAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---- | :------- | :---------- |
| annotations | array | ❌ | |
# RenameEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| name | string | ❌ | Name of the envelope |
# ListTemplateDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---- | :------- | :---------- |
| annotations | array | ❌ | |
# ListEnvelopeDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :---- | :------- | :---------- |
| documents | array | ❌ | |
# ListWebhooksResponse
**Properties**
| Name | Type | Required | Description |
| :------- | :---- | :------- | :---------- |
| webhooks | array | ❌ | |
# AnnotationSignature
Signature annotation (null if annotation is not a signature)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :-------------------------------------------- |
| id | string | ❌ | Unique identifier of the annotation signature |
# Install
Source: https://apidoc.sign.plus/backend-sdks/python/install
To install the signplus-python package using pip, you can use the following command:
```bash theme={null}
pip install signplus-python
```
After installing the package, you can call your first SDK method:
```python theme={null}
from signplus import Signplus, Environment
from signplus.models import CreateEnvelopeRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = CreateEnvelopeRequest(
name="name",
flow_type="REQUEST_SIGNATURE",
legality_level="SES",
expires_at=1822567389015,
comment="comment",
sandbox=True
)
result = sdk.signplus.create_envelope(request_body=request_body)
print(result)
```
# Sdk reference
Source: https://apidoc.sign.plus/backend-sdks/python/sdk-reference
A list of all methods in the `SignplusService` service. Click on the method name to view detailed information about that method.
| Methods | Description |
| :--------------------------------------------------------------------------------- | :-------------------------------------------------------------- |
| [create\_envelope](#create_envelope) | Create new envelope |
| [create\_envelope\_from\_template](#create_envelope_from_template) | Create new envelope from template |
| [list\_envelopes](#list_envelopes) | List envelopes |
| [get\_envelope](#get_envelope) | Get envelope |
| [delete\_envelope](#delete_envelope) | Delete envelope |
| [download\_envelope\_signed\_documents](#download_envelope_signed_documents) | Download signed documents for an envelope |
| [download\_envelope\_certificate](#download_envelope_certificate) | Download certificate of completion for an envelope |
| [get\_envelope\_document](#get_envelope_document) | Get envelope document |
| [get\_envelope\_documents](#get_envelope_documents) | Get envelope documents |
| [add\_envelope\_document](#add_envelope_document) | Add envelope document |
| [set\_envelope\_dynamic\_fields](#set_envelope_dynamic_fields) | Set envelope dynamic fields |
| [add\_envelope\_signing\_steps](#add_envelope_signing_steps) | Add envelope signing steps |
| [set\_envelope\_attachments\_settings](#set_envelope_attachments_settings) | Set envelope attachment settings |
| [set\_envelope\_attachments\_placeholders](#set_envelope_attachments_placeholders) | Placeholders to be set, completely replacing the existing ones. |
| [get\_attachment\_file](#get_attachment_file) | Get envelope attachment file |
| [send\_envelope](#send_envelope) | Send envelope for signature |
| [duplicate\_envelope](#duplicate_envelope) | Duplicate envelope |
| [void\_envelope](#void_envelope) | Void envelope |
| [rename\_envelope](#rename_envelope) | Rename envelope |
| [set\_envelope\_comment](#set_envelope_comment) | Set envelope comment |
| [set\_envelope\_notification](#set_envelope_notification) | Set envelope notification |
| [set\_envelope\_expiration\_date](#set_envelope_expiration_date) | Set envelope expiration date |
| [set\_envelope\_legality\_level](#set_envelope_legality_level) | Set envelope legality level |
| [get\_envelope\_annotations](#get_envelope_annotations) | Get envelope annotations |
| [get\_envelope\_document\_annotations](#get_envelope_document_annotations) | Get envelope document annotations |
| [add\_envelope\_annotation](#add_envelope_annotation) | Add envelope annotation |
| [delete\_envelope\_annotation](#delete_envelope_annotation) | Delete envelope annotation |
| [create\_template](#create_template) | Create new template |
| [list\_templates](#list_templates) | List templates |
| [get\_template](#get_template) | Get template |
| [delete\_template](#delete_template) | Delete template |
| [duplicate\_template](#duplicate_template) | Duplicate template |
| [add\_template\_document](#add_template_document) | Add template document |
| [get\_template\_document](#get_template_document) | Get template document |
| [get\_template\_documents](#get_template_documents) | Get template documents |
| [add\_template\_signing\_steps](#add_template_signing_steps) | Add template signing steps |
| [rename\_template](#rename_template) | Rename template |
| [set\_template\_comment](#set_template_comment) | Set template comment |
| [set\_template\_notification](#set_template_notification) | Set template notification |
| [get\_template\_annotations](#get_template_annotations) | Get template annotations |
| [get\_document\_template\_annotations](#get_document_template_annotations) | Get document template annotations |
| [add\_template\_annotation](#add_template_annotation) | Add template annotation |
| [delete\_template\_annotation](#delete_template_annotation) | Delete template annotation |
| [set\_template\_attachments\_settings](#set_template_attachments_settings) | Set template attachment settings |
| [set\_template\_attachments\_placeholders](#set_template_attachments_placeholders) | Placeholders to be set, completely replacing the existing ones. |
| [create\_webhook](#create_webhook) | Create webhook |
| [list\_webhooks](#list_webhooks) | List webhooks |
| [delete\_webhook](#delete_webhook) | Delete webhook |
## create\_envelope
Create new envelope
* HTTP Method: `POST`
* Endpoint: `/envelope`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [CreateEnvelopeRequest](/api-reference/endpoints/signplus/create-new-envelope) | ✅ | The request body. |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import CreateEnvelopeRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = CreateEnvelopeRequest(
name="name",
legality_level="SES",
expires_at=8,
comment="comment",
sandbox=False
)
result = sdk.signplus.create_envelope(request_body=request_body)
print(result)
```
## create\_envelope\_from\_template
Create new envelope from template
* HTTP Method: `POST`
* Endpoint: `/envelope/from_template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [CreateEnvelopeFromTemplateRequest](/api-reference/endpoints/signplus/create-new-envelope-from-template) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import CreateEnvelopeFromTemplateRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = CreateEnvelopeFromTemplateRequest(
name="name",
comment="comment",
sandbox=True
)
result = sdk.signplus.create_envelope_from_template(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## list\_envelopes
List envelopes
* HTTP Method: `POST`
* Endpoint: `/envelopes`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [ListEnvelopesRequest](/api-reference/endpoints/signplus/list-envelopes) | ❌ | The request body. |
**Return Type**
`ListEnvelopesResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import ListEnvelopesRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = ListEnvelopesRequest(
name="name",
tags=[
"tags"
],
comment="comment",
ids=[
"ids"
],
statuses=[
"DRAFT"
],
folder_ids=[
"folder_ids"
],
only_root_folder=True,
date_from=5,
date_to=9,
uid="uid",
first=9,
last=7,
after="after",
before="before",
order_field="CREATION_DATE",
ascending=True,
include_trash=True
)
result = sdk.signplus.list_envelopes(request_body=request_body)
print(result)
```
## get\_envelope
Get envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_envelope(envelope_id="envelope_id")
print(result)
```
## delete\_envelope
Delete envelope
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.delete_envelope(envelope_id="envelope_id")
print(result)
```
## download\_envelope\_signed\_documents
Download signed documents for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/signed_documents`
**Parameters**
| Name | Type | Required | Description |
| :-------------------------- | :--- | :------- | :---------------------------------------------------------------------- |
| envelope\_id | str | ✅ | ID of the envelope |
| certificate\_of\_completion | bool | ❌ | Whether to include the certificate of completion in the downloaded file |
**Return Type**
`any`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.download_envelope_signed_documents(
envelope_id="envelope_id",
certificate_of_completion=True
)
print(result)
```
## download\_envelope\_certificate
Download certificate of completion for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/certificate`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :----------------- |
| envelope\_id | str | ✅ | ID of the envelope |
**Return Type**
`any`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.download_envelope_certificate(envelope_id="envelope_id")
print(result)
```
## get\_envelope\_document
Get envelope document
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
| document\_id | str | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_envelope_document(
envelope_id="envelope_id",
document_id="document_id"
)
print(result)
```
## get\_envelope\_documents
Get envelope documents
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
**Return Type**
`ListEnvelopeDocumentsResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_envelope_documents(envelope_id="envelope_id")
print(result)
```
## add\_envelope\_document
Add envelope document
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------------------ | :------- | :---------------- |
| request\_body | [AddEnvelopeDocumentRequest](/api-reference/endpoints/signplus/add-envelope-document) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import AddEnvelopeDocumentRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = AddEnvelopeDocumentRequest(
file="file"
)
result = sdk.signplus.add_envelope_document(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_dynamic\_fields
Set envelope dynamic fields
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/dynamic_fields`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetEnvelopeDynamicFieldsRequest](/api-reference/endpoints/signplus/set-envelope-dynamic-fields) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeDynamicFieldsRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeDynamicFieldsRequest(
dynamic_fields=[
{
"name": "name",
"value": "value"
}
]
)
result = sdk.signplus.set_envelope_dynamic_fields(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## add\_envelope\_signing\_steps
Add envelope signing steps
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :--------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [AddEnvelopeSigningStepsRequest](/api-reference/endpoints/signplus/add-envelope-signing-steps) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import AddEnvelopeSigningStepsRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = AddEnvelopeSigningStepsRequest(
signing_steps=[
{
"recipients": [
{
"id_": "id",
"uid": "uid",
"name": "name",
"email": "email",
"role": "SIGNER",
"verification": {
"type_": "SMS",
"value": "value"
}
}
]
}
]
)
result = sdk.signplus.add_envelope_signing_steps(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_attachments\_settings
Set envelope attachment settings
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :---------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetEnvelopeAttachmentsSettingsRequest](/api-reference/endpoints/signplus/set-envelope-attachment-settings) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeAttachmentsSettingsRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeAttachmentsSettingsRequest(
settings={
"visible_to_recipients": False
}
)
result = sdk.signplus.set_envelope_attachments_settings(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_attachments\_placeholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------------------------------------------------ | :------- | :---------------- |
| request\_body | [SetEnvelopeAttachmentsPlaceholdersRequest](/api-reference/endpoints/signplus/set-envelope-attachment-placeholders) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeAttachmentsPlaceholdersRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeAttachmentsPlaceholdersRequest(
placeholders=[
{
"recipient_id": "recipient_id",
"id_": "id",
"name": "name",
"hint": "hint",
"required": False,
"multiple": True
}
]
)
result = sdk.signplus.set_envelope_attachments_placeholders(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## get\_attachment\_file
Get envelope attachment file
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/attachments/{file_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
| file\_id | str | ✅ | |
**Return Type**
`bytes`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_attachment_file(
envelope_id="envelope_id",
file_id="file_id"
)
with open("output-file.ext", "wb") as f:
f.write(result)
```
## send\_envelope
Send envelope for signature
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/send`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.send_envelope(envelope_id="envelope_id")
print(result)
```
## duplicate\_envelope
Duplicate envelope
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.duplicate_envelope(envelope_id="envelope_id")
print(result)
```
## void\_envelope
Void envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/void`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.void_envelope(envelope_id="envelope_id")
print(result)
```
## rename\_envelope
Rename envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [RenameEnvelopeRequest](/api-reference/endpoints/signplus/rename-envelope) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import RenameEnvelopeRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = RenameEnvelopeRequest(
name="name"
)
result = sdk.signplus.rename_envelope(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_comment
Set envelope comment
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetEnvelopeCommentRequest](/api-reference/endpoints/signplus/set-envelope-comment) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeCommentRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeCommentRequest(
comment="comment"
)
result = sdk.signplus.set_envelope_comment(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_notification
Set envelope notification
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [EnvelopeNotification](/api-reference/endpoints/signplus/set-envelope-notification) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import EnvelopeNotification
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = EnvelopeNotification(
subject="subject",
message="message",
reminder_interval=1
)
result = sdk.signplus.set_envelope_notification(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_expiration\_date
Set envelope expiration date
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_expiration_date`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :--------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetEnvelopeExpirationRequest](/api-reference/endpoints/signplus/set-envelope-expiration-date) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeExpirationRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeExpirationRequest(
expires_at=0
)
result = sdk.signplus.set_envelope_expiration_date(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## set\_envelope\_legality\_level
Set envelope legality level
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_legality_level`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetEnvelopeLegalityLevelRequest](/api-reference/endpoints/signplus/set-envelope-legality-level) | ✅ | The request body. |
| envelope\_id | str | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeLegalityLevelRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeLegalityLevelRequest(
legality_level="SES"
)
result = sdk.signplus.set_envelope_legality_level(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## get\_envelope\_annotations
Get envelope annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :----------------- |
| envelope\_id | str | ✅ | ID of the envelope |
**Return Type**
`List[Annotation]`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_envelope_annotations(envelope_id="envelope_id")
print(result)
```
## get\_envelope\_document\_annotations
Get envelope document annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :----------------- |
| envelope\_id | str | ✅ | ID of the envelope |
| document\_id | str | ✅ | ID of document |
**Return Type**
`ListEnvelopeDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_envelope_document_annotations(
envelope_id="envelope_id",
document_id="document_id"
)
print(result)
```
## add\_envelope\_annotation
Add envelope annotation
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :-------------------------------------------------------------------------------- | :------- | :----------------- |
| request\_body | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | The request body. |
| envelope\_id | str | ✅ | ID of the envelope |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import AddAnnotationRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = AddAnnotationRequest(
recipient_id="recipient_id",
document_id="document_id",
page=2,
x=1.99,
y=8.2,
width=4.89,
height=9.43,
required=False,
type_="TEXT",
signature={
"id_": "id"
},
initials={
"id_": "id"
},
text={
"size": 5.96,
"color": 8.73,
"value": "value",
"tooltip": "tooltip",
"dynamic_field_name": "dynamic_field_name",
"font": {
"family": "UNKNOWN",
"italic": True,
"bold": True
}
},
datetime_={
"size": 0.26,
"font": {
"family": "UNKNOWN",
"italic": True,
"bold": True
},
"color": "color",
"auto_fill": True,
"timezone": "timezone",
"timestamp": 1,
"format": "DMY_NUMERIC_SLASH"
},
checkbox={
"checked": True,
"style": "CIRCLE_CHECK"
}
)
result = sdk.signplus.add_envelope_annotation(
request_body=request_body,
envelope_id="envelope_id"
)
print(result)
```
## delete\_envelope\_annotation
Delete envelope annotation
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :------------- | :--- | :------- | :----------------------------- |
| envelope\_id | str | ✅ | ID of the envelope |
| annotation\_id | str | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.delete_envelope_annotation(
envelope_id="envelope_id",
annotation_id="annotation_id"
)
print(result)
```
## create\_template
Create new template
* HTTP Method: `POST`
* Endpoint: `/template`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [CreateTemplateRequest](/api-reference/endpoints/signplus/create-new-template) | ✅ | The request body. |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import CreateTemplateRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = CreateTemplateRequest(
name="name"
)
result = sdk.signplus.create_template(request_body=request_body)
print(result)
```
## list\_templates
List templates
* HTTP Method: `POST`
* Endpoint: `/templates`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [ListTemplatesRequest](/api-reference/endpoints/signplus/list-templates) | ❌ | The request body. |
**Return Type**
`ListTemplatesResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import ListTemplatesRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = ListTemplatesRequest(
name="name",
tags=[
"tags"
],
ids=[
"ids"
],
first=1,
last=6,
after="after",
before="before",
order_field="TEMPLATE_ID",
ascending=False
)
result = sdk.signplus.list_templates(request_body=request_body)
print(result)
```
## get\_template
Get template
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| template\_id | str | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_template(template_id="template_id")
print(result)
```
## delete\_template
Delete template
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| template\_id | str | ✅ | |
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.delete_template(template_id="template_id")
print(result)
```
## duplicate\_template
Duplicate template
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| template\_id | str | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.duplicate_template(template_id="template_id")
print(result)
```
## add\_template\_document
Add template document
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------------------ | :------- | :---------------- |
| request\_body | [AddTemplateDocumentRequest](/api-reference/endpoints/signplus/add-template-document) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import AddTemplateDocumentRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = AddTemplateDocumentRequest(
file="file"
)
result = sdk.signplus.add_template_document(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## get\_template\_document
Get template document
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| template\_id | str | ✅ | |
| document\_id | str | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_template_document(
template_id="template_id",
document_id="document_id"
)
print(result)
```
## get\_template\_documents
Get template documents
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :---------- |
| template\_id | str | ✅ | |
**Return Type**
`ListTemplateDocumentsResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_template_documents(template_id="template_id")
print(result)
```
## add\_template\_signing\_steps
Add template signing steps
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :--------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [AddTemplateSigningStepsRequest](/api-reference/endpoints/signplus/add-template-signing-steps) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import AddTemplateSigningStepsRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = AddTemplateSigningStepsRequest(
signing_steps=[
{
"recipients": [
{
"id_": "id",
"uid": "uid",
"name": "name",
"email": "email",
"role": "SIGNER"
}
]
}
]
)
result = sdk.signplus.add_template_signing_steps(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## rename\_template
Rename template
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [RenameTemplateRequest](/api-reference/endpoints/signplus/rename-template) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import RenameTemplateRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = RenameTemplateRequest(
name="name"
)
result = sdk.signplus.rename_template(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## set\_template\_comment
Set template comment
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetTemplateCommentRequest](/api-reference/endpoints/signplus/set-template-comment) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetTemplateCommentRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetTemplateCommentRequest(
comment="comment"
)
result = sdk.signplus.set_template_comment(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## set\_template\_notification
Set template notification
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [EnvelopeNotification](/api-reference/endpoints/signplus/set-envelope-notification) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import EnvelopeNotification
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = EnvelopeNotification(
subject="subject",
message="message",
reminder_interval=1
)
result = sdk.signplus.set_template_notification(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## get\_template\_annotations
Get template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :----------------- |
| template\_id | str | ✅ | ID of the template |
**Return Type**
`ListTemplateAnnotationsResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_template_annotations(template_id="template_id")
print(result)
```
## get\_document\_template\_annotations
Get document template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :--- | :------- | :----------------- |
| template\_id | str | ✅ | ID of the template |
| document\_id | str | ✅ | ID of document |
**Return Type**
`ListTemplateDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.get_document_template_annotations(
template_id="template_id",
document_id="document_id"
)
print(result)
```
## add\_template\_annotation
Add template annotation
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :-------------------------------------------------------------------------------- | :------- | :----------------- |
| request\_body | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | The request body. |
| template\_id | str | ✅ | ID of the template |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import AddAnnotationRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = AddAnnotationRequest(
recipient_id="recipient_id",
document_id="document_id",
page=2,
x=1.99,
y=8.2,
width=4.89,
height=9.43,
required=False,
type_="TEXT",
signature={
"id_": "id"
},
initials={
"id_": "id"
},
text={
"size": 5.96,
"color": 8.73,
"value": "value",
"tooltip": "tooltip",
"dynamic_field_name": "dynamic_field_name",
"font": {
"family": "UNKNOWN",
"italic": True,
"bold": True
}
},
datetime_={
"size": 0.26,
"font": {
"family": "UNKNOWN",
"italic": True,
"bold": True
},
"color": "color",
"auto_fill": True,
"timezone": "timezone",
"timestamp": 1,
"format": "DMY_NUMERIC_SLASH"
},
checkbox={
"checked": True,
"style": "CIRCLE_CHECK"
}
)
result = sdk.signplus.add_template_annotation(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## delete\_template\_annotation
Delete template annotation
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :------------- | :--- | :------- | :----------------------------- |
| template\_id | str | ✅ | ID of the template |
| annotation\_id | str | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.delete_template_annotation(
template_id="template_id",
annotation_id="annotation_id"
)
print(result)
```
## set\_template\_attachments\_settings
Set template attachment settings
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :---------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [SetEnvelopeAttachmentsSettingsRequest](/api-reference/endpoints/signplus/set-envelope-attachment-settings) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeAttachmentsSettingsRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeAttachmentsSettingsRequest(
settings={
"visible_to_recipients": False
}
)
result = sdk.signplus.set_template_attachments_settings(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## set\_template\_attachments\_placeholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :------------------------------------------------------------------------------------------------------------------ | :------- | :---------------- |
| request\_body | [SetEnvelopeAttachmentsPlaceholdersRequest](/api-reference/endpoints/signplus/set-envelope-attachment-placeholders) | ✅ | The request body. |
| template\_id | str | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import SetEnvelopeAttachmentsPlaceholdersRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = SetEnvelopeAttachmentsPlaceholdersRequest(
placeholders=[
{
"recipient_id": "recipient_id",
"id_": "id",
"name": "name",
"hint": "hint",
"required": False,
"multiple": True
}
]
)
result = sdk.signplus.set_template_attachments_placeholders(
request_body=request_body,
template_id="template_id"
)
print(result)
```
## create\_webhook
Create webhook
* HTTP Method: `POST`
* Endpoint: `/webhook`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :----------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [CreateWebhookRequest](/api-reference/endpoints/signplus/create-webhook) | ✅ | The request body. |
**Return Type**
`Webhook`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import CreateWebhookRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = CreateWebhookRequest(
event="ENVELOPE_EXPIRED",
target="target"
)
result = sdk.signplus.create_webhook(request_body=request_body)
print(result)
```
## list\_webhooks
List webhooks
* HTTP Method: `POST`
* Endpoint: `/webhooks`
**Parameters**
| Name | Type | Required | Description |
| :------------ | :--------------------------------------------------------------------- | :------- | :---------------- |
| request\_body | [ListWebhooksRequest](/api-reference/endpoints/signplus/list-webhooks) | ❌ | The request body. |
**Return Type**
`ListWebhooksResponse`
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
from signplus.models import ListWebhooksRequest
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
request_body = ListWebhooksRequest(
webhook_id="webhook_id",
event="ENVELOPE_EXPIRED"
)
result = sdk.signplus.list_webhooks(request_body=request_body)
print(result)
```
## delete\_webhook
Delete webhook
* HTTP Method: `DELETE`
* Endpoint: `/webhook/{webhook_id}`
**Parameters**
| Name | Type | Required | Description |
| :---------- | :--- | :------- | :---------- |
| webhook\_id | str | ✅ | |
**Example Usage Code Snippet**
```python theme={null}
from signplus import Signplus
sdk = Signplus(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.signplus.delete_webhook(webhook_id="webhook_id")
print(result)
```
# Models
# SetEnvelopeAttachmentsPlaceholdersRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :---------------------------------- | :------- | :---------- |
| placeholders | List\[AttachmentPlaceholderRequest] | ✅ | |
# Document
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------- | :------- | :-------------------------------- |
| id\_ | str | ❌ | Unique identifier of the document |
| name | str | ❌ | Name of the document |
| filename | str | ❌ | Filename of the document |
| page\_count | int | ❌ | Number of pages in the document |
| pages | List\[Page] | ❌ | List of pages in the document |
# CreateEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :-------------- | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name | str | ✅ | Name of the envelope |
| legality\_level | EnvelopeLegalityLevel | ✅ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| expires\_at | int | ❌ | Unix timestamp of the expiration date |
| comment | str | ❌ | Comment for the envelope |
| sandbox | bool | ❌ | Whether the envelope is created in sandbox mode |
# ListEnvelopesRequest
**Properties**
| Name | Type | Required | Description |
| :----------------- | :-------------------- | :------- | :------------------------------------------------ |
| name | str | ❌ | Name of the envelope |
| tags | List\[str] | ❌ | List of tags |
| comment | str | ❌ | Comment of the envelope |
| ids | List\[str] | ❌ | List of envelope IDs |
| statuses | List\[EnvelopeStatus] | ❌ | List of envelope statuses |
| folder\_ids | List\[str] | ❌ | List of folder IDs |
| only\_root\_folder | bool | ❌ | Whether to only list envelopes in the root folder |
| date\_from | int | ❌ | Unix timestamp of the start date |
| date\_to | int | ❌ | Unix timestamp of the end date |
| uid | str | ❌ | Unique identifier of the user |
| first | int | ❌ | |
| last | int | ❌ | |
| after | str | ❌ | |
| before | str | ❌ | |
| order\_field | EnvelopeOrderField | ❌ | Field to order envelopes by |
| ascending | bool | ❌ | Whether to order envelopes in ascending order |
| include\_trash | bool | ❌ | Whether to include envelopes in the trash |
# AttachmentPlaceholder
**Properties**
| Name | Type | Required | Description |
| :------------ | :------------------------------- | :------- | :--------------------------------------------------------- |
| recipient\_id | str | ❌ | ID of the recipient |
| id\_ | str | ❌ | ID of the attachment placeholder |
| name | str | ❌ | Name of the attachment placeholder |
| hint | str | ❌ | Hint of the attachment placeholder |
| required | bool | ❌ | Whether the attachment placeholder is required |
| multiple | bool | ❌ | Whether the attachment placeholder can have multiple files |
| files | List\[AttachmentPlaceholderFile] | ❌ | |
# SetEnvelopeAttachmentsSettingsRequest
**Properties**
| Name | Type | Required | Description |
| :------- | :----------------- | :------- | :---------- |
| settings | AttachmentSettings | ✅ | |
# EnvelopeNotification
**Properties**
| Name | Type | Required | Description |
| :----------------- | :--- | :------- | :-------------------------------- |
| subject | str | ❌ | Subject of the notification |
| message | str | ❌ | Message of the notification |
| reminder\_interval | int | ❌ | Interval in days to send reminder |
# ListTemplatesRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :----------------- | :------- | :-------------------------------------------- |
| name | str | ❌ | Name of the template |
| tags | List\[str] | ❌ | List of tag templates |
| ids | List\[str] | ❌ | List of templates IDs |
| first | int | ❌ | |
| last | int | ❌ | |
| after | str | ❌ | |
| before | str | ❌ | |
| order\_field | TemplateOrderField | ❌ | Field to order templates by |
| ascending | bool | ❌ | Whether to order templates in ascending order |
# SetTemplateCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :--- | :------- | :----------------------- |
| comment | str | ✅ | Comment for the template |
# Template
**Properties**
| Name | Type | Required | Description |
| :---------------- | :------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id\_ | str | ❌ | Unique identifier of the template |
| name | str | ❌ | Name of the template |
| comment | str | ❌ | Comment for the template |
| pages | int | ❌ | Total number of pages in the template |
| legality\_level | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| created\_at | int | ❌ | Unix timestamp of the creation date |
| updated\_at | int | ❌ | Unix timestamp of the last modification date |
| expiration\_delay | int | ❌ | Expiration delay added to the current time when an envelope is created from this template |
| num\_recipients | int | ❌ | Number of recipients in the envelope |
| signing\_steps | List\[TemplateSigningStep] | ❌ | |
| documents | List\[Document] | ❌ | |
| notification | EnvelopeNotification | ❌ | |
| dynamic\_fields | List\[str] | ❌ | List of dynamic fields |
| attachments | EnvelopeAttachments | ❌ | |
# RecipientVerificationType
Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check.
**Properties**
| Name | Type | Required | Description |
| :------------- | :--- | :------- | :----------------- |
| SMS | str | ✅ | "SMS" |
| PASSCODE | str | ✅ | "PASSCODE" |
| IDVERIFICATION | str | ✅ | "ID\_VERIFICATION" |
# AddEnvelopeSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :----------------- | :------- | :-------------------- |
| signing\_steps | List\[SigningStep] | ❌ | List of signing steps |
# AnnotationFontFamily
Font family of the text
**Properties**
| Name | Type | Required | Description |
| :------ | :--- | :------- | :---------- |
| UNKNOWN | str | ✅ | "UNKNOWN" |
| SERIF | str | ✅ | "SERIF" |
| SANS | str | ✅ | "SANS" |
| MONO | str | ✅ | "MONO" |
# AddTemplateSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :------------------------- | :------- | :-------------------- |
| signing\_steps | List\[TemplateSigningStep] | ✅ | List of signing steps |
# SetEnvelopeCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :--- | :------- | :----------------------- |
| comment | str | ✅ | Comment for the envelope |
# TemplateOrderField
Field to order templates by
**Properties**
| Name | Type | Required | Description |
| :----------------------- | :--- | :------- | :----------------------------- |
| TEMPLATEID | str | ✅ | "TEMPLATE\_ID" |
| TEMPLATECREATIONDATE | str | ✅ | "TEMPLATE\_CREATION\_DATE" |
| TEMPLATEMODIFICATIONDATE | str | ✅ | "TEMPLATE\_MODIFICATION\_DATE" |
| TEMPLATENAME | str | ✅ | "TEMPLATE\_NAME" |
# EnvelopeOrderField
Field to order envelopes by
**Properties**
| Name | Type | Required | Description |
| :----------------- | :--- | :------- | :----------------------- |
| CREATIONDATE | str | ✅ | "CREATION\_DATE" |
| MODIFICATIONDATE | str | ✅ | "MODIFICATION\_DATE" |
| NAME | str | ✅ | "NAME" |
| STATUS | str | ✅ | "STATUS" |
| LASTDOCUMENTCHANGE | str | ✅ | "LAST\_DOCUMENT\_CHANGE" |
# AddEnvelopeDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :---- | :------- | :------------------------------ |
| file | bytes | ❌ | File to upload in binary format |
# ListWebhooksRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :----------- | :------- | :------------------- |
| webhook\_id | str | ❌ | ID of the webhook |
| event | WebhookEvent | ❌ | Event of the webhook |
# SetEnvelopeLegalityLevelRequest
**Properties**
| Name | Type | Required | Description |
| :-------------- | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| legality\_level | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
# AttachmentPlaceholderFile
**Properties**
| Name | Type | Required | Description |
| :------- | :--- | :------- | :------------------------ |
| id\_ | str | ❌ | ID of the file |
| name | str | ❌ | Name of the file |
| size | int | ❌ | Size of the file in bytes |
| mimetype | str | ❌ | MIME type of the file |
# SetEnvelopeExpirationRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :--- | :------- | :------------------------------------ |
| expires\_at | int | ✅ | Unix timestamp of the expiration date |
# AnnotationText
Text annotation (null if annotation is not a text)
**Properties**
| Name | Type | Required | Description |
| :------------------- | :------------- | :------- | :--------------------------------- |
| size | float | ❌ | Font size of the text in pt |
| color | float | ❌ | Text color in 32bit representation |
| value | str | ❌ | Text content of the annotation |
| tooltip | str | ❌ | Tooltip of the annotation |
| dynamic\_field\_name | str | ❌ | Name of the dynamic field |
| font | AnnotationFont | ❌ | |
# AnnotationCheckbox
Checkbox annotation (null if annotation is not a checkbox)
**Properties**
| Name | Type | Required | Description |
| :------ | :---------------------- | :------- | :------------------------------ |
| checked | bool | ❌ | Whether the checkbox is checked |
| style | AnnotationCheckboxStyle | ❌ | Style of the checkbox |
# Envelope
**Properties**
| Name | Type | Required | Description |
| :-------------- | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id\_ | str | ❌ | Unique identifier of the envelope |
| name | str | ❌ | Name of the envelope |
| comment | str | ❌ | Comment for the envelope |
| pages | int | ❌ | Total number of pages in the envelope |
| flow\_type | EnvelopeFlowType | ❌ | Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow) |
| legality\_level | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| status | EnvelopeStatus | ❌ | Status of the envelope |
| created\_at | int | ❌ | Unix timestamp of the creation date |
| updated\_at | int | ❌ | Unix timestamp of the last modification date |
| expires\_at | int | ❌ | Unix timestamp of the expiration date |
| num\_recipients | int | ❌ | Number of recipients in the envelope |
| is\_duplicable | bool | ❌ | Whether the envelope can be duplicated |
| signing\_steps | List\[SigningStep] | ❌ | |
| documents | List\[Document] | ❌ | |
| notification | EnvelopeNotification | ❌ | |
| attachments | EnvelopeAttachments | ❌ | |
# AddTemplateDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :---- | :------- | :------------------------------ |
| file | bytes | ✅ | File to upload in binary format |
# TemplateRecipient
**Properties**
| Name | Type | Required | Description |
| :---- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id\_ | str | ❌ | Unique identifier of the recipient |
| uid | str | ❌ | Unique identifier of the user associated with the recipient |
| name | str | ❌ | Name of the recipient |
| email | str | ❌ | Email of the recipient |
| role | TemplateRecipientRole | ❌ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
# AddAnnotationRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| document\_id | str | ✅ | ID of the document |
| page | int | ✅ | Page number where the annotation is placed |
| x | float | ✅ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | float | ✅ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | float | ✅ | Width of the annotation (in % of the page width from 0 to 100) |
| height | float | ✅ | Height of the annotation (in % of the page height from 0 to 100) |
| type\_ | AnnotationType | ✅ | Type of the annotation |
| recipient\_id | str | ❌ | ID of the recipient |
| required | bool | ❌ | |
| signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| datetime\_ | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# ListEnvelopeDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------------- | :------- | :---------- |
| annotations | List\[Annotation] | ❌ | |
# EnvelopeStatus
Status of the envelope
**Properties**
| Name | Type | Required | Description |
| :--------- | :--- | :------- | :------------- |
| DRAFT | str | ✅ | "DRAFT" |
| INPROGRESS | str | ✅ | "IN\_PROGRESS" |
| COMPLETED | str | ✅ | "COMPLETED" |
| EXPIRED | str | ✅ | "EXPIRED" |
| DECLINED | str | ✅ | "DECLINED" |
| VOIDED | str | ✅ | "VOIDED" |
| PENDING | str | ✅ | "PENDING" |
# RecipientVerification
**Properties**
| Name | Type | Required | Description |
| :----- | :------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type\_ | RecipientVerificationType | ❌ | Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check. |
| value | str | ❌ | Required for `PASSCODE` and `SMS` verification. - `PASSCODE`: code required by the recipient to sign the document. - `SMS`: recipient's phone number. - `ID_VERIFICATION`: leave empty. |
# AnnotationCheckboxStyle
Style of the checkbox
**Properties**
| Name | Type | Required | Description |
| :---------- | :--- | :------- | :-------------- |
| CIRCLECHECK | str | ✅ | "CIRCLE\_CHECK" |
| CIRCLEFULL | str | ✅ | "CIRCLE\_FULL" |
| SQUARECHECK | str | ✅ | "SQUARE\_CHECK" |
| SQUAREFULL | str | ✅ | "SQUARE\_FULL" |
| CHECKMARK | str | ✅ | "CHECK\_MARK" |
| TIMESSQUARE | str | ✅ | "TIMES\_SQUARE" |
# SigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :--------------- | :------- | :----------------- |
| recipients | List\[Recipient] | ❌ | List of recipients |
# AnnotationDateTime
Date annotation (null if annotation is not a date)
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| size | float | ❌ | Font size of the text in pt |
| font | AnnotationFont | ❌ | |
| color | str | ❌ | Color of the text in hex format |
| auto\_fill | bool | ❌ | Whether the date should be automatically filled |
| timezone | str | ❌ | Timezone of the date |
| timestamp | int | ❌ | Unix timestamp of the date |
| format | AnnotationDateTimeFormat | ❌ | Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces) |
# AttachmentSettings
**Properties**
| Name | Type | Required | Description |
| :---------------------- | :--- | :------- | :-------------------------------------------------- |
| visible\_to\_recipients | bool | ❌ | Whether the attachment is visible to the recipients |
# CreateTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :--- | :------- | :---------- |
| name | str | ✅ | |
# ListTemplateDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :-------------- | :------- | :---------- |
| documents | List\[Document] | ❌ | |
# AnnotationInitials
Initials annotation (null if annotation is not initials)
**Properties**
| Name | Type | Required | Description |
| :--- | :--- | :------- | :------------------------------------------- |
| id\_ | str | ❌ | Unique identifier of the annotation initials |
# AnnotationFont
**Properties**
| Name | Type | Required | Description |
| :----- | :------------------- | :------- | :------------------------- |
| family | AnnotationFontFamily | ❌ | Font family of the text |
| italic | bool | ❌ | Whether the text is italic |
| bold | bool | ❌ | Whether the text is bold |
# AnnotationType
Type of the annotation
**Properties**
| Name | Type | Required | Description |
| :-------- | :--- | :------- | :---------- |
| TEXT | str | ✅ | "TEXT" |
| SIGNATURE | str | ✅ | "SIGNATURE" |
| INITIALS | str | ✅ | "INITIALS" |
| CHECKBOX | str | ✅ | "CHECKBOX" |
| DATE | str | ✅ | "DATE" |
# Webhook
**Properties**
| Name | Type | Required | Description |
| :----- | :----------- | :------- | :------------------------------- |
| id\_ | str | ❌ | Unique identifier of the webhook |
| event | WebhookEvent | ❌ | Event of the webhook |
| target | str | ❌ | Target URL of the webhook |
# RenameTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :--- | :------- | :------------------- |
| name | str | ✅ | Name of the template |
# ListTemplatesResponse
**Properties**
| Name | Type | Required | Description |
| :------------------ | :-------------- | :------- | :------------------------------- |
| has\_next\_page | bool | ❌ | Whether there is a next page |
| has\_previous\_page | bool | ❌ | Whether there is a previous page |
| templates | List\[Template] | ❌ | |
# EnvelopeAttachments
**Properties**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------- | :------- | :---------- |
| settings | AttachmentSettings | ❌ | |
| recipients | List\[AttachmentPlaceholdersPerRecipient] | ❌ | |
# RecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :------------- | :--- | :------- | :------------------- |
| SIGNER | str | ✅ | "SIGNER" |
| RECEIVESCOPY | str | ✅ | "RECEIVES\_COPY" |
| INPERSONSIGNER | str | ✅ | "IN\_PERSON\_SIGNER" |
# Annotation
**Properties**
| Name | Type | Required | Description |
| :------------ | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| id\_ | str | ❌ | Unique identifier of the annotation |
| recipient\_id | str | ❌ | ID of the recipient |
| document\_id | str | ❌ | ID of the document |
| page | int | ❌ | Page number where the annotation is placed |
| x | float | ❌ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | float | ❌ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | float | ❌ | Width of the annotation (in % of the page width from 0 to 100) |
| height | float | ❌ | Height of the annotation (in % of the page height from 0 to 100) |
| required | bool | ❌ | Whether the annotation is required |
| type\_ | AnnotationType | ❌ | Type of the annotation |
| signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| datetime\_ | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# DynamicField
**Properties**
| Name | Type | Required | Description |
| :---- | :--- | :------- | :------------------------- |
| name | str | ❌ | Name of the dynamic field |
| value | str | ❌ | Value of the dynamic field |
# AnnotationDateTimeFormat
Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces)
**Properties**
| Name | Type | Required | Description |
| :------------------ | :--- | :------- | :-------------------------- |
| DMYNUMERICSLASH | str | ✅ | "DMY\_NUMERIC\_SLASH" |
| MDYNUMERICSLASH | str | ✅ | "MDY\_NUMERIC\_SLASH" |
| YMDNUMERICSLASH | str | ✅ | "YMD\_NUMERIC\_SLASH" |
| DMYNUMERICDASHSHORT | str | ✅ | "DMY\_NUMERIC\_DASH\_SHORT" |
| DMYNUMERICDASH | str | ✅ | "DMY\_NUMERIC\_DASH" |
| YMDNUMERICDASH | str | ✅ | "YMD\_NUMERIC\_DASH" |
| MDYTEXTDASHSHORT | str | ✅ | "MDY\_TEXT\_DASH\_SHORT" |
| MDYTEXTSPACESHORT | str | ✅ | "MDY\_TEXT\_SPACE\_SHORT" |
| MDYTEXTSPACE | str | ✅ | "MDY\_TEXT\_SPACE" |
# EnvelopeFlowType
Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :--- | :------- | :------------------- |
| REQUESTSIGNATURE | str | ✅ | "REQUEST\_SIGNATURE" |
| SIGNMYSELF | str | ✅ | "SIGN\_MYSELF" |
# EnvelopeLegalityLevel
Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes)
**Properties**
| Name | Type | Required | Description |
| :-------- | :--- | :------- | :------------ |
| SES | str | ✅ | "SES" |
| QESEIDAS | str | ✅ | "QES\_EIDAS" |
| QESZERTES | str | ✅ | "QES\_ZERTES" |
# TemplateRecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :------------- | :--- | :------- | :------------------- |
| SIGNER | str | ✅ | "SIGNER" |
| RECEIVESCOPY | str | ✅ | "RECEIVES\_COPY" |
| INPERSONSIGNER | str | ✅ | "IN\_PERSON\_SIGNER" |
| SENDER | str | ✅ | "SENDER" |
# AttachmentPlaceholderRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :--- | :------- | :--------------------------------------------- |
| recipient\_id | str | ✅ | ID of the recipient |
| name | str | ✅ | |
| required | bool | ✅ | Whether the attachment placeholder is required |
| multiple | bool | ✅ | |
| id\_ | str | ❌ | ID of the attachment placeholder |
| hint | str | ❌ | Hint of the attachment placeholder |
# SetEnvelopeDynamicFieldsRequest
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------------------ | :------- | :--------------------- |
| dynamic\_fields | List\[DynamicField] | ✅ | List of dynamic fields |
# Page
**Properties**
| Name | Type | Required | Description |
| :----- | :--- | :------- | :--------------------------- |
| width | int | ❌ | Width of the page in pixels |
| height | int | ❌ | Height of the page in pixels |
# TemplateSigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------------------- | :------- | :----------------- |
| recipients | List\[TemplateRecipient] | ❌ | List of recipients |
# AttachmentPlaceholdersPerRecipient
**Properties**
| Name | Type | Required | Description |
| :-------------- | :--------------------------- | :------- | :-------------------- |
| recipient\_id | str | ❌ | ID of the recipient |
| recipient\_name | str | ❌ | Name of the recipient |
| placeholders | List\[AttachmentPlaceholder] | ❌ | |
# ListEnvelopesResponse
**Properties**
| Name | Type | Required | Description |
| :------------------ | :-------------- | :------- | :------------------------------- |
| has\_next\_page | bool | ❌ | Whether there is a next page |
| has\_previous\_page | bool | ❌ | Whether there is a previous page |
| envelopes | List\[Envelope] | ❌ | |
# Recipient
**Properties**
| Name | Type | Required | Description |
| :----------- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | str | ✅ | Name of the recipient |
| email | str | ✅ | Email of the recipient |
| role | RecipientRole | ✅ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
| id\_ | str | ❌ | Unique identifier of the recipient |
| uid | str | ❌ | Unique identifier of the user associated with the recipient |
| verification | RecipientVerification | ❌ | |
# WebhookEvent
Event of the webhook
**Properties**
| Name | Type | Required | Description |
| :----------------- | :--- | :------- | :----------------------- |
| ENVELOPEEXPIRED | str | ✅ | "ENVELOPE\_EXPIRED" |
| ENVELOPEDECLINED | str | ✅ | "ENVELOPE\_DECLINED" |
| ENVELOPEVOIDED | str | ✅ | "ENVELOPE\_VOIDED" |
| ENVELOPECOMPLETED | str | ✅ | "ENVELOPE\_COMPLETED" |
| ENVELOPEAUDITTRAIL | str | ✅ | "ENVELOPE\_AUDIT\_TRAIL" |
# CreateWebhookRequest
**Properties**
| Name | Type | Required | Description |
| :----- | :----------- | :------- | :------------------------ |
| event | WebhookEvent | ✅ | Event of the webhook |
| target | str | ✅ | URL of the webhook target |
# CreateEnvelopeFromTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :--- | :------- | :---------------------------------------------- |
| name | str | ✅ | Name of the envelope |
| comment | str | ❌ | Comment for the envelope |
| sandbox | bool | ❌ | Whether the envelope is created in sandbox mode |
# ListTemplateAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------------- | :------- | :---------- |
| annotations | List\[Annotation] | ❌ | |
# RenameEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :--- | :------- | :------------------- |
| name | str | ❌ | Name of the envelope |
# ListTemplateDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------------- | :------- | :---------- |
| annotations | List\[Annotation] | ❌ | |
# ListEnvelopeDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :-------------- | :------- | :---------- |
| documents | List\[Document] | ❌ | |
# ListWebhooksResponse
**Properties**
| Name | Type | Required | Description |
| :------- | :------------- | :------- | :---------- |
| webhooks | List\[Webhook] | ❌ | |
# AnnotationSignature
Signature annotation (null if annotation is not a signature)
**Properties**
| Name | Type | Required | Description |
| :--- | :--- | :------- | :-------------------------------------------- |
| id\_ | str | ❌ | Unique identifier of the annotation signature |
# Install
Source: https://apidoc.sign.plus/backend-sdks/sharp/install
Install the Signplus C# SDK package
```bash theme={null}
dotnet add package Alohi.Signplus
```
Call your first SDK method
```csharp theme={null}
using Signplus;
using Signplus.Config;
using Environment = Signplus.Http.Environment;
var config = new SignplusConfig
{
Environment = Environment.Default,
AccessToken = "YOUR_ACCESS_TOKEN"
};
var client = new SignplusClient(config);
var response = await client.Signplus.GetEnvelopeAsync("envelope_id");
Console.WriteLine(response);
```
# Sdk reference
Source: https://apidoc.sign.plus/backend-sdks/sharp/sdk-reference
A list of all methods in the `SignplusService` service. Click on the method name to view detailed information about that method.
| Methods | Description |
| :---------------------------------------------------------------------------------- | :-------------------------------------------------------------- |
| [CreateEnvelopeAsync](#createenvelopeasync) | Create new envelope |
| [CreateEnvelopeFromTemplateAsync](#createenvelopefromtemplateasync) | Create new envelope from template |
| [ListEnvelopesAsync](#listenvelopesasync) | List envelopes |
| [GetEnvelopeAsync](#getenvelopeasync) | Get envelope |
| [DeleteEnvelopeAsync](#deleteenvelopeasync) | Delete envelope |
| [DownloadEnvelopeSignedDocumentsAsync](#downloadenvelopesigneddocumentsasync) | Download signed documents for an envelope |
| [DownloadEnvelopeCertificateAsync](#downloadenvelopecertificateasync) | Download certificate of completion for an envelope |
| [GetEnvelopeDocumentAsync](#getenvelopedocumentasync) | Get envelope document |
| [GetEnvelopeDocumentsAsync](#getenvelopedocumentsasync) | Get envelope documents |
| [AddEnvelopeDocumentAsync](#addenvelopedocumentasync) | Add envelope document |
| [SetEnvelopeDynamicFieldsAsync](#setenvelopedynamicfieldsasync) | Set envelope dynamic fields |
| [AddEnvelopeSigningStepsAsync](#addenvelopesigningstepsasync) | Add envelope signing steps |
| [SetEnvelopeAttachmentsSettingsAsync](#setenvelopeattachmentssettingsasync) | Set envelope attachment settings |
| [SetEnvelopeAttachmentsPlaceholdersAsync](#setenvelopeattachmentsplaceholdersasync) | Placeholders to be set, completely replacing the existing ones. |
| [GetAttachmentFileAsync](#getattachmentfileasync) | Get envelope attachment file |
| [SendEnvelopeAsync](#sendenvelopeasync) | Send envelope for signature |
| [DuplicateEnvelopeAsync](#duplicateenvelopeasync) | Duplicate envelope |
| [VoidEnvelopeAsync](#voidenvelopeasync) | Void envelope |
| [RenameEnvelopeAsync](#renameenvelopeasync) | Rename envelope |
| [SetEnvelopeCommentAsync](#setenvelopecommentasync) | Set envelope comment |
| [SetEnvelopeNotificationAsync](#setenvelopenotificationasync) | Set envelope notification |
| [SetEnvelopeExpirationDateAsync](#setenvelopeexpirationdateasync) | Set envelope expiration date |
| [SetEnvelopeLegalityLevelAsync](#setenvelopelegalitylevelasync) | Set envelope legality level |
| [GetEnvelopeAnnotationsAsync](#getenvelopeannotationsasync) | Get envelope annotations |
| [GetEnvelopeDocumentAnnotationsAsync](#getenvelopedocumentannotationsasync) | Get envelope document annotations |
| [AddEnvelopeAnnotationAsync](#addenvelopeannotationasync) | Add envelope annotation |
| [DeleteEnvelopeAnnotationAsync](#deleteenvelopeannotationasync) | Delete envelope annotation |
| [CreateTemplateAsync](#createtemplateasync) | Create new template |
| [ListTemplatesAsync](#listtemplatesasync) | List templates |
| [GetTemplateAsync](#gettemplateasync) | Get template |
| [DeleteTemplateAsync](#deletetemplateasync) | Delete template |
| [DuplicateTemplateAsync](#duplicatetemplateasync) | Duplicate template |
| [AddTemplateDocumentAsync](#addtemplatedocumentasync) | Add template document |
| [GetTemplateDocumentAsync](#gettemplatedocumentasync) | Get template document |
| [GetTemplateDocumentsAsync](#gettemplatedocumentsasync) | Get template documents |
| [AddTemplateSigningStepsAsync](#addtemplatesigningstepsasync) | Add template signing steps |
| [RenameTemplateAsync](#renametemplateasync) | Rename template |
| [SetTemplateCommentAsync](#settemplatecommentasync) | Set template comment |
| [SetTemplateNotificationAsync](#settemplatenotificationasync) | Set template notification |
| [GetTemplateAnnotationsAsync](#gettemplateannotationsasync) | Get template annotations |
| [GetDocumentTemplateAnnotationsAsync](#getdocumenttemplateannotationsasync) | Get document template annotations |
| [AddTemplateAnnotationAsync](#addtemplateannotationasync) | Add template annotation |
| [DeleteTemplateAnnotationAsync](#deletetemplateannotationasync) | Delete template annotation |
| [SetTemplateAttachmentsSettingsAsync](#settemplateattachmentssettingsasync) | Set template attachment settings |
| [SetTemplateAttachmentsPlaceholdersAsync](#settemplateattachmentsplaceholdersasync) | Placeholders to be set, completely replacing the existing ones. |
| [CreateWebhookAsync](#createwebhookasync) | Create webhook |
| [ListWebhooksAsync](#listwebhooksasync) | List webhooks |
| [DeleteWebhookAsync](#deletewebhookasync) | Delete webhook |
## CreateEnvelopeAsync
Create new envelope
* HTTP Method: `POST`
* Endpoint: `/envelope`
**Parameters**
| Name | Type | Required | Description |
| :---- | :----------------------------------------------------------------------------- | :------- | :---------------- |
| input | [CreateEnvelopeRequest](/api-reference/endpoints/signplus/create-new-envelope) | ✅ | The request body. |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new CreateEnvelopeRequest("name", EnvelopeLegalityLevel.Ses, 8, "comment", false);
var response = await client.Signplus.CreateEnvelopeAsync(input);
Console.WriteLine(response);
```
## CreateEnvelopeFromTemplateAsync
Create new envelope from template
* HTTP Method: `POST`
* Endpoint: `/envelope/from_template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| input | [CreateEnvelopeFromTemplateRequest](/api-reference/endpoints/signplus/create-new-envelope-from-template) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new CreateEnvelopeFromTemplateRequest("name", "comment", true);
var response = await client.Signplus.CreateEnvelopeFromTemplateAsync(input, "template_id");
Console.WriteLine(response);
```
## ListEnvelopesAsync
List envelopes
* HTTP Method: `POST`
* Endpoint: `/envelopes`
**Parameters**
| Name | Type | Required | Description |
| :---- | :----------------------------------------------------------------------- | :------- | :---------------- |
| input | [ListEnvelopesRequest](/api-reference/endpoints/signplus/list-envelopes) | ❌ | The request body. |
**Return Type**
`ListEnvelopesResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var tags = new List() { "tags" };
var ids = new List() { "ids" };
var statuses = new List() { EnvelopeStatus.Draft };
var folderIds = new List() { "folder_ids" };
var input = new ListEnvelopesRequest("name", tags, "comment", ids, statuses, folderIds, true, 5, 9, "uid", 9, 7, "after", "before", EnvelopeOrderField.CreationDate, true, true);
var response = await client.Signplus.ListEnvelopesAsync(input);
Console.WriteLine(response);
```
## GetEnvelopeAsync
Get envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetEnvelopeAsync("envelope_id");
Console.WriteLine(response);
```
## DeleteEnvelopeAsync
Delete envelope
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
await client.Signplus.DeleteEnvelopeAsync("envelope_id");
```
## DownloadEnvelopeSignedDocumentsAsync
Download signed documents for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/signed_documents`
**Parameters**
| Name | Type | Required | Description |
| :---------------------- | :----- | :------- | :---------------------------------------------------------------------- |
| envelopeId | string | ✅ | ID of the envelope |
| certificateOfCompletion | bool | ❌ | Whether to include the certificate of completion in the downloaded file |
**Return Type**
`byte[]`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.DownloadEnvelopeSignedDocumentsAsync("envelope_id", true);
Console.WriteLine(response);
```
## DownloadEnvelopeCertificateAsync
Download certificate of completion for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/certificate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`byte[]`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.DownloadEnvelopeCertificateAsync("envelope_id");
Console.WriteLine(response);
```
## GetEnvelopeDocumentAsync
Get envelope document
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
| documentId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetEnvelopeDocumentAsync("envelope_id", "document_id");
Console.WriteLine(response);
```
## GetEnvelopeDocumentsAsync
Get envelope documents
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`ListEnvelopeDocumentsResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetEnvelopeDocumentsAsync("envelope_id");
Console.WriteLine(response);
```
## AddEnvelopeDocumentAsync
Add envelope document
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------- | :------- | :---------------- |
| input | AddEnvelopeDocumentRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new AddEnvelopeDocumentRequest(new byte[] {});
var response = await client.Signplus.AddEnvelopeDocumentAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeDynamicFieldsAsync
Set envelope dynamic fields
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/dynamic_fields`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------ | :------- | :---------------- |
| input | SetEnvelopeDynamicFieldsRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var dynamicFieldsItem = new DynamicField("name", "value");
var dynamicFields = new List() { dynamicFieldsItem };
var input = new SetEnvelopeDynamicFieldsRequest(dynamicFields);
var response = await client.Signplus.SetEnvelopeDynamicFieldsAsync(input, "envelope_id");
Console.WriteLine(response);
```
## AddEnvelopeSigningStepsAsync
Add envelope signing steps
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----------------------------- | :------- | :---------------- |
| input | AddEnvelopeSigningStepsRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var verification = new RecipientVerification(RecipientVerificationType.Sms, "value");
var recipientsItem = new Recipient("name", "email", RecipientRole.Signer, "id", "uid", verification);
var recipients = new List() { recipientsItem };
var signingStepsItem = new SigningStep(recipients);
var signingSteps = new List() { signingStepsItem };
var input = new AddEnvelopeSigningStepsRequest(signingSteps);
var response = await client.Signplus.AddEnvelopeSigningStepsAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeAttachmentsSettingsAsync
Set envelope attachment settings
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------ | :------- | :---------------- |
| input | SetEnvelopeAttachmentsSettingsRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var settings = new AttachmentSettings(false);
var input = new SetEnvelopeAttachmentsSettingsRequest(settings);
var response = await client.Signplus.SetEnvelopeAttachmentsSettingsAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeAttachmentsPlaceholdersAsync
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------- | :------- | :---------------- |
| input | SetEnvelopeAttachmentsPlaceholdersRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var placeholdersItem = new AttachmentPlaceholderRequest("recipient_id", "name", false, true, "id", "hint");
var placeholders = new List() { placeholdersItem };
var input = new SetEnvelopeAttachmentsPlaceholdersRequest(placeholders);
var response = await client.Signplus.SetEnvelopeAttachmentsPlaceholdersAsync(input, "envelope_id");
Console.WriteLine(response);
```
## GetAttachmentFileAsync
Get envelope attachment file
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/attachments/{file_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
| fileId | string | ✅ | |
**Return Type**
`byte[]`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetAttachmentFileAsync("envelope_id", "file_id");
Console.WriteLine(response);
```
## SendEnvelopeAsync
Send envelope for signature
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/send`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.SendEnvelopeAsync("envelope_id");
Console.WriteLine(response);
```
## DuplicateEnvelopeAsync
Duplicate envelope
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.DuplicateEnvelopeAsync("envelope_id");
Console.WriteLine(response);
```
## VoidEnvelopeAsync
Void envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/void`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.VoidEnvelopeAsync("envelope_id");
Console.WriteLine(response);
```
## RenameEnvelopeAsync
Rename envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :-------------------- | :------- | :---------------- |
| input | RenameEnvelopeRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new RenameEnvelopeRequest("name");
var response = await client.Signplus.RenameEnvelopeAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeCommentAsync
Set envelope comment
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------ | :------- | :---------------- |
| input | SetEnvelopeCommentRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new SetEnvelopeCommentRequest("comment");
var response = await client.Signplus.SetEnvelopeCommentAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeNotificationAsync
Set envelope notification
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------- | :------- | :---------------- |
| input | EnvelopeNotification | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new EnvelopeNotification("subject", "message", 1);
var response = await client.Signplus.SetEnvelopeNotificationAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeExpirationDateAsync
Set envelope expiration date
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_expiration_date`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :--------------------------- | :------- | :---------------- |
| input | SetEnvelopeExpirationRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new SetEnvelopeExpirationRequest(0);
var response = await client.Signplus.SetEnvelopeExpirationDateAsync(input, "envelope_id");
Console.WriteLine(response);
```
## SetEnvelopeLegalityLevelAsync
Set envelope legality level
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_legality_level`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------ | :------- | :---------------- |
| input | SetEnvelopeLegalityLevelRequest | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new SetEnvelopeLegalityLevelRequest(EnvelopeLegalityLevel.Ses);
var response = await client.Signplus.SetEnvelopeLegalityLevelAsync(input, "envelope_id");
Console.WriteLine(response);
```
## GetEnvelopeAnnotationsAsync
Get envelope annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`List<Annotation>`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetEnvelopeAnnotationsAsync("envelope_id");
Console.WriteLine(response);
```
## GetEnvelopeDocumentAnnotationsAsync
Get envelope document annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | string | ✅ | ID of the envelope |
| documentId | string | ✅ | ID of document |
**Return Type**
`ListEnvelopeDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetEnvelopeDocumentAnnotationsAsync("envelope_id", "document_id");
Console.WriteLine(response);
```
## AddEnvelopeAnnotationAsync
Add envelope annotation
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------- | :------- | :----------------- |
| input | AddAnnotationRequest | ✅ | The request body. |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var signature = new AnnotationSignature("id");
var initials = new AnnotationInitials("id");
var font = new AnnotationFont(AnnotationFontFamily.Unknown, true, true);
var text = new AnnotationText(5.96, 8.73, "value", "tooltip", "dynamic_field_name", font);
var font = new AnnotationFont(AnnotationFontFamily.Unknown, true, true);
var datetime = new AnnotationDateTime(0.26, font, "color", true, "timezone", 1, AnnotationDateTimeFormat.DmyNumericSlash);
var checkbox = new AnnotationCheckbox(true, AnnotationCheckboxStyle.CircleCheck);
var input = new AddAnnotationRequest("document_id", 2, 1.99, 8.2, 4.89, 9.43, AnnotationType.Text, "recipient_id", false, signature, initials, text, datetime, checkbox);
var response = await client.Signplus.AddEnvelopeAnnotationAsync(input, "envelope_id");
Console.WriteLine(response);
```
## DeleteEnvelopeAnnotationAsync
Delete envelope annotation
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------------------- |
| envelopeId | string | ✅ | ID of the envelope |
| annotationId | string | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
await client.Signplus.DeleteEnvelopeAnnotationAsync("envelope_id", "annotation_id");
```
## CreateTemplateAsync
Create new template
* HTTP Method: `POST`
* Endpoint: `/template`
**Parameters**
| Name | Type | Required | Description |
| :---- | :----------------------------------------------------------------------------- | :------- | :---------------- |
| input | [CreateTemplateRequest](/api-reference/endpoints/signplus/create-new-template) | ✅ | The request body. |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new CreateTemplateRequest("name");
var response = await client.Signplus.CreateTemplateAsync(input);
Console.WriteLine(response);
```
## ListTemplatesAsync
List templates
* HTTP Method: `POST`
* Endpoint: `/templates`
**Parameters**
| Name | Type | Required | Description |
| :---- | :----------------------------------------------------------------------- | :------- | :---------------- |
| input | [ListTemplatesRequest](/api-reference/endpoints/signplus/list-templates) | ❌ | The request body. |
**Return Type**
`ListTemplatesResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var tags = new List() { "tags" };
var ids = new List() { "ids" };
var input = new ListTemplatesRequest("name", tags, ids, 1, 6, "after", "before", TemplateOrderField.TemplateId, false);
var response = await client.Signplus.ListTemplatesAsync(input);
Console.WriteLine(response);
```
## GetTemplateAsync
Get template
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetTemplateAsync("template_id");
Console.WriteLine(response);
```
## DeleteTemplateAsync
Delete template
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
await client.Signplus.DeleteTemplateAsync("template_id");
```
## DuplicateTemplateAsync
Duplicate template
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.DuplicateTemplateAsync("template_id");
Console.WriteLine(response);
```
## AddTemplateDocumentAsync
Add template document
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------- | :------- | :---------------- |
| input | AddTemplateDocumentRequest | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new AddTemplateDocumentRequest(new byte[] {});
var response = await client.Signplus.AddTemplateDocumentAsync(input, "template_id");
Console.WriteLine(response);
```
## GetTemplateDocumentAsync
Get template document
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
| documentId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetTemplateDocumentAsync("template_id", "document_id");
Console.WriteLine(response);
```
## GetTemplateDocumentsAsync
Get template documents
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Return Type**
`ListTemplateDocumentsResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetTemplateDocumentsAsync("template_id");
Console.WriteLine(response);
```
## AddTemplateSigningStepsAsync
Add template signing steps
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----------------------------- | :------- | :---------------- |
| input | AddTemplateSigningStepsRequest | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var recipientsItem = new TemplateRecipient("id", "uid", "name", "email", TemplateRecipientRole.Signer);
var recipients = new List() { recipientsItem };
var signingStepsItem = new TemplateSigningStep(recipients);
var signingSteps = new List() { signingStepsItem };
var input = new AddTemplateSigningStepsRequest(signingSteps);
var response = await client.Signplus.AddTemplateSigningStepsAsync(input, "template_id");
Console.WriteLine(response);
```
## RenameTemplateAsync
Rename template
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :-------------------- | :------- | :---------------- |
| input | RenameTemplateRequest | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new RenameTemplateRequest("name");
var response = await client.Signplus.RenameTemplateAsync(input, "template_id");
Console.WriteLine(response);
```
## SetTemplateCommentAsync
Set template comment
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------ | :------- | :---------------- |
| input | SetTemplateCommentRequest | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new SetTemplateCommentRequest("comment");
var response = await client.Signplus.SetTemplateCommentAsync(input, "template_id");
Console.WriteLine(response);
```
## SetTemplateNotificationAsync
Set template notification
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------- | :------- | :---------------- |
| input | EnvelopeNotification | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new EnvelopeNotification("subject", "message", 1);
var response = await client.Signplus.SetTemplateNotificationAsync(input, "template_id");
Console.WriteLine(response);
```
## GetTemplateAnnotationsAsync
Get template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| templateId | string | ✅ | ID of the template |
**Return Type**
`ListTemplateAnnotationsResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetTemplateAnnotationsAsync("template_id");
Console.WriteLine(response);
```
## GetDocumentTemplateAnnotationsAsync
Get document template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| templateId | string | ✅ | ID of the template |
| documentId | string | ✅ | ID of document |
**Return Type**
`ListTemplateDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var response = await client.Signplus.GetDocumentTemplateAnnotationsAsync("template_id", "document_id");
Console.WriteLine(response);
```
## AddTemplateAnnotationAsync
Add template annotation
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------- | :------- | :----------------- |
| input | AddAnnotationRequest | ✅ | The request body. |
| templateId | string | ✅ | ID of the template |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var signature = new AnnotationSignature("id");
var initials = new AnnotationInitials("id");
var font = new AnnotationFont(AnnotationFontFamily.Unknown, true, true);
var text = new AnnotationText(5.96, 8.73, "value", "tooltip", "dynamic_field_name", font);
var font = new AnnotationFont(AnnotationFontFamily.Unknown, true, true);
var datetime = new AnnotationDateTime(0.26, font, "color", true, "timezone", 1, AnnotationDateTimeFormat.DmyNumericSlash);
var checkbox = new AnnotationCheckbox(true, AnnotationCheckboxStyle.CircleCheck);
var input = new AddAnnotationRequest("document_id", 2, 1.99, 8.2, 4.89, 9.43, AnnotationType.Text, "recipient_id", false, signature, initials, text, datetime, checkbox);
var response = await client.Signplus.AddTemplateAnnotationAsync(input, "template_id");
Console.WriteLine(response);
```
## DeleteTemplateAnnotationAsync
Delete template annotation
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------------------- |
| templateId | string | ✅ | ID of the template |
| annotationId | string | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
await client.Signplus.DeleteTemplateAnnotationAsync("template_id", "annotation_id");
```
## SetTemplateAttachmentsSettingsAsync
Set template attachment settings
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------ | :------- | :---------------- |
| input | SetEnvelopeAttachmentsSettingsRequest | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var settings = new AttachmentSettings(false);
var input = new SetEnvelopeAttachmentsSettingsRequest(settings);
var response = await client.Signplus.SetTemplateAttachmentsSettingsAsync(input, "template_id");
Console.WriteLine(response);
```
## SetTemplateAttachmentsPlaceholdersAsync
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------- | :------- | :---------------- |
| input | SetEnvelopeAttachmentsPlaceholdersRequest | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var placeholdersItem = new AttachmentPlaceholderRequest("recipient_id", "name", false, true, "id", "hint");
var placeholders = new List() { placeholdersItem };
var input = new SetEnvelopeAttachmentsPlaceholdersRequest(placeholders);
var response = await client.Signplus.SetTemplateAttachmentsPlaceholdersAsync(input, "template_id");
Console.WriteLine(response);
```
## CreateWebhookAsync
Create webhook
* HTTP Method: `POST`
* Endpoint: `/webhook`
**Parameters**
| Name | Type | Required | Description |
| :---- | :----------------------------------------------------------------------- | :------- | :---------------- |
| input | [CreateWebhookRequest](/api-reference/endpoints/signplus/create-webhook) | ✅ | The request body. |
**Return Type**
`Webhook`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new CreateWebhookRequest(WebhookEvent.EnvelopeExpired, "target");
var response = await client.Signplus.CreateWebhookAsync(input);
Console.WriteLine(response);
```
## ListWebhooksAsync
List webhooks
* HTTP Method: `POST`
* Endpoint: `/webhooks`
**Parameters**
| Name | Type | Required | Description |
| :---- | :--------------------------------------------------------------------- | :------- | :---------------- |
| input | [ListWebhooksRequest](/api-reference/endpoints/signplus/list-webhooks) | ❌ | The request body. |
**Return Type**
`ListWebhooksResponse`
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
using Alohi.Signplus.Models;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
var input = new ListWebhooksRequest("webhook_id", WebhookEvent.EnvelopeExpired);
var response = await client.Signplus.ListWebhooksAsync(input);
Console.WriteLine(response);
```
## DeleteWebhookAsync
Delete webhook
* HTTP Method: `DELETE`
* Endpoint: `/webhook/{webhook_id}`
**Parameters**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| webhookId | string | ✅ | |
**Example Usage Code Snippet**
```csharp theme={null}
using Alohi.Signplus;
using Alohi.Signplus.Config;
var config = new SignplusConfig{};
var client = new SignplusClient(config);
await client.Signplus.DeleteWebhookAsync("webhook_id");
```
# Models
# SetEnvelopeAttachmentsPlaceholdersRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :---------------------------------- | :------- | :---------- |
| Placeholders | List\ | ✅ | |
# Document
**Properties**
| Name | Type | Required | Description |
| :-------- | :---------- | :------- | :-------------------------------- |
| Id | string | ❌ | Unique identifier of the document |
| Name | string | ❌ | Name of the document |
| Filename | string | ❌ | Filename of the document |
| PageCount | long | ❌ | Number of pages in the document |
| Pages | List\ | ❌ | List of pages in the document |
# CreateEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Name | string | ✅ | Name of the envelope |
| LegalityLevel | EnvelopeLegalityLevel | ✅ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| ExpiresAt | long | ❌ | Unix timestamp of the expiration date |
| Comment | string | ❌ | Comment for the envelope |
| Sandbox | bool | ❌ | Whether the envelope is created in sandbox mode |
# ListEnvelopesRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :-------------------- | :------- | :------------------------------------------------ |
| Name | string | ❌ | Name of the envelope |
| Tags | List\ | ❌ | List of tags |
| Comment | string | ❌ | Comment of the envelope |
| Ids | List\ | ❌ | List of envelope IDs |
| Statuses | List\ | ❌ | List of envelope statuses |
| FolderIds | List\ | ❌ | List of folder IDs |
| OnlyRootFolder | bool | ❌ | Whether to only list envelopes in the root folder |
| DateFrom | long | ❌ | Unix timestamp of the start date |
| DateTo | long | ❌ | Unix timestamp of the end date |
| Uid | string | ❌ | Unique identifier of the user |
| First | long | ❌ | |
| Last | long | ❌ | |
| After | string | ❌ | |
| Before | string | ❌ | |
| OrderField | EnvelopeOrderField | ❌ | Field to order envelopes by |
| Ascending | bool | ❌ | Whether to order envelopes in ascending order |
| IncludeTrash | bool | ❌ | Whether to include envelopes in the trash |
# AttachmentPlaceholder
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------------------- | :------- | :--------------------------------------------------------- |
| RecipientId | string | ❌ | ID of the recipient |
| Id | string | ❌ | ID of the attachment placeholder |
| Name | string | ❌ | Name of the attachment placeholder |
| Hint | string | ❌ | Hint of the attachment placeholder |
| Required | bool | ❌ | Whether the attachment placeholder is required |
| Multiple | bool | ❌ | Whether the attachment placeholder can have multiple files |
| Files | List\ | ❌ | |
# SetEnvelopeAttachmentsSettingsRequest
**Properties**
| Name | Type | Required | Description |
| :------- | :----------------- | :------- | :---------- |
| Settings | AttachmentSettings | ✅ | |
# EnvelopeNotification
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :-------------------------------- |
| Subject | string | ❌ | Subject of the notification |
| Message | string | ❌ | Message of the notification |
| ReminderInterval | long | ❌ | Interval in days to send reminder |
# ListTemplatesRequest
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------------- | :------- | :-------------------------------------------- |
| Name | string | ❌ | Name of the template |
| Tags | List\ | ❌ | List of tag templates |
| Ids | List\ | ❌ | List of templates IDs |
| First | long | ❌ | |
| Last | long | ❌ | |
| After | string | ❌ | |
| Before | string | ❌ | |
| OrderField | TemplateOrderField | ❌ | Field to order templates by |
| Ascending | bool | ❌ | Whether to order templates in ascending order |
# SetTemplateCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| Comment | string | ✅ | Comment for the template |
# Template
**Properties**
| Name | Type | Required | Description |
| :-------------- | :------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Id | string | ❌ | Unique identifier of the template |
| Name | string | ❌ | Name of the template |
| Comment | string | ❌ | Comment for the template |
| Pages | long | ❌ | Total number of pages in the template |
| LegalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| CreatedAt | long | ❌ | Unix timestamp of the creation date |
| UpdatedAt | long | ❌ | Unix timestamp of the last modification date |
| ExpirationDelay | long | ❌ | Expiration delay added to the current time when an envelope is created from this template |
| NumRecipients | long | ❌ | Number of recipients in the envelope |
| SigningSteps | List\ | ❌ | |
| Documents | List\ | ❌ | |
| Notification | EnvelopeNotification | ❌ | |
| DynamicFields | List\ | ❌ | List of dynamic fields |
| Attachments | EnvelopeAttachments | ❌ | |
# RecipientVerificationType
Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check.
**Properties**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :----------------- |
| Sms | string | ✅ | "SMS" |
| Passcode | string | ✅ | "PASSCODE" |
| IdVerification | string | ✅ | "ID\_VERIFICATION" |
# AddEnvelopeSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :----------------- | :------- | :-------------------- |
| SigningSteps | List\ | ❌ | List of signing steps |
# AnnotationFontFamily
Font family of the text
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------- |
| Unknown | string | ✅ | "UNKNOWN" |
| Serif | string | ✅ | "SERIF" |
| Sans | string | ✅ | "SANS" |
| Mono | string | ✅ | "MONO" |
# AddTemplateSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :------------------------- | :------- | :-------------------- |
| SigningSteps | List\ | ✅ | List of signing steps |
# SetEnvelopeCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| Comment | string | ✅ | Comment for the envelope |
# TemplateOrderField
Field to order templates by
**Properties**
| Name | Type | Required | Description |
| :----------------------- | :----- | :------- | :----------------------------- |
| TemplateId | string | ✅ | "TEMPLATE\_ID" |
| TemplateCreationDate | string | ✅ | "TEMPLATE\_CREATION\_DATE" |
| TemplateModificationDate | string | ✅ | "TEMPLATE\_MODIFICATION\_DATE" |
| TemplateName | string | ✅ | "TEMPLATE\_NAME" |
# EnvelopeOrderField
Field to order envelopes by
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :----------------------- |
| CreationDate | string | ✅ | "CREATION\_DATE" |
| ModificationDate | string | ✅ | "MODIFICATION\_DATE" |
| Name | string | ✅ | "NAME" |
| Status | string | ✅ | "STATUS" |
| LastDocumentChange | string | ✅ | "LAST\_DOCUMENT\_CHANGE" |
# AddEnvelopeDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :------ | :------- | :------------------------------ |
| File | byte\[] | ❌ | File to upload in binary format |
# ListWebhooksRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------- | :------- | :------------------- |
| WebhookId | string | ❌ | ID of the webhook |
| Event\_ | WebhookEvent | ❌ | Event of the webhook |
# SetEnvelopeLegalityLevelRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| LegalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
# AttachmentPlaceholderFile
**Properties**
| Name | Type | Required | Description |
| :------- | :----- | :------- | :------------------------ |
| Id | string | ❌ | ID of the file |
| Name | string | ❌ | Name of the file |
| Size | long | ❌ | Size of the file in bytes |
| Mimetype | string | ❌ | MIME type of the file |
# SetEnvelopeExpirationRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :--- | :------- | :------------------------------------ |
| ExpiresAt | long | ✅ | Unix timestamp of the expiration date |
# AnnotationText
Text annotation (null if annotation is not a text)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :------------- | :------- | :--------------------------------- |
| Size | double | ❌ | Font size of the text in pt |
| Color | double | ❌ | Text color in 32bit representation |
| Value | string | ❌ | Text content of the annotation |
| Tooltip | string | ❌ | Tooltip of the annotation |
| DynamicFieldName | string | ❌ | Name of the dynamic field |
| Font | AnnotationFont | ❌ | |
# AnnotationCheckbox
Checkbox annotation (null if annotation is not a checkbox)
**Properties**
| Name | Type | Required | Description |
| :-------- | :---------------------- | :------- | :------------------------------ |
| Checked\_ | bool | ❌ | Whether the checkbox is checked |
| Style | AnnotationCheckboxStyle | ❌ | Style of the checkbox |
# Envelope
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Id | string | ❌ | Unique identifier of the envelope |
| Name | string | ❌ | Name of the envelope |
| Comment | string | ❌ | Comment for the envelope |
| Pages | long | ❌ | Total number of pages in the envelope |
| FlowType | EnvelopeFlowType | ❌ | Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow) |
| LegalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| Status | EnvelopeStatus | ❌ | Status of the envelope |
| CreatedAt | long | ❌ | Unix timestamp of the creation date |
| UpdatedAt | long | ❌ | Unix timestamp of the last modification date |
| ExpiresAt | long | ❌ | Unix timestamp of the expiration date |
| NumRecipients | long | ❌ | Number of recipients in the envelope |
| IsDuplicable | bool | ❌ | Whether the envelope can be duplicated |
| SigningSteps | List\ | ❌ | |
| Documents | List\ | ❌ | |
| Notification | EnvelopeNotification | ❌ | |
| Attachments | EnvelopeAttachments | ❌ | |
# AddTemplateDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :------ | :------- | :------------------------------ |
| File | byte\[] | ✅ | File to upload in binary format |
# TemplateRecipient
**Properties**
| Name | Type | Required | Description |
| :---- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Id | string | ❌ | Unique identifier of the recipient |
| Uid | string | ❌ | Unique identifier of the user associated with the recipient |
| Name | string | ❌ | Name of the recipient |
| Email | string | ❌ | Email of the recipient |
| Role | TemplateRecipientRole | ❌ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
# AddAnnotationRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| DocumentId | string | ✅ | ID of the document |
| Page | long | ✅ | Page number where the annotation is placed |
| X | double | ✅ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| Y | double | ✅ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| Width | double | ✅ | Width of the annotation (in % of the page width from 0 to 100) |
| Height | double | ✅ | Height of the annotation (in % of the page height from 0 to 100) |
| Type\_ | AnnotationType | ✅ | Type of the annotation |
| RecipientId | string | ❌ | ID of the recipient |
| Required | bool | ❌ | |
| Signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| Initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| Text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| Datetime | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| Checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# ListEnvelopeDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------------- | :------- | :---------- |
| Annotations | List\ | ❌ | |
# EnvelopeStatus
Status of the envelope
**Properties**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :------------- |
| Draft | string | ✅ | "DRAFT" |
| InProgress | string | ✅ | "IN\_PROGRESS" |
| Completed | string | ✅ | "COMPLETED" |
| Expired | string | ✅ | "EXPIRED" |
| Declined | string | ✅ | "DECLINED" |
| Voided | string | ✅ | "VOIDED" |
| Pending | string | ✅ | "PENDING" |
# RecipientVerification
**Properties**
| Name | Type | Required | Description |
| :----- | :------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type\_ | RecipientVerificationType | ❌ | Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check. |
| Value | string | ❌ | Required for `PASSCODE` and `SMS` verification. - `PASSCODE`: code required by the recipient to sign the document. - `SMS`: recipient's phone number. - `ID_VERIFICATION`: leave empty. |
# AnnotationCheckboxStyle
Style of the checkbox
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :-------------- |
| CircleCheck | string | ✅ | "CIRCLE\_CHECK" |
| CircleFull | string | ✅ | "CIRCLE\_FULL" |
| SquareCheck | string | ✅ | "SQUARE\_CHECK" |
| SquareFull | string | ✅ | "SQUARE\_FULL" |
| CheckMark | string | ✅ | "CHECK\_MARK" |
| TimesSquare | string | ✅ | "TIMES\_SQUARE" |
# SigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :--------------- | :------- | :----------------- |
| Recipients | List\ | ❌ | List of recipients |
# AnnotationDateTime
Date annotation (null if annotation is not a date)
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Size | double | ❌ | Font size of the text in pt |
| Font | AnnotationFont | ❌ | |
| Color | string | ❌ | Color of the text in hex format |
| AutoFill | bool | ❌ | Whether the date should be automatically filled |
| Timezone | string | ❌ | Timezone of the date |
| Timestamp | long | ❌ | Unix timestamp of the date |
| Format | AnnotationDateTimeFormat | ❌ | Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces) |
# AttachmentSettings
**Properties**
| Name | Type | Required | Description |
| :------------------ | :--- | :------- | :-------------------------------------------------- |
| VisibleToRecipients | bool | ❌ | Whether the attachment is visible to the recipients |
# CreateTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :---------- |
| Name | string | ✅ | |
# ListTemplateDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :-------------- | :------- | :---------- |
| Documents | List\ | ❌ | |
# AnnotationInitials
Initials annotation (null if annotation is not initials)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------------------- |
| Id | string | ❌ | Unique identifier of the annotation initials |
# AnnotationFont
**Properties**
| Name | Type | Required | Description |
| :----- | :------------------- | :------- | :------------------------- |
| Family | AnnotationFontFamily | ❌ | Font family of the text |
| Italic | bool | ❌ | Whether the text is italic |
| Bold | bool | ❌ | Whether the text is bold |
# AnnotationType
Type of the annotation
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| Text | string | ✅ | "TEXT" |
| Signature | string | ✅ | "SIGNATURE" |
| Initials | string | ✅ | "INITIALS" |
| Checkbox | string | ✅ | "CHECKBOX" |
| Date | string | ✅ | "DATE" |
# Webhook
**Properties**
| Name | Type | Required | Description |
| :------ | :----------- | :------- | :------------------------------- |
| Id | string | ❌ | Unique identifier of the webhook |
| Event\_ | WebhookEvent | ❌ | Event of the webhook |
| Target | string | ❌ | Target URL of the webhook |
# RenameTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| Name | string | ✅ | Name of the template |
# ListTemplatesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :-------------- | :------- | :------------------------------- |
| HasNextPage | bool | ❌ | Whether there is a next page |
| HasPreviousPage | bool | ❌ | Whether there is a previous page |
| Templates | List\ | ❌ | |
# EnvelopeAttachments
**Properties**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------- | :------- | :---------- |
| Settings | AttachmentSettings | ❌ | |
| Recipients | List\ | ❌ | |
# RecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :------------------- |
| Signer | string | ✅ | "SIGNER" |
| ReceivesCopy | string | ✅ | "RECEIVES\_COPY" |
| InPersonSigner | string | ✅ | "IN\_PERSON\_SIGNER" |
# Annotation
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| Id | string | ❌ | Unique identifier of the annotation |
| RecipientId | string | ❌ | ID of the recipient |
| DocumentId | string | ❌ | ID of the document |
| Page | long | ❌ | Page number where the annotation is placed |
| X | double | ❌ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| Y | double | ❌ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| Width | double | ❌ | Width of the annotation (in % of the page width from 0 to 100) |
| Height | double | ❌ | Height of the annotation (in % of the page height from 0 to 100) |
| Required | bool | ❌ | Whether the annotation is required |
| Type\_ | AnnotationType | ❌ | Type of the annotation |
| Signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| Initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| Text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| Datetime | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| Checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# DynamicField
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :------------------------- |
| Name | string | ❌ | Name of the dynamic field |
| Value | string | ❌ | Value of the dynamic field |
# AnnotationDateTimeFormat
Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces)
**Properties**
| Name | Type | Required | Description |
| :------------------ | :----- | :------- | :-------------------------- |
| DmyNumericSlash | string | ✅ | "DMY\_NUMERIC\_SLASH" |
| MdyNumericSlash | string | ✅ | "MDY\_NUMERIC\_SLASH" |
| YmdNumericSlash | string | ✅ | "YMD\_NUMERIC\_SLASH" |
| DmyNumericDashShort | string | ✅ | "DMY\_NUMERIC\_DASH\_SHORT" |
| DmyNumericDash | string | ✅ | "DMY\_NUMERIC\_DASH" |
| YmdNumericDash | string | ✅ | "YMD\_NUMERIC\_DASH" |
| MdyTextDashShort | string | ✅ | "MDY\_TEXT\_DASH\_SHORT" |
| MdyTextSpaceShort | string | ✅ | "MDY\_TEXT\_SPACE\_SHORT" |
| MdyTextSpace | string | ✅ | "MDY\_TEXT\_SPACE" |
# EnvelopeFlowType
Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :------------------- |
| RequestSignature | string | ✅ | "REQUEST\_SIGNATURE" |
| SignMyself | string | ✅ | "SIGN\_MYSELF" |
# EnvelopeLegalityLevel
Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes)
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :------------ |
| Ses | string | ✅ | "SES" |
| QesEidas | string | ✅ | "QES\_EIDAS" |
| QesZertes | string | ✅ | "QES\_ZERTES" |
# TemplateRecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :------------- | :----- | :------- | :------------------- |
| Signer | string | ✅ | "SIGNER" |
| ReceivesCopy | string | ✅ | "RECEIVES\_COPY" |
| InPersonSigner | string | ✅ | "IN\_PERSON\_SIGNER" |
| Sender | string | ✅ | "SENDER" |
# AttachmentPlaceholderRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :--------------------------------------------- |
| RecipientId | string | ✅ | ID of the recipient |
| Name | string | ✅ | |
| Required | bool | ✅ | Whether the attachment placeholder is required |
| Multiple | bool | ✅ | |
| Id | string | ❌ | ID of the attachment placeholder |
| Hint | string | ❌ | Hint of the attachment placeholder |
# SetEnvelopeDynamicFieldsRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :------------------ | :------- | :--------------------- |
| DynamicFields | List\ | ✅ | List of dynamic fields |
# Page
**Properties**
| Name | Type | Required | Description |
| :----- | :--- | :------- | :--------------------------- |
| Width | long | ❌ | Width of the page in pixels |
| Height | long | ❌ | Height of the page in pixels |
# TemplateSigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------------------- | :------- | :----------------- |
| Recipients | List\ | ❌ | List of recipients |
# AttachmentPlaceholdersPerRecipient
**Properties**
| Name | Type | Required | Description |
| :------------ | :--------------------------- | :------- | :-------------------- |
| RecipientId | string | ❌ | ID of the recipient |
| RecipientName | string | ❌ | Name of the recipient |
| Placeholders | List\ | ❌ | |
# ListEnvelopesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :-------------- | :------- | :------------------------------- |
| HasNextPage | bool | ❌ | Whether there is a next page |
| HasPreviousPage | bool | ❌ | Whether there is a previous page |
| Envelopes | List\ | ❌ | |
# Recipient
**Properties**
| Name | Type | Required | Description |
| :----------- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name | string | ✅ | Name of the recipient |
| Email | string | ✅ | Email of the recipient |
| Role | RecipientRole | ✅ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
| Id | string | ❌ | Unique identifier of the recipient |
| Uid | string | ❌ | Unique identifier of the user associated with the recipient |
| Verification | RecipientVerification | ❌ | |
# WebhookEvent
Event of the webhook
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :----------------------- |
| EnvelopeExpired | string | ✅ | "ENVELOPE\_EXPIRED" |
| EnvelopeDeclined | string | ✅ | "ENVELOPE\_DECLINED" |
| EnvelopeVoided | string | ✅ | "ENVELOPE\_VOIDED" |
| EnvelopeCompleted | string | ✅ | "ENVELOPE\_COMPLETED" |
| EnvelopeAuditTrail | string | ✅ | "ENVELOPE\_AUDIT\_TRAIL" |
# CreateWebhookRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----------- | :------- | :------------------------ |
| Event\_ | WebhookEvent | ✅ | Event of the webhook |
| Target | string | ✅ | URL of the webhook target |
# CreateEnvelopeFromTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------------------------------------------- |
| Name | string | ✅ | Name of the envelope |
| Comment | string | ❌ | Comment for the envelope |
| Sandbox | bool | ❌ | Whether the envelope is created in sandbox mode |
# ListTemplateAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------------- | :------- | :---------- |
| Annotations | List\ | ❌ | |
# RenameEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| Name | string | ❌ | Name of the envelope |
# ListTemplateDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :---------------- | :------- | :---------- |
| Annotations | List\ | ❌ | |
# ListEnvelopeDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :-------------- | :------- | :---------- |
| Documents | List\ | ❌ | |
# ListWebhooksResponse
**Properties**
| Name | Type | Required | Description |
| :------- | :------------- | :------- | :---------- |
| Webhooks | List\ | ❌ | |
# AnnotationSignature
Signature annotation (null if annotation is not a signature)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :-------------------------------------------- |
| Id | string | ❌ | Unique identifier of the annotation signature |
# Install
Source: https://apidoc.sign.plus/backend-sdks/typescript/install
Install the Signplus Typescript SDK package
```bash theme={null}
npm install @alohi/signplus-typescript
```
Call your first SDK method
```typescript theme={null}
import { CreateEnvelopeRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const envelopeFlowType = EnvelopeFlowType.REQUESTSIGNATURE;
const envelopeLegalityLevel = EnvelopeLegalityLevel.SES;
const input: CreateEnvelopeRequest = {
name: 'name',
flowType: envelopeFlowType,
legalityLevel: envelopeLegalityLevel,
expiresAt: 1822567389015,
comment: 'comment',
sandbox: true,
};
const { data } = await signplus.signplus.createEnvelope(input);
console.log(data);
})();
```
# Sdk reference
Source: https://apidoc.sign.plus/backend-sdks/typescript/sdk-reference
A list of all methods in the `SignplusService` service. Click on the method name to view detailed information about that method.
| Methods | Description |
| :------------------------------------------------------------------------ | :-------------------------------------------------------------- |
| [createEnvelope](#createenvelope) | Create new envelope |
| [createEnvelopeFromTemplate](#createenvelopefromtemplate) | Create new envelope from template |
| [listEnvelopes](#listenvelopes) | List envelopes |
| [getEnvelope](#getenvelope) | Get envelope |
| [deleteEnvelope](#deleteenvelope) | Delete envelope |
| [downloadEnvelopeSignedDocuments](#downloadenvelopesigneddocuments) | Download signed documents for an envelope |
| [downloadEnvelopeCertificate](#downloadenvelopecertificate) | Download certificate of completion for an envelope |
| [getEnvelopeDocument](#getenvelopedocument) | Get envelope document |
| [getEnvelopeDocuments](#getenvelopedocuments) | Get envelope documents |
| [addEnvelopeDocument](#addenvelopedocument) | Add envelope document |
| [setEnvelopeDynamicFields](#setenvelopedynamicfields) | Set envelope dynamic fields |
| [addEnvelopeSigningSteps](#addenvelopesigningsteps) | Add envelope signing steps |
| [setEnvelopeAttachmentsSettings](#setenvelopeattachmentssettings) | Set envelope attachment settings |
| [setEnvelopeAttachmentsPlaceholders](#setenvelopeattachmentsplaceholders) | Placeholders to be set, completely replacing the existing ones. |
| [getAttachmentFile](#getattachmentfile) | Get envelope attachment file |
| [sendEnvelope](#sendenvelope) | Send envelope for signature |
| [duplicateEnvelope](#duplicateenvelope) | Duplicate envelope |
| [voidEnvelope](#voidenvelope) | Void envelope |
| [renameEnvelope](#renameenvelope) | Rename envelope |
| [setEnvelopeComment](#setenvelopecomment) | Set envelope comment |
| [setEnvelopeNotification](#setenvelopenotification) | Set envelope notification |
| [setEnvelopeExpirationDate](#setenvelopeexpirationdate) | Set envelope expiration date |
| [setEnvelopeLegalityLevel](#setenvelopelegalitylevel) | Set envelope legality level |
| [getEnvelopeAnnotations](#getenvelopeannotations) | Get envelope annotations |
| [getEnvelopeDocumentAnnotations](#getenvelopedocumentannotations) | Get envelope document annotations |
| [addEnvelopeAnnotation](#addenvelopeannotation) | Add envelope annotation |
| [deleteEnvelopeAnnotation](#deleteenvelopeannotation) | Delete envelope annotation |
| [createTemplate](#createtemplate) | Create new template |
| [listTemplates](#listtemplates) | List templates |
| [getTemplate](#gettemplate) | Get template |
| [deleteTemplate](#deletetemplate) | Delete template |
| [duplicateTemplate](#duplicatetemplate) | Duplicate template |
| [addTemplateDocument](#addtemplatedocument) | Add template document |
| [getTemplateDocument](#gettemplatedocument) | Get template document |
| [getTemplateDocuments](#gettemplatedocuments) | Get template documents |
| [addTemplateSigningSteps](#addtemplatesigningsteps) | Add template signing steps |
| [renameTemplate](#renametemplate) | Rename template |
| [setTemplateComment](#settemplatecomment) | Set template comment |
| [setTemplateNotification](#settemplatenotification) | Set template notification |
| [getTemplateAnnotations](#gettemplateannotations) | Get template annotations |
| [getDocumentTemplateAnnotations](#getdocumenttemplateannotations) | Get document template annotations |
| [addTemplateAnnotation](#addtemplateannotation) | Add template annotation |
| [deleteTemplateAnnotation](#deletetemplateannotation) | Delete template annotation |
| [setTemplateAttachmentsSettings](#settemplateattachmentssettings) | Set template attachment settings |
| [setTemplateAttachmentsPlaceholders](#settemplateattachmentsplaceholders) | Placeholders to be set, completely replacing the existing ones. |
| [createWebhook](#createwebhook) | Create webhook |
| [listWebhooks](#listwebhooks) | List webhooks |
| [deleteWebhook](#deletewebhook) | Delete webhook |
## createEnvelope
Create new envelope
* HTTP Method: `POST`
* Endpoint: `/envelope`
**Parameters**
| Name | Type | Required | Description |
| :--- | :----------------------------------------------------------------------------- | :------- | :---------------- |
| body | [CreateEnvelopeRequest](/api-reference/endpoints/signplus/create-new-envelope) | ✅ | The request body. |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { CreateEnvelopeRequest, EnvelopeLegalityLevel, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const envelopeLegalityLevel = EnvelopeLegalityLevel.SES;
const createEnvelopeRequest: CreateEnvelopeRequest = {
name: 'name',
legalityLevel: envelopeLegalityLevel,
expiresAt: 8,
comment: 'comment',
sandbox: true,
};
const { data } = await signplus.signplus.createEnvelope(createEnvelopeRequest);
console.log(data);
})();
```
## createEnvelopeFromTemplate
Create new envelope from template
* HTTP Method: `POST`
* Endpoint: `/envelope/from_template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [CreateEnvelopeFromTemplateRequest](/api-reference/endpoints/signplus/create-new-envelope-from-template) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { CreateEnvelopeFromTemplateRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const createEnvelopeFromTemplateRequest: CreateEnvelopeFromTemplateRequest = {
name: 'name',
comment: 'comment',
sandbox: true,
};
const { data } = await signplus.signplus.createEnvelopeFromTemplate('template_id', createEnvelopeFromTemplateRequest);
console.log(data);
})();
```
## listEnvelopes
List envelopes
* HTTP Method: `POST`
* Endpoint: `/envelopes`
**Parameters**
| Name | Type | Required | Description |
| :--- | :----------------------------------------------------------------------- | :------- | :---------------- |
| body | [ListEnvelopesRequest](/api-reference/endpoints/signplus/list-envelopes) | ❌ | The request body. |
**Return Type**
`ListEnvelopesResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { EnvelopeOrderField, EnvelopeStatus, ListEnvelopesRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const envelopeStatus = EnvelopeStatus.DRAFT;
const envelopeOrderField = EnvelopeOrderField.CREATION_DATE;
const listEnvelopesRequest: ListEnvelopesRequest = {
name: 'name',
tags: ['tags'],
comment: 'comment',
ids: ['ids'],
statuses: [envelopeStatus],
folderIds: ['folder_ids'],
onlyRootFolder: true,
dateFrom: 5,
dateTo: 9,
uid: 'uid',
first: 9,
last: 7,
after: 'after',
before: 'before',
orderField: envelopeOrderField,
ascending: true,
includeTrash: true,
};
const { data } = await signplus.signplus.listEnvelopes(listEnvelopesRequest);
console.log(data);
})();
```
## getEnvelope
Get envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getEnvelope('envelope_id');
console.log(data);
})();
```
## deleteEnvelope
Delete envelope
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.deleteEnvelope('envelope_id');
console.log(data);
})();
```
## downloadEnvelopeSignedDocuments
Download signed documents for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/signed_documents`
**Parameters**
| Name | Type | Required | Description |
| :---------------------- | :------ | :------- | :---------------------------------------------------------------------- |
| envelopeId | string | ✅ | ID of the envelope |
| certificateOfCompletion | boolean | ❌ | Whether to include the certificate of completion in the downloaded file |
**Return Type**
`ArrayBuffer`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.downloadEnvelopeSignedDocuments('envelope_id', {
certificateOfCompletion: true,
});
console.log(data);
})();
```
## downloadEnvelopeCertificate
Download certificate of completion for an envelope
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/certificate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`ArrayBuffer`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.downloadEnvelopeCertificate('envelope_id');
console.log(data);
})();
```
## getEnvelopeDocument
Get envelope document
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
| documentId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getEnvelopeDocument('envelope_id', 'document_id');
console.log(data);
})();
```
## getEnvelopeDocuments
Get envelope documents
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`ListEnvelopeDocumentsResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getEnvelopeDocuments('envelope_id');
console.log(data);
})();
```
## addEnvelopeDocument
Add envelope document
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------------------ | :------- | :---------------- |
| body | [AddEnvelopeDocumentRequest](/api-reference/endpoints/signplus/add-envelope-document) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```typescript theme={null}
import { AddEnvelopeDocumentRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const addEnvelopeDocumentRequest: AddEnvelopeDocumentRequest = {
file: new ArrayBuffer(0),
};
const { data } = await signplus.signplus.addEnvelopeDocument('envelope_id', addEnvelopeDocumentRequest);
console.log(data);
})();
```
## setEnvelopeDynamicFields
Set envelope dynamic fields
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/dynamic_fields`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetEnvelopeDynamicFieldsRequest](/api-reference/endpoints/signplus/set-envelope-dynamic-fields) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { DynamicField, SetEnvelopeDynamicFieldsRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const dynamicField: DynamicField = {
name: 'name',
value: 'value',
};
const setEnvelopeDynamicFieldsRequest: SetEnvelopeDynamicFieldsRequest = {
dynamicFields: [dynamicField],
};
const { data } = await signplus.signplus.setEnvelopeDynamicFields('envelope_id', setEnvelopeDynamicFieldsRequest);
console.log(data);
})();
```
## addEnvelopeSigningSteps
Add envelope signing steps
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :--------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [AddEnvelopeSigningStepsRequest](/api-reference/endpoints/signplus/add-envelope-signing-steps) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { AddEnvelopeSigningStepsRequest, SigningStep, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const recipientRole = RecipientRole.SIGNER;
const recipientVerificationType = RecipientVerificationType.SMS;
const recipientVerification: RecipientVerification = {
type: recipientVerificationType,
value: 'value',
};
const recipient: Recipient = {
id: 'id',
uid: 'uid',
name: 'name',
email: 'email',
role: recipientRole,
verification: recipientVerification,
};
const signingStep: SigningStep = {
recipients: [recipient],
};
const addEnvelopeSigningStepsRequest: AddEnvelopeSigningStepsRequest = {
signingSteps: [signingStep],
};
const { data } = await signplus.signplus.addEnvelopeSigningSteps('envelope_id', addEnvelopeSigningStepsRequest);
console.log(data);
})();
```
## setEnvelopeAttachmentsSettings
Set envelope attachment settings
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetEnvelopeAttachmentsSettingsRequest](/api-reference/endpoints/signplus/set-envelope-attachment-settings) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```typescript theme={null}
import { AttachmentSettings, SetEnvelopeAttachmentsSettingsRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const attachmentSettings: AttachmentSettings = {
visibleToRecipients: true,
};
const setEnvelopeAttachmentsSettingsRequest: SetEnvelopeAttachmentsSettingsRequest = {
settings: attachmentSettings,
};
const { data } = await signplus.signplus.setEnvelopeAttachmentsSettings(
'envelope_id',
setEnvelopeAttachmentsSettingsRequest,
);
console.log(data);
})();
```
## setEnvelopeAttachmentsPlaceholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------------------------------------------------ | :------- | :---------------- |
| body | [SetEnvelopeAttachmentsPlaceholdersRequest](/api-reference/endpoints/signplus/set-envelope-attachment-placeholders) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```typescript theme={null}
import {
AttachmentPlaceholderRequest1,
SetEnvelopeAttachmentsPlaceholdersRequest,
Signplus,
} from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const attachmentPlaceholderRequest1: AttachmentPlaceholderRequest1 = {
recipientId: 'recipient_id',
id: 'id',
name: 'name',
hint: 'hint',
required: true,
multiple: true,
};
const setEnvelopeAttachmentsPlaceholdersRequest: SetEnvelopeAttachmentsPlaceholdersRequest = {
placeholders: [attachmentPlaceholderRequest1],
};
const { data } = await signplus.signplus.setEnvelopeAttachmentsPlaceholders(
'envelope_id',
setEnvelopeAttachmentsPlaceholdersRequest,
);
console.log(data);
})();
```
## getAttachmentFile
Get envelope attachment file
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/attachments/{file_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
| fileId | string | ✅ | |
**Return Type**
`ArrayBuffer`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getAttachmentFile('envelope_id', 'file_id');
console.log(data);
})();
```
## sendEnvelope
Send envelope for signature
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/send`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.sendEnvelope('envelope_id');
console.log(data);
})();
```
## duplicateEnvelope
Duplicate envelope
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.duplicateEnvelope('envelope_id');
console.log(data);
})();
```
## voidEnvelope
Void envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/void`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.voidEnvelope('envelope_id');
console.log(data);
})();
```
## renameEnvelope
Rename envelope
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------- | :------- | :---------------- |
| body | [RenameEnvelopeRequest](/api-reference/endpoints/signplus/rename-envelope) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { RenameEnvelopeRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const renameEnvelopeRequest: RenameEnvelopeRequest = {
name: 'name',
};
const { data } = await signplus.signplus.renameEnvelope('envelope_id', renameEnvelopeRequest);
console.log(data);
})();
```
## setEnvelopeComment
Set envelope comment
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetEnvelopeCommentRequest](/api-reference/endpoints/signplus/set-envelope-comment) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { SetEnvelopeCommentRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const setEnvelopeCommentRequest: SetEnvelopeCommentRequest = {
comment: 'comment',
};
const { data } = await signplus.signplus.setEnvelopeComment('envelope_id', setEnvelopeCommentRequest);
console.log(data);
})();
```
## setEnvelopeNotification
Set envelope notification
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [EnvelopeNotification](/api-reference/endpoints/signplus/set-envelope-notification) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { EnvelopeNotification, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const envelopeNotification: EnvelopeNotification = {
subject: 'subject',
message: 'message',
reminderInterval: 1,
};
const { data } = await signplus.signplus.setEnvelopeNotification('envelope_id', envelopeNotification);
console.log(data);
})();
```
## setEnvelopeExpirationDate
Set envelope expiration date
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_expiration_date`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :--------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetEnvelopeExpirationRequest](/api-reference/endpoints/signplus/set-envelope-expiration-date) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { SetEnvelopeExpirationRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const setEnvelopeExpirationRequest: SetEnvelopeExpirationRequest = {
expiresAt: 123,
};
const { data } = await signplus.signplus.setEnvelopeExpirationDate('envelope_id', setEnvelopeExpirationRequest);
console.log(data);
})();
```
## setEnvelopeLegalityLevel
Set envelope legality level
* HTTP Method: `PUT`
* Endpoint: `/envelope/{envelope_id}/set_legality_level`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetEnvelopeLegalityLevelRequest](/api-reference/endpoints/signplus/set-envelope-legality-level) | ✅ | The request body. |
| envelopeId | string | ✅ | |
**Return Type**
`Envelope`
**Example Usage Code Snippet**
```typescript theme={null}
import { EnvelopeLegalityLevel, SetEnvelopeLegalityLevelRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const envelopeLegalityLevel = EnvelopeLegalityLevel.SES;
const setEnvelopeLegalityLevelRequest: SetEnvelopeLegalityLevelRequest = {
legalityLevel: envelopeLegalityLevel,
};
const { data } = await signplus.signplus.setEnvelopeLegalityLevel('envelope_id', setEnvelopeLegalityLevelRequest);
console.log(data);
})();
```
## getEnvelopeAnnotations
Get envelope annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`Annotation[]`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getEnvelopeAnnotations('envelope_id');
console.log(data);
})();
```
## getEnvelopeDocumentAnnotations
Get envelope document annotations
* HTTP Method: `GET`
* Endpoint: `/envelope/{envelope_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| envelopeId | string | ✅ | ID of the envelope |
| documentId | string | ✅ | ID of document |
**Return Type**
`ListEnvelopeDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getEnvelopeDocumentAnnotations('envelope_id', 'document_id');
console.log(data);
})();
```
## addEnvelopeAnnotation
Add envelope annotation
* HTTP Method: `POST`
* Endpoint: `/envelope/{envelope_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :-------------------------------------------------------------------------------- | :------- | :----------------- |
| body | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | The request body. |
| envelopeId | string | ✅ | ID of the envelope |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```typescript theme={null}
import {
AddAnnotationRequest,
AnnotationCheckbox,
AnnotationDateTime,
AnnotationInitials,
AnnotationSignature,
AnnotationText,
AnnotationType,
Signplus,
} from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const annotationType = AnnotationType.TEXT;
const annotationSignature: AnnotationSignature = {
id: 'id',
};
const annotationInitials: AnnotationInitials = {
id: 'id',
};
const annotationFontFamily = AnnotationFontFamily.UNKNOWN;
const annotationFont: AnnotationFont = {
family: annotationFontFamily,
italic: true,
bold: true,
};
const annotationText: AnnotationText = {
size: 5.96,
color: 8.73,
value: 'value',
tooltip: 'tooltip',
dynamicFieldName: 'dynamic_field_name',
font: annotationFont,
};
const annotationDateTimeFormat = AnnotationDateTimeFormat.DMY_NUMERIC_SLASH;
const annotationDateTime: AnnotationDateTime = {
size: 0.26,
font: annotationFont,
color: 'color',
autoFill: true,
timezone: 'timezone',
timestamp: 1,
format: annotationDateTimeFormat,
};
const annotationCheckboxStyle = AnnotationCheckboxStyle.CIRCLE_CHECK;
const annotationCheckbox: AnnotationCheckbox = {
checked: true,
style: annotationCheckboxStyle,
};
const addAnnotationRequest: AddAnnotationRequest = {
recipientId: 'recipient_id',
documentId: 'document_id',
page: 2,
x: 1.99,
y: 8.2,
width: 4.89,
height: 9.43,
required: true,
type: annotationType,
signature: annotationSignature,
initials: annotationInitials,
text: annotationText,
datetime: annotationDateTime,
checkbox: annotationCheckbox,
};
const { data } = await signplus.signplus.addEnvelopeAnnotation('envelope_id', addAnnotationRequest);
console.log(data);
})();
```
## deleteEnvelopeAnnotation
Delete envelope annotation
* HTTP Method: `DELETE`
* Endpoint: `/envelope/{envelope_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------------------- |
| envelopeId | string | ✅ | ID of the envelope |
| annotationId | string | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.deleteEnvelopeAnnotation('envelope_id', 'annotation_id');
console.log(data);
})();
```
## createTemplate
Create new template
* HTTP Method: `POST`
* Endpoint: `/template`
**Parameters**
| Name | Type | Required | Description |
| :--- | :----------------------------------------------------------------------------- | :------- | :---------------- |
| body | [CreateTemplateRequest](/api-reference/endpoints/signplus/create-new-template) | ✅ | The request body. |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { CreateTemplateRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const createTemplateRequest: CreateTemplateRequest = {
name: 'name',
};
const { data } = await signplus.signplus.createTemplate(createTemplateRequest);
console.log(data);
})();
```
## listTemplates
List templates
* HTTP Method: `POST`
* Endpoint: `/templates`
**Parameters**
| Name | Type | Required | Description |
| :--- | :----------------------------------------------------------------------- | :------- | :---------------- |
| body | [ListTemplatesRequest](/api-reference/endpoints/signplus/list-templates) | ❌ | The request body. |
**Return Type**
`ListTemplatesResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { ListTemplatesRequest, Signplus, TemplateOrderField } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const templateOrderField = TemplateOrderField.TEMPLATE_ID;
const listTemplatesRequest: ListTemplatesRequest = {
name: 'name',
tags: ['tags'],
ids: ['ids'],
first: 1,
last: 6,
after: 'after',
before: 'before',
orderField: templateOrderField,
ascending: true,
};
const { data } = await signplus.signplus.listTemplates(listTemplatesRequest);
console.log(data);
})();
```
## getTemplate
Get template
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getTemplate('template_id');
console.log(data);
})();
```
## deleteTemplate
Delete template
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.deleteTemplate('template_id');
console.log(data);
})();
```
## duplicateTemplate
Duplicate template
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/duplicate`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.duplicateTemplate('template_id');
console.log(data);
})();
```
## addTemplateDocument
Add template document
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/document`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------------------ | :------- | :---------------- |
| body | [AddTemplateDocumentRequest](/api-reference/endpoints/signplus/add-template-document) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```typescript theme={null}
import { AddTemplateDocumentRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const addTemplateDocumentRequest: AddTemplateDocumentRequest = {
file: new ArrayBuffer(0),
};
const { data } = await signplus.signplus.addTemplateDocument('template_id', addTemplateDocumentRequest);
console.log(data);
})();
```
## getTemplateDocument
Get template document
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/document/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
| documentId | string | ✅ | |
**Return Type**
`Document`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getTemplateDocument('template_id', 'document_id');
console.log(data);
})();
```
## getTemplateDocuments
Get template documents
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/documents`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :---------- |
| templateId | string | ✅ | |
**Return Type**
`ListTemplateDocumentsResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getTemplateDocuments('template_id');
console.log(data);
})();
```
## addTemplateSigningSteps
Add template signing steps
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/signing_steps`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :--------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [AddTemplateSigningStepsRequest](/api-reference/endpoints/signplus/add-template-signing-steps) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { AddTemplateSigningStepsRequest, Signplus, TemplateSigningStep } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const templateRecipientRole = TemplateRecipientRole.SIGNER;
const templateRecipient: TemplateRecipient = {
id: 'id',
uid: 'uid',
name: 'name',
email: 'email',
role: templateRecipientRole,
};
const templateSigningStep: TemplateSigningStep = {
recipients: [templateRecipient],
};
const addTemplateSigningStepsRequest: AddTemplateSigningStepsRequest = {
signingSteps: [templateSigningStep],
};
const { data } = await signplus.signplus.addTemplateSigningSteps('template_id', addTemplateSigningStepsRequest);
console.log(data);
})();
```
## renameTemplate
Rename template
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/rename`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------- | :------- | :---------------- |
| body | [RenameTemplateRequest](/api-reference/endpoints/signplus/rename-template) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { RenameTemplateRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const renameTemplateRequest: RenameTemplateRequest = {
name: 'name',
};
const { data } = await signplus.signplus.renameTemplate('template_id', renameTemplateRequest);
console.log(data);
})();
```
## setTemplateComment
Set template comment
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_comment`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetTemplateCommentRequest](/api-reference/endpoints/signplus/set-template-comment) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { SetTemplateCommentRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const setTemplateCommentRequest: SetTemplateCommentRequest = {
comment: 'comment',
};
const { data } = await signplus.signplus.setTemplateComment('template_id', setTemplateCommentRequest);
console.log(data);
})();
```
## setTemplateNotification
Set template notification
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/set_notification`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [EnvelopeNotification](/api-reference/endpoints/signplus/set-envelope-notification) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`Template`
**Example Usage Code Snippet**
```typescript theme={null}
import { EnvelopeNotification, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const envelopeNotification: EnvelopeNotification = {
subject: 'subject',
message: 'message',
reminderInterval: 1,
};
const { data } = await signplus.signplus.setTemplateNotification('template_id', envelopeNotification);
console.log(data);
})();
```
## getTemplateAnnotations
Get template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| templateId | string | ✅ | ID of the template |
**Return Type**
`ListTemplateAnnotationsResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getTemplateAnnotations('template_id');
console.log(data);
})();
```
## getDocumentTemplateAnnotations
Get document template annotations
* HTTP Method: `GET`
* Endpoint: `/template/{template_id}/annotations/{document_id}`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :----- | :------- | :----------------- |
| templateId | string | ✅ | ID of the template |
| documentId | string | ✅ | ID of document |
**Return Type**
`ListTemplateDocumentAnnotationsResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.getDocumentTemplateAnnotations('template_id', 'document_id');
console.log(data);
})();
```
## addTemplateAnnotation
Add template annotation
* HTTP Method: `POST`
* Endpoint: `/template/{template_id}/annotation`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :-------------------------------------------------------------------------------- | :------- | :----------------- |
| body | [AddAnnotationRequest](/api-reference/endpoints/signplus/add-envelope-annotation) | ✅ | The request body. |
| templateId | string | ✅ | ID of the template |
**Return Type**
`Annotation`
**Example Usage Code Snippet**
```typescript theme={null}
import {
AddAnnotationRequest,
AnnotationCheckbox,
AnnotationDateTime,
AnnotationInitials,
AnnotationSignature,
AnnotationText,
AnnotationType,
Signplus,
} from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const annotationType = AnnotationType.TEXT;
const annotationSignature: AnnotationSignature = {
id: 'id',
};
const annotationInitials: AnnotationInitials = {
id: 'id',
};
const annotationFontFamily = AnnotationFontFamily.UNKNOWN;
const annotationFont: AnnotationFont = {
family: annotationFontFamily,
italic: true,
bold: true,
};
const annotationText: AnnotationText = {
size: 5.96,
color: 8.73,
value: 'value',
tooltip: 'tooltip',
dynamicFieldName: 'dynamic_field_name',
font: annotationFont,
};
const annotationDateTimeFormat = AnnotationDateTimeFormat.DMY_NUMERIC_SLASH;
const annotationDateTime: AnnotationDateTime = {
size: 0.26,
font: annotationFont,
color: 'color',
autoFill: true,
timezone: 'timezone',
timestamp: 1,
format: annotationDateTimeFormat,
};
const annotationCheckboxStyle = AnnotationCheckboxStyle.CIRCLE_CHECK;
const annotationCheckbox: AnnotationCheckbox = {
checked: true,
style: annotationCheckboxStyle,
};
const addAnnotationRequest: AddAnnotationRequest = {
recipientId: 'recipient_id',
documentId: 'document_id',
page: 2,
x: 1.99,
y: 8.2,
width: 4.89,
height: 9.43,
required: true,
type: annotationType,
signature: annotationSignature,
initials: annotationInitials,
text: annotationText,
datetime: annotationDateTime,
checkbox: annotationCheckbox,
};
const { data } = await signplus.signplus.addTemplateAnnotation('template_id', addAnnotationRequest);
console.log(data);
})();
```
## deleteTemplateAnnotation
Delete template annotation
* HTTP Method: `DELETE`
* Endpoint: `/template/{template_id}/annotation/{annotation_id}`
**Parameters**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :----------------------------- |
| templateId | string | ✅ | ID of the template |
| annotationId | string | ✅ | ID of the annotation to delete |
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.deleteTemplateAnnotation('template_id', 'annotation_id');
console.log(data);
})();
```
## setTemplateAttachmentsSettings
Set template attachment settings
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/settings`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :---------------------------------------------------------------------------------------------------------- | :------- | :---------------- |
| body | [SetEnvelopeAttachmentsSettingsRequest](/api-reference/endpoints/signplus/set-envelope-attachment-settings) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```typescript theme={null}
import { AttachmentSettings, SetEnvelopeAttachmentsSettingsRequest, Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const attachmentSettings: AttachmentSettings = {
visibleToRecipients: true,
};
const setEnvelopeAttachmentsSettingsRequest: SetEnvelopeAttachmentsSettingsRequest = {
settings: attachmentSettings,
};
const { data } = await signplus.signplus.setTemplateAttachmentsSettings(
'template_id',
setEnvelopeAttachmentsSettingsRequest,
);
console.log(data);
})();
```
## setTemplateAttachmentsPlaceholders
Placeholders to be set, completely replacing the existing ones.
* HTTP Method: `PUT`
* Endpoint: `/template/{template_id}/attachments/placeholders`
**Parameters**
| Name | Type | Required | Description |
| :--------- | :------------------------------------------------------------------------------------------------------------------ | :------- | :---------------- |
| body | [SetEnvelopeAttachmentsPlaceholdersRequest](/api-reference/endpoints/signplus/set-envelope-attachment-placeholders) | ✅ | The request body. |
| templateId | string | ✅ | |
**Return Type**
`EnvelopeAttachments`
**Example Usage Code Snippet**
```typescript theme={null}
import {
AttachmentPlaceholderRequest1,
SetEnvelopeAttachmentsPlaceholdersRequest,
Signplus,
} from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const attachmentPlaceholderRequest1: AttachmentPlaceholderRequest1 = {
recipientId: 'recipient_id',
id: 'id',
name: 'name',
hint: 'hint',
required: true,
multiple: true,
};
const setEnvelopeAttachmentsPlaceholdersRequest: SetEnvelopeAttachmentsPlaceholdersRequest = {
placeholders: [attachmentPlaceholderRequest1],
};
const { data } = await signplus.signplus.setTemplateAttachmentsPlaceholders(
'template_id',
setEnvelopeAttachmentsPlaceholdersRequest,
);
console.log(data);
})();
```
## createWebhook
Create webhook
* HTTP Method: `POST`
* Endpoint: `/webhook`
**Parameters**
| Name | Type | Required | Description |
| :--- | :----------------------------------------------------------------------- | :------- | :---------------- |
| body | [CreateWebhookRequest](/api-reference/endpoints/signplus/create-webhook) | ✅ | The request body. |
**Return Type**
`Webhook`
**Example Usage Code Snippet**
```typescript theme={null}
import { CreateWebhookRequest, Signplus, WebhookEvent } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const webhookEvent = WebhookEvent.ENVELOPE_EXPIRED;
const createWebhookRequest: CreateWebhookRequest = {
event: webhookEvent,
target: 'target',
};
const { data } = await signplus.signplus.createWebhook(createWebhookRequest);
console.log(data);
})();
```
## listWebhooks
List webhooks
* HTTP Method: `POST`
* Endpoint: `/webhooks`
**Parameters**
| Name | Type | Required | Description |
| :--- | :--------------------------------------------------------------------- | :------- | :---------------- |
| body | [ListWebhooksRequest](/api-reference/endpoints/signplus/list-webhooks) | ❌ | The request body. |
**Return Type**
`ListWebhooksResponse`
**Example Usage Code Snippet**
```typescript theme={null}
import { ListWebhooksRequest, Signplus, WebhookEvent } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const webhookEvent = WebhookEvent.ENVELOPE_EXPIRED;
const listWebhooksRequest: ListWebhooksRequest = {
webhookId: 'webhook_id',
event: webhookEvent,
};
const { data } = await signplus.signplus.listWebhooks(listWebhooksRequest);
console.log(data);
})();
```
## deleteWebhook
Delete webhook
* HTTP Method: `DELETE`
* Endpoint: `/webhook/{webhook_id}`
**Parameters**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| webhookId | string | ✅ | |
**Example Usage Code Snippet**
```typescript theme={null}
import { Signplus } from '@alohi/signplus-typescript';
(async () => {
const signplus = new Signplus({
token: 'YOUR_TOKEN',
});
const { data } = await signplus.signplus.deleteWebhook('webhook_id');
console.log(data);
})();
```
# Models
# SetEnvelopeAttachmentsPlaceholdersRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :------------------------------- | :------- | :---------- |
| placeholders | AttachmentPlaceholderRequest1\[] | ✅ | |
# Document
**Properties**
| Name | Type | Required | Description |
| :-------- | :------ | :------- | :-------------------------------- |
| id | string | ❌ | Unique identifier of the document |
| name | string | ❌ | Name of the document |
| filename | string | ❌ | Filename of the document |
| pageCount | number | ❌ | Number of pages in the document |
| pages | Page\[] | ❌ | List of pages in the document |
# CreateEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name | string | ✅ | Name of the envelope |
| legalityLevel | EnvelopeLegalityLevel | ✅ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| expiresAt | number | ❌ | Unix timestamp of the expiration date |
| comment | string | ❌ | Comment for the envelope |
| sandbox | boolean | ❌ | Whether the envelope is created in sandbox mode |
# ListEnvelopesRequest
**Properties**
| Name | Type | Required | Description |
| :------------- | :----------------- | :------- | :------------------------------------------------ |
| name | string | ❌ | Name of the envelope |
| tags | string\[] | ❌ | List of tags |
| comment | string | ❌ | Comment of the envelope |
| ids | string\[] | ❌ | List of envelope IDs |
| statuses | EnvelopeStatus\[] | ❌ | List of envelope statuses |
| folderIds | string\[] | ❌ | List of folder IDs |
| onlyRootFolder | boolean | ❌ | Whether to only list envelopes in the root folder |
| dateFrom | number | ❌ | Unix timestamp of the start date |
| dateTo | number | ❌ | Unix timestamp of the end date |
| uid | string | ❌ | Unique identifier of the user |
| first | number | ❌ | |
| last | number | ❌ | |
| after | string | ❌ | |
| before | string | ❌ | |
| orderField | EnvelopeOrderField | ❌ | Field to order envelopes by |
| ascending | boolean | ❌ | Whether to order envelopes in ascending order |
| includeTrash | boolean | ❌ | Whether to include envelopes in the trash |
# AttachmentPlaceholder
**Properties**
| Name | Type | Required | Description |
| :---------- | :--------------------------- | :------- | :--------------------------------------------------------- |
| recipientId | string | ❌ | ID of the recipient |
| id | string | ❌ | ID of the attachment placeholder |
| name | string | ❌ | Name of the attachment placeholder |
| hint | string | ❌ | Hint of the attachment placeholder |
| required | boolean | ❌ | Whether the attachment placeholder is required |
| multiple | boolean | ❌ | Whether the attachment placeholder can have multiple files |
| files | AttachmentPlaceholderFile\[] | ❌ | |
# SetEnvelopeAttachmentsSettingsRequest
**Properties**
| Name | Type | Required | Description |
| :------- | :----------------- | :------- | :---------- |
| settings | AttachmentSettings | ✅ | |
# EnvelopeNotification
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :-------------------------------- |
| subject | string | ❌ | Subject of the notification |
| message | string | ❌ | Message of the notification |
| reminderInterval | number | ❌ | Interval in days to send reminder |
# ListTemplatesRequest
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------------- | :------- | :-------------------------------------------- |
| name | string | ❌ | Name of the template |
| tags | string\[] | ❌ | List of tag templates |
| ids | string\[] | ❌ | List of templates IDs |
| first | number | ❌ | |
| last | number | ❌ | |
| after | string | ❌ | |
| before | string | ❌ | |
| orderField | TemplateOrderField | ❌ | Field to order templates by |
| ascending | boolean | ❌ | Whether to order templates in ascending order |
# SetTemplateCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| comment | string | ✅ | Comment for the template |
# Template
**Properties**
| Name | Type | Required | Description |
| :-------------- | :--------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id | string | ❌ | Unique identifier of the template |
| name | string | ❌ | Name of the template |
| comment | string | ❌ | Comment for the template |
| pages | number | ❌ | Total number of pages in the template |
| legalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| createdAt | number | ❌ | Unix timestamp of the creation date |
| updatedAt | number | ❌ | Unix timestamp of the last modification date |
| expirationDelay | number | ❌ | Expiration delay added to the current time when an envelope is created from this template |
| numRecipients | number | ❌ | Number of recipients in the envelope |
| signingSteps | TemplateSigningStep\[] | ❌ | |
| documents | Document\[] | ❌ | |
| notification | EnvelopeNotification | ❌ | |
| dynamicFields | string\[] | ❌ | List of dynamic fields |
| attachments | EnvelopeAttachments | ❌ | |
# RecipientVerificationType
Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check.
**Properties**
| Name | Type | Required | Description |
| :--------------- | :----- | :------- | :----------------- |
| SMS | string | ✅ | "SMS" |
| PASSCODE | string | ✅ | "PASSCODE" |
| ID\_VERIFICATION | string | ✅ | "ID\_VERIFICATION" |
# AddEnvelopeSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :------------- | :------- | :-------------------- |
| signingSteps | SigningStep\[] | ❌ | List of signing steps |
# AnnotationFontFamily
Font family of the text
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :---------- |
| UNKNOWN | string | ✅ | "UNKNOWN" |
| SERIF | string | ✅ | "SERIF" |
| SANS | string | ✅ | "SANS" |
| MONO | string | ✅ | "MONO" |
# AddTemplateSigningStepsRequest
**Properties**
| Name | Type | Required | Description |
| :----------- | :--------------------- | :------- | :-------------------- |
| signingSteps | TemplateSigningStep\[] | ✅ | List of signing steps |
# SetEnvelopeCommentRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :----- | :------- | :----------------------- |
| comment | string | ✅ | Comment for the envelope |
# TemplateOrderField
Field to order templates by
**Properties**
| Name | Type | Required | Description |
| :--------------------------- | :----- | :------- | :----------------------------- |
| TEMPLATE\_ID | string | ✅ | "TEMPLATE\_ID" |
| TEMPLATE\_CREATION\_DATE | string | ✅ | "TEMPLATE\_CREATION\_DATE" |
| TEMPLATE\_MODIFICATION\_DATE | string | ✅ | "TEMPLATE\_MODIFICATION\_DATE" |
| TEMPLATE\_NAME | string | ✅ | "TEMPLATE\_NAME" |
# EnvelopeOrderField
Field to order envelopes by
**Properties**
| Name | Type | Required | Description |
| :--------------------- | :----- | :------- | :----------------------- |
| CREATION\_DATE | string | ✅ | "CREATION\_DATE" |
| MODIFICATION\_DATE | string | ✅ | "MODIFICATION\_DATE" |
| NAME | string | ✅ | "NAME" |
| STATUS | string | ✅ | "STATUS" |
| LAST\_DOCUMENT\_CHANGE | string | ✅ | "LAST\_DOCUMENT\_CHANGE" |
# AddEnvelopeDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :---------- | :------- | :------------------------------ |
| file | ArrayBuffer | ❌ | File to upload in binary format |
# ListWebhooksRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------- | :------- | :------------------- |
| webhookId | string | ❌ | ID of the webhook |
| event | WebhookEvent | ❌ | Event of the webhook |
# SetEnvelopeLegalityLevelRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| legalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
# AttachmentPlaceholderFile
**Properties**
| Name | Type | Required | Description |
| :------- | :----- | :------- | :------------------------ |
| id | string | ❌ | ID of the file |
| name | string | ❌ | Name of the file |
| size | number | ❌ | Size of the file in bytes |
| mimetype | string | ❌ | MIME type of the file |
# SetEnvelopeExpirationRequest
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :------------------------------------ |
| expiresAt | number | ✅ | Unix timestamp of the expiration date |
# AnnotationText
Text annotation (null if annotation is not a text)
**Properties**
| Name | Type | Required | Description |
| :--------------- | :------------- | :------- | :--------------------------------- |
| size | number | ❌ | Font size of the text in pt |
| color | number | ❌ | Text color in 32bit representation |
| value | string | ❌ | Text content of the annotation |
| tooltip | string | ❌ | Tooltip of the annotation |
| dynamicFieldName | string | ❌ | Name of the dynamic field |
| font | AnnotationFont | ❌ | |
# AnnotationCheckbox
Checkbox annotation (null if annotation is not a checkbox)
**Properties**
| Name | Type | Required | Description |
| :------ | :---------------------- | :------- | :------------------------------ |
| checked | boolean | ❌ | Whether the checkbox is checked |
| style | AnnotationCheckboxStyle | ❌ | Style of the checkbox |
# Envelope
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id | string | ❌ | Unique identifier of the envelope |
| name | string | ❌ | Name of the envelope |
| comment | string | ❌ | Comment for the envelope |
| pages | number | ❌ | Total number of pages in the envelope |
| flowType | EnvelopeFlowType | ❌ | Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow) |
| legalityLevel | EnvelopeLegalityLevel | ❌ | Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes) |
| status | EnvelopeStatus | ❌ | Status of the envelope |
| createdAt | number | ❌ | Unix timestamp of the creation date |
| updatedAt | number | ❌ | Unix timestamp of the last modification date |
| expiresAt | number | ❌ | Unix timestamp of the expiration date |
| numRecipients | number | ❌ | Number of recipients in the envelope |
| isDuplicable | boolean | ❌ | Whether the envelope can be duplicated |
| signingSteps | SigningStep\[] | ❌ | |
| documents | Document\[] | ❌ | |
| notification | EnvelopeNotification | ❌ | |
| attachments | EnvelopeAttachments | ❌ | |
# AddTemplateDocumentRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :---------- | :------- | :------------------------------ |
| file | ArrayBuffer | ✅ | File to upload in binary format |
# TemplateRecipient
**Properties**
| Name | Type | Required | Description |
| :---- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id | string | ❌ | Unique identifier of the recipient |
| uid | string | ❌ | Unique identifier of the user associated with the recipient |
| name | string | ❌ | Name of the recipient |
| email | string | ❌ | Email of the recipient |
| role | TemplateRecipientRole | ❌ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
# AddAnnotationRequest
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| documentId | string | ✅ | ID of the document |
| page | number | ✅ | Page number where the annotation is placed |
| x | number | ✅ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | number | ✅ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | number | ✅ | Width of the annotation (in % of the page width from 0 to 100) |
| height | number | ✅ | Height of the annotation (in % of the page height from 0 to 100) |
| type | AnnotationType | ✅ | Type of the annotation |
| recipientId | string | ❌ | ID of the recipient |
| required | boolean | ❌ | |
| signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| datetime | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# ListEnvelopeDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------ | :------- | :---------- |
| annotations | Annotation\[] | ❌ | |
# EnvelopeStatus
Status of the envelope
**Properties**
| Name | Type | Required | Description |
| :----------- | :----- | :------- | :------------- |
| DRAFT | string | ✅ | "DRAFT" |
| IN\_PROGRESS | string | ✅ | "IN\_PROGRESS" |
| COMPLETED | string | ✅ | "COMPLETED" |
| EXPIRED | string | ✅ | "EXPIRED" |
| DECLINED | string | ✅ | "DECLINED" |
| VOIDED | string | ✅ | "VOIDED" |
| PENDING | string | ✅ | "PENDING" |
# RecipientVerification
**Properties**
| Name | Type | Required | Description |
| :---- | :------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | RecipientVerificationType | ❌ | Type of verification the recipient must complete before accessing the envelope. - `PASSCODE`: requires a code to be entered. - `SMS`: sends a code via SMS. - `ID_VERIFICATION`: prompts the recipient to complete an automated ID and selfie check. |
| value | string | ❌ | Required for `PASSCODE` and `SMS` verification. - `PASSCODE`: code required by the recipient to sign the document. - `SMS`: recipient's phone number. - `ID_VERIFICATION`: leave empty. |
# AnnotationCheckboxStyle
Style of the checkbox
**Properties**
| Name | Type | Required | Description |
| :------------ | :----- | :------- | :-------------- |
| CIRCLE\_CHECK | string | ✅ | "CIRCLE\_CHECK" |
| CIRCLE\_FULL | string | ✅ | "CIRCLE\_FULL" |
| SQUARE\_CHECK | string | ✅ | "SQUARE\_CHECK" |
| SQUARE\_FULL | string | ✅ | "SQUARE\_FULL" |
| CHECK\_MARK | string | ✅ | "CHECK\_MARK" |
| TIMES\_SQUARE | string | ✅ | "TIMES\_SQUARE" |
# SigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :----------- | :------- | :----------------- |
| recipients | Recipient\[] | ❌ | List of recipients |
# AnnotationDateTime
Date annotation (null if annotation is not a date)
**Properties**
| Name | Type | Required | Description |
| :-------- | :----------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| size | number | ❌ | Font size of the text in pt |
| font | AnnotationFont | ❌ | |
| color | string | ❌ | Color of the text in hex format |
| autoFill | boolean | ❌ | Whether the date should be automatically filled |
| timezone | string | ❌ | Timezone of the date |
| timestamp | number | ❌ | Unix timestamp of the date |
| format | AnnotationDateTimeFormat | ❌ | Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces) |
# AttachmentSettings
**Properties**
| Name | Type | Required | Description |
| :------------------ | :------ | :------- | :-------------------------------------------------- |
| visibleToRecipients | boolean | ❌ | Whether the attachment is visible to the recipients |
# CreateTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :---------- |
| name | string | ✅ | |
# ListTemplateDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :---------- | :------- | :---------- |
| documents | Document\[] | ❌ | |
# AnnotationInitials
Initials annotation (null if annotation is not initials)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------------------------------- |
| id | string | ❌ | Unique identifier of the annotation initials |
# AnnotationFont
**Properties**
| Name | Type | Required | Description |
| :----- | :------------------- | :------- | :------------------------- |
| family | AnnotationFontFamily | ❌ | Font family of the text |
| italic | boolean | ❌ | Whether the text is italic |
| bold | boolean | ❌ | Whether the text is bold |
# AnnotationType
Type of the annotation
**Properties**
| Name | Type | Required | Description |
| :-------- | :----- | :------- | :---------- |
| TEXT | string | ✅ | "TEXT" |
| SIGNATURE | string | ✅ | "SIGNATURE" |
| INITIALS | string | ✅ | "INITIALS" |
| CHECKBOX | string | ✅ | "CHECKBOX" |
| DATE | string | ✅ | "DATE" |
# Webhook
**Properties**
| Name | Type | Required | Description |
| :----- | :----------- | :------- | :------------------------------- |
| id | string | ❌ | Unique identifier of the webhook |
| event | WebhookEvent | ❌ | Event of the webhook |
| target | string | ❌ | Target URL of the webhook |
# RenameTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| name | string | ✅ | Name of the template |
# ListTemplatesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :---------- | :------- | :------------------------------- |
| hasNextPage | boolean | ❌ | Whether there is a next page |
| hasPreviousPage | boolean | ❌ | Whether there is a previous page |
| templates | Template\[] | ❌ | |
# EnvelopeAttachments
**Properties**
| Name | Type | Required | Description |
| :--------- | :------------------------------------ | :------- | :---------- |
| settings | AttachmentSettings | ❌ | |
| recipients | AttachmentPlaceholdersPerRecipient\[] | ❌ | |
# RecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| SIGNER | string | ✅ | "SIGNER" |
| RECEIVES\_COPY | string | ✅ | "RECEIVES\_COPY" |
| IN\_PERSON\_SIGNER | string | ✅ | "IN\_PERSON\_SIGNER" |
# Annotation
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------------ | :------- | :---------------------------------------------------------------------------------------------- |
| id | string | ❌ | Unique identifier of the annotation |
| recipientId | string | ❌ | ID of the recipient |
| documentId | string | ❌ | ID of the document |
| page | number | ❌ | Page number where the annotation is placed |
| x | number | ❌ | X coordinate of the annotation (in % of the page width from 0 to 100) from the top left corner |
| y | number | ❌ | Y coordinate of the annotation (in % of the page height from 0 to 100) from the top left corner |
| width | number | ❌ | Width of the annotation (in % of the page width from 0 to 100) |
| height | number | ❌ | Height of the annotation (in % of the page height from 0 to 100) |
| required | boolean | ❌ | Whether the annotation is required |
| type | AnnotationType | ❌ | Type of the annotation |
| signature | AnnotationSignature | ❌ | Signature annotation (null if annotation is not a signature) |
| initials | AnnotationInitials | ❌ | Initials annotation (null if annotation is not initials) |
| text | AnnotationText | ❌ | Text annotation (null if annotation is not a text) |
| datetime | AnnotationDateTime | ❌ | Date annotation (null if annotation is not a date) |
| checkbox | AnnotationCheckbox | ❌ | Checkbox annotation (null if annotation is not a checkbox) |
# DynamicField
**Properties**
| Name | Type | Required | Description |
| :---- | :----- | :------- | :------------------------- |
| name | string | ❌ | Name of the dynamic field |
| value | string | ❌ | Value of the dynamic field |
# AnnotationDateTimeFormat
Format of the date time (DMY\_NUMERIC\_SLASH is day/month/year with slashes, MDY\_NUMERIC\_SLASH is month/day/year with slashes, YMD\_NUMERIC\_SLASH is year/month/day with slashes, DMY\_NUMERIC\_DASH\_SHORT is day/month/year with dashes, DMY\_NUMERIC\_DASH is day/month/year with dashes, YMD\_NUMERIC\_DASH is year/month/day with dashes, MDY\_TEXT\_DASH\_SHORT is month/day/year with dashes, MDY\_TEXT\_SPACE\_SHORT is month/day/year with spaces, MDY\_TEXT\_SPACE is month/day/year with spaces)
**Properties**
| Name | Type | Required | Description |
| :------------------------ | :----- | :------- | :-------------------------- |
| DMY\_NUMERIC\_SLASH | string | ✅ | "DMY\_NUMERIC\_SLASH" |
| MDY\_NUMERIC\_SLASH | string | ✅ | "MDY\_NUMERIC\_SLASH" |
| YMD\_NUMERIC\_SLASH | string | ✅ | "YMD\_NUMERIC\_SLASH" |
| DMY\_NUMERIC\_DASH\_SHORT | string | ✅ | "DMY\_NUMERIC\_DASH\_SHORT" |
| DMY\_NUMERIC\_DASH | string | ✅ | "DMY\_NUMERIC\_DASH" |
| YMD\_NUMERIC\_DASH | string | ✅ | "YMD\_NUMERIC\_DASH" |
| MDY\_TEXT\_DASH\_SHORT | string | ✅ | "MDY\_TEXT\_DASH\_SHORT" |
| MDY\_TEXT\_SPACE\_SHORT | string | ✅ | "MDY\_TEXT\_SPACE\_SHORT" |
| MDY\_TEXT\_SPACE | string | ✅ | "MDY\_TEXT\_SPACE" |
# EnvelopeFlowType
Flow type of the envelope (REQUEST\_SIGNATURE is a request for signature, SIGN\_MYSELF is a self-signing flow)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| REQUEST\_SIGNATURE | string | ✅ | "REQUEST\_SIGNATURE" |
| SIGN\_MYSELF | string | ✅ | "SIGN\_MYSELF" |
# EnvelopeLegalityLevel
Legal level of the envelope (SES is Simple Electronic Signature, QES\_EIDAS is Qualified Electronic Signature, QES\_ZERTES is Qualified Electronic Signature with Zertes)
**Properties**
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| SES | string | ✅ | "SES" |
| QES\_EIDAS | string | ✅ | "QES\_EIDAS" |
| QES\_ZERTES | string | ✅ | "QES\_ZERTES" |
# TemplateRecipientRole
Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document)
**Properties**
| Name | Type | Required | Description |
| :----------------- | :----- | :------- | :------------------- |
| SIGNER | string | ✅ | "SIGNER" |
| RECEIVES\_COPY | string | ✅ | "RECEIVES\_COPY" |
| IN\_PERSON\_SIGNER | string | ✅ | "IN\_PERSON\_SIGNER" |
| SENDER | string | ✅ | "SENDER" |
# SetEnvelopeDynamicFieldsRequest
**Properties**
| Name | Type | Required | Description |
| :------------ | :-------------- | :------- | :--------------------- |
| dynamicFields | DynamicField\[] | ✅ | List of dynamic fields |
# Page
**Properties**
| Name | Type | Required | Description |
| :----- | :----- | :------- | :--------------------------- |
| width | number | ❌ | Width of the page in pixels |
| height | number | ❌ | Height of the page in pixels |
# TemplateSigningStep
**Properties**
| Name | Type | Required | Description |
| :--------- | :------------------- | :------- | :----------------- |
| recipients | TemplateRecipient\[] | ❌ | List of recipients |
# AttachmentPlaceholdersPerRecipient
**Properties**
| Name | Type | Required | Description |
| :------------ | :----------------------- | :------- | :-------------------- |
| recipientId | string | ❌ | ID of the recipient |
| recipientName | string | ❌ | Name of the recipient |
| placeholders | AttachmentPlaceholder\[] | ❌ | |
# ListEnvelopesResponse
**Properties**
| Name | Type | Required | Description |
| :-------------- | :---------- | :------- | :------------------------------- |
| hasNextPage | boolean | ❌ | Whether there is a next page |
| hasPreviousPage | boolean | ❌ | Whether there is a previous page |
| envelopes | Envelope\[] | ❌ | |
# Recipient
**Properties**
| Name | Type | Required | Description |
| :----------- | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | string | ✅ | Name of the recipient |
| email | string | ✅ | Email of the recipient |
| role | RecipientRole | ✅ | Role of the recipient (SIGNER signs the document, RECEIVES\_COPY receives a copy of the document, IN\_PERSON\_SIGNER signs the document in person, SENDER sends the document) |
| id | string | ❌ | Unique identifier of the recipient |
| uid | string | ❌ | Unique identifier of the user associated with the recipient |
| verification | RecipientVerification | ❌ | |
# WebhookEvent
Event of the webhook
**Properties**
| Name | Type | Required | Description |
| :--------------------- | :----- | :------- | :----------------------- |
| ENVELOPE\_EXPIRED | string | ✅ | "ENVELOPE\_EXPIRED" |
| ENVELOPE\_DECLINED | string | ✅ | "ENVELOPE\_DECLINED" |
| ENVELOPE\_VOIDED | string | ✅ | "ENVELOPE\_VOIDED" |
| ENVELOPE\_COMPLETED | string | ✅ | "ENVELOPE\_COMPLETED" |
| ENVELOPE\_AUDIT\_TRAIL | string | ✅ | "ENVELOPE\_AUDIT\_TRAIL" |
# CreateWebhookRequest
**Properties**
| Name | Type | Required | Description |
| :----- | :----------- | :------- | :------------------------ |
| event | WebhookEvent | ✅ | Event of the webhook |
| target | string | ✅ | URL of the webhook target |
# CreateEnvelopeFromTemplateRequest
**Properties**
| Name | Type | Required | Description |
| :------ | :------ | :------- | :---------------------------------------------- |
| name | string | ✅ | Name of the envelope |
| comment | string | ❌ | Comment for the envelope |
| sandbox | boolean | ❌ | Whether the envelope is created in sandbox mode |
# ListTemplateAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------ | :------- | :---------- |
| annotations | Annotation\[] | ❌ | |
# RenameEnvelopeRequest
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :------------------- |
| name | string | ❌ | Name of the envelope |
# ListTemplateDocumentAnnotationsResponse
**Properties**
| Name | Type | Required | Description |
| :---------- | :------------ | :------- | :---------- |
| annotations | Annotation\[] | ❌ | |
# AttachmentPlaceholderRequest1
**Properties**
| Name | Type | Required | Description |
| :---------- | :------ | :------- | :--------------------------------------------- |
| recipientId | string | ✅ | ID of the recipient |
| name | string | ✅ | |
| required | boolean | ✅ | Whether the attachment placeholder is required |
| multiple | boolean | ✅ | |
| id | string | ❌ | ID of the attachment placeholder |
| hint | string | ❌ | Hint of the attachment placeholder |
# ListEnvelopeDocumentsResponse
**Properties**
| Name | Type | Required | Description |
| :-------- | :---------- | :------- | :---------- |
| documents | Document\[] | ❌ | |
# ListWebhooksResponse
**Properties**
| Name | Type | Required | Description |
| :------- | :--------- | :------- | :---------- |
| webhooks | Webhook\[] | ❌ | |
# AnnotationSignature
Signature annotation (null if annotation is not a signature)
**Properties**
| Name | Type | Required | Description |
| :--- | :----- | :------- | :-------------------------------------------- |
| id | string | ❌ | Unique identifier of the annotation signature |
# Annotation
Source: https://apidoc.sign.plus/concepts/annotation
### Definition
An **Annotation** is a field that you can add to a document to collect information from recipients. Annotations can be used to collect signatures, initials, text, checkboxes and dates.
### Schema
# Document
Source: https://apidoc.sign.plus/concepts/document
### Definition
A **Document** is a file that you want to get signed by recipients. A document can be added to an envelope to be signed by recipients. The document can be in various formats such as PDF, Word, Excel, etc.
After signing is completed you can download a specific signed document from an envelope using GET /v2/envelope/\{envelope\_id}/signed\_documents/\{document\_id}.
### Schema
# Envelope
Source: https://apidoc.sign.plus/concepts/envelope
### Definition
An **Envelope** is a container for documents to be signed by recipients. An envelope can contain one or more documents. The envelope set the flow type, legality level, expiration date, and other settings for the documents to be signed.
When the envelope is completed, you can download the entire signed envelope as a PDF Portfolio or fetch an individual signed document from the envelope.
### Schema
# Signing Steps
Source: https://apidoc.sign.plus/concepts/signing-steps
### Definition
The **Signing Steps** are the signature order that recipients need to follow to sign the envelope. Signing Steps are made of one or more **Signing Step** objects. Each Signing Step object contains the recipient's information and the order in which they need to sign the envelope.
### Schema
# Template
Source: https://apidoc.sign.plus/concepts/template
### Definition
A **Template** is a reusable envelope that can be used to create multiple envelopes. Templates can be used to create envelopes with the same document structure and content. You can create a template from an existing document or create a new template from scratch.
### Schema
# Webhook
Source: https://apidoc.sign.plus/concepts/webhook
### Definition
A **Webhook** is a mechanism that allows you to receive real-time notifications about events that occur for an envelope. You can use webhooks to receive notifications about envelope status changes.
### Schema
# Introduction
Source: https://apidoc.sign.plus/get-started/introduction
Streamline your workflow with secure, legally-binding electronic signatures.
## Programmable API for electronic signatures
Sign.Plus is a secure, legally-binding electronic signature solution. The Sign.Plus API allows you to integrate electronic signatures into your application.
Get started with Sign.Plus API in minutes
Get detailed endpoint information and examples
Learn how to use Sign.Plus API in different scenarios
# Quickstart
Source: https://apidoc.sign.plus/get-started/quickstart
Start building awesome electronic signature workflow in 7 steps
Please sign up on the [Sign.Plus Platform](https://app.sign.plus) to get started.
Please visit the [Integrations](https://app.sign.plus/profile/integrations) page to activate your API sandbox and get your API key.
## Create your first envelope
An **Envelope** is a container for documents to be signed by recipients. Learn more about [Envelope](/concepts/envelope).
To create a new envelope, see the POST /v2/envelope endpoint documentation.
```bash Create envelope theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "My wonderful envelope",
"flow_type": "REQUEST_SIGNATURE",
"legality_level": "SES",
"expires_at": 1831280113,
"sandbox": true
}'
```
On success, the API will return a response with the envelope ID in a format like `66873403520e051cdb834df`. Get the envelope ID from the response to use in the next steps.
A **Document** is a file that you want to get signed by recipients. You can add one or more documents in an Envelope.
Learn more about [Documents](/concepts/document).
To add a document to the envelope, see the POST /v2/envelope/\{envelope\_id}/document endpoint documentation.
```bash Add document theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/document \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'file='
```
On success, the API will return a response with the document ID in a format like `66873403520e051cdb834df`. Get the document ID from the response to use in the next steps.
A **Recipient** is a person who will sign the document in the envelope. You can add one or more recipients to an envelope in a specific order using signing steps.
Learn more about Signing Steps in [Signing Steps](/concepts/signing-steps).
To add a recipient to the envelope, see the POST /v2/envelope/\{envelope\_id}/signing\_steps endpoint documentation.
```bash Add signing steps theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/signing_steps \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"signing_steps": [
{
"recipients": [
{
"name": "John Doe",
"email": "john.doe@gmail.com",
"role": "SIGNER",
}
]
}
]
}'
```
On success, the API will return a response with the recipient ID in a format like `66873403520e051cdb834df` under the signing steps. Get the recipient ID from the response to use in the next steps.
A **Signature Annotation** serves as a designated placeholder within a document where the recipient is required to sign. You can include one or more signature annotations in a document. These annotations can be added alongside other types of annotations, such as text fields, date fields, and checkboxes. For further details, visit [Annotation](/concepts/annotation).
Before adding the annotation, you need to define your signature in the Sign.Plus platform.
To learn how to add a signature annotation to a document, refer to the [POST /v2/document/\{envelope\_id}/annotation](/api-reference/endpoints/signplus/add-envelope-annotation) endpoint documentation.
```bash Add annotation theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/annotation \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"recipient_id": "",
"document_id": "",
"page": 1,
"x": 50,
"y": 20,
"width": 20,
"height": 60,
"required": true,
"type": "SIGNATURE",
"signature": {
"id": ""
},
"initials": null,
"text": null,
"datetime": null,
"checkbox": null
}'
```
On success, the API will return the inserted annotation.
You successfully created an envelope, added a document, set a recipient, and inserted a signature annotation. Now, it's time to send the envelope for signature.
To send the envelope for signature, see the POST /v2/envelope/\{envelope\_id}/send endpoint documentation.
```bash Send envelope theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/send \
--header 'Authorization: Bearer '
```
On success, the API will send the envelope for signature to the recipient. They will receive an email notification with a link to sign the document.
Now that your envelope is sent for signature, you can get notified when the envelope status changes. You can use the Webhooks feature to get real-time notifications about the envelope status.
To learn more about Webhooks, visit the [Webhooks](/guides/get-notified-using-webhooks) guide.
Once the recipient signs the envelope, you have two options to retrieve files through the Sign.Plus API:
To obtain just the Certificate of Completion, use the GET GET /v2/envelope/\{envelope\_id}/certificate endpoint.
To download the signed envelope as a PDF Portfolio, use the GET /v2/envelope/\{envelope\_id}/signed\_documents endpoint.
If you only need one signed file, download an individual signed document: GET /v2/envelope/\{envelope\_id}/signed\_documents/\{document\_id}.
## Go further
* Create a [Template](/guides/create-your-first-template) for frequently used envelope
* Get notified when the envelope status changes with [Webhooks](/guides/get-notified-using-webhooks)
# Sign.Plus MCP Server
Source: https://apidoc.sign.plus/get-started/sign-plus-mcp
Send documents for signature, manage envelopes, and automate eSignature workflows from any MCP-compatible AI assistant
# Sign.Plus MCP Server
The Sign.Plus MCP Server lets AI assistants create envelopes, send documents for signature, manage templates, track signing status, and configure webhooks through the [Model Context Protocol (MCP)](https://modelcontextprotocol.io) — an open standard for connecting AI tools to external services.
**Beta** — The Sign.Plus MCP Server is currently in beta. Features, tool schemas, and authentication flows may change. Report issues to [support@alohi.com](mailto:support@alohi.com).
**API plan required** — Access to the Sign.Plus API requires a [Sign.Plus API plan](https://www.sign.plus/pricing). Non-API plans have access to sandbox but can't send signature requests.
## MCP server URL
```text theme={null}
https://mcp.sign.plus/mcp
```
***
## What you can do
The Sign.Plus MCP Server enables AI assistants to interact with your Sign.Plus account using natural language. Here's what's supported:
| Capability | Description |
| ------------------------ | ------------------------------------------------------------------------------ |
| **Create envelopes** | Create signature request envelopes with documents and recipients |
| **Send for signature** | Send envelopes to one or more signers with configurable signing flows |
| **Track signing status** | Monitor envelope progress and check which recipients have signed |
| **Place annotations** | Add signature, text, date, initials, and checkbox fields at specific positions |
| **Manage templates** | List, create, and use reusable document templates |
| **Download signed docs** | Download completed signed documents and certificates of completion |
| **Manage webhooks** | Configure webhooks for real-time signing event notifications |
| **Build signing flows** | Define multi-step signing orders with sequential or parallel recipients |
***
## Prerequisites
Before connecting, make sure you have:
1. An active **[Sign.Plus API plan](https://www.sign.plus/api/pricing)** or an active **Sign.Plus Sandbox**
2. A **Personal Access Token (PAT)** or **OAuth 2.0 credentials** — [How to create a PAT](https://help.alohi.com/hc/en-us/articles/15998235769244)
3. At least one document or template to work with
***
## Authentication
### Personal Access Tokens (PAT)
PATs provide secure access to the Sign.Plus API. Create them from your Sign.Plus dashboard:
Log in to your [Sign.Plus account](https://app.sign.plus) and go to **Settings → Integrations**.
In the **API** section, locate the option to create a new Personal Access Token.
Choose the permission scopes for your token based on your use case.
Set an expiration date (90-day rotation recommended), generate the token, and store it securely — it won't be shown again.
#### Available scopes
| Scope | Access |
| --------------- | ---------------------------------------------------------------------- |
| `sign:all:read` | Read-only access to all eSignature operations (GET endpoints) |
| `sign:all:edit` | Full access to all eSignature operations (POST, PUT, DELETE endpoints) |
Select both scopes for full MCP functionality. Use `sign:all:read` alone if you only need to view envelopes, templates, and signing status without creating or sending documents.
### OAuth 2.0
For production integrations, Sign.Plus supports the standard OAuth 2.0 authorization code flow. See the [authentication documentation](https://apidoc.sign.plus/concepts/authentication) for the full setup guide.
***
## Connecting to an MCP client
The Sign.Plus MCP Server works with any client that supports the Model Context Protocol. Below are setup instructions for common environments.
### Generic MCP configuration
Point your MCP client to the Sign.Plus server URL and pass your authentication token:
```json theme={null}
{
"mcpServers": {
"signplus": {
"type": "url",
"url": "https://mcp.sign.plus/mcp",
"headers": {
"Authorization": "Bearer YOUR_PERSONAL_ACCESS_TOKEN"
}
}
}
}
```
### Using with the Anthropic API (MCP Connector)
```python theme={null}
import anthropic
client = anthropic.Anthropic()
response = client.beta.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
betas=["mcp-client-2025-11-20"],
mcp_servers=[
{
"type": "url",
"url": "https://mcp.sign.plus/mcp",
"name": "signplus",
"authorization_token": "YOUR_PERSONAL_ACCESS_TOKEN",
}
],
messages=[
{"role": "user", "content": "Send the NDA template to john@example.com for signature"}
],
)
```
### Using with OpenAI Agents SDK
```python theme={null}
from openai_agents import Agent, MCPServerSse
signplus_server = MCPServerSse(
url="https://mcp.sign.plus/mcp",
headers={"Authorization": "Bearer YOUR_PERSONAL_ACCESS_TOKEN"},
)
agent = Agent(
name="eSignature Assistant",
instructions="Help the user send documents for signature and track signing progress.",
mcp_servers=[signplus_server],
)
```
Replace `YOUR_PERSONAL_ACCESS_TOKEN` with the PAT you created in the [Authentication](#authentication) section. If you're using OAuth, pass the access token obtained from the OAuth flow.
***
## Available tools
The Sign.Plus MCP Server exposes the following tools to connected AI assistants.
### Envelopes
| Tool | Description |
| ------------------------------- | ------------------------------------- |
| `list-envelopes` | List envelopes with optional filters |
| `create-envelope` | Create a new envelope |
| `get-envelope` | Get details of a specific envelope |
| `delete-envelope` | Delete an envelope |
| `duplicate-envelope` | Duplicate an envelope |
| `create-envelope-from-template` | Create a new envelope from a template |
| `send-envelope` | Send a draft envelope for signature |
| `rename-envelope` | Rename an envelope |
| `set-envelope-comment` | Set envelope comment |
| `set-envelope-notification` | Set envelope notification settings |
| `set-envelope-expiration-date` | Set envelope expiration date |
| `set-envelope-legality-level` | Set envelope legality level |
| `void-envelope` | Void an in-progress envelope |
| `set-envelope-dynamic-fields` | Set dynamic fields for signers |
### Documents
| Tool | Description |
| ----------------------------------- | ------------------------------------------- |
| `add-envelope-document` | Upload a document to an envelope |
| `get-envelope-document` | Get a specific envelope document |
| `list-envelope-documents` | List all documents in an envelope |
| `download-envelope-documents` | Download all signed envelope documents |
| `download-envelope-signed-document` | Download one signed envelope document |
| `download-envelope-coc` | Download envelope certificate of completion |
| `download-envelope-attachment` | Download uploaded envelope attachment file |
### Annotations
| Tool | Description |
| ------------------------------------ | ------------------------------------------ |
| `list-envelope-annotations` | List all envelope annotations |
| `list-envelope-document-annotations` | List annotations for one envelope document |
| `add-envelope-annotation` | Add an annotation to an envelope document |
| `delete-envelope-annotation` | Delete an envelope annotation |
### Signing Steps
| Tool | Description |
| ---------------------------- | ------------------------------------------------------- |
| `add-envelope-signing-steps` | Add recipients and define signing order for an envelope |
### Attachments
| Tool | Description |
| --------------------------------------- | --------------------------------------------------- |
| `set-envelope-attachments-settings` | Configure required/optional attachments for signers |
| `set-envelope-attachments-placeholders` | Place attachment placeholders in envelope documents |
### Templates
| Tool | Description |
| --------------------------------------- | --------------------------------------------------- |
| `list-templates` | List templates |
| `create-template` | Create a template |
| `get-template` | Get template details |
| `delete-template` | Delete a template |
| `duplicate-template` | Duplicate a template |
| `rename-template` | Rename a template |
| `set-template-comment` | Set template comment |
| `set-template-notification` | Set template notification settings |
| `add-template-document` | Add a document to a template |
| `get-template-document` | Get a specific template document |
| `list-template-documents` | List all documents in a template |
| `list-template-annotations` | List all template annotations |
| `list-template-document-annotations` | List annotations for one template document |
| `add-template-annotation` | Add an annotation to a template document |
| `delete-template-annotation` | Delete a template annotation |
| `add-template-signing-steps` | Add recipients and signing order to a template |
| `set-template-attachments-settings` | Configure template attachment requirements |
| `set-template-attachments-placeholders` | Place attachment placeholders in template documents |
### Webhooks
| Tool | Description |
| ---------------- | --------------------------------- |
| `list-webhooks` | List configured webhook endpoints |
| `create-webhook` | Register a webhook endpoint |
| `delete-webhook` | Remove a webhook endpoint |
***
## Usage examples
Once connected, you can interact with Sign.Plus through natural language. Here are some common workflows.
### Send a document for signature
> **You:** Send the attached contract to [sarah@example.com](mailto:sarah@example.com) for signature
>
> **Assistant:** I've created an envelope called "Contract", uploaded the document, added Sarah as a signer, placed a signature field on page 2, and sent it. Sarah will receive an email with a signing link. The envelope ID is `abc123def`.
### Create from a template
> **You:** Use the NDA template and send it to [j.doe@example.com](mailto:j.doe@example.com)
>
> **Assistant:** I've created a new envelope from your "NDA" template and sent it to John Doe at [j.doe@example.com](mailto:j.doe@example.com). The envelope is now in progress with a daily reminder configured.
### Check signing status
> **You:** Has Sarah signed the contract yet?
>
> **Assistant:** The envelope "Contract" is still in progress. Sarah received the signing request at 2:15 PM today but hasn't signed yet. The next reminder is scheduled for tomorrow.
### List your templates
> **You:** What templates do I have?
>
> **Assistant:** You have 11 templates:
>
> 1. Letter-of-Intent-to-Sue — 2 pages, 1 signer
> 2. Technical SEO Audit Report — 3 pages, 1 signer
> 3. UBS Factsheet (multi-signer) — 3 pages, 4 recipients across 3 signing steps
> ...and 8 more.
### Download signed documents
> **You:** Download the signed copy of the NDA
>
> **Assistant:** Here's the signed NDA document. All parties have completed signing and the certificate of completion is also available.
***
## API reference
The MCP Server is built on the [Sign.Plus REST API v2](https://apidoc.sign.plus). For detailed endpoint documentation, schemas, and error codes:
Full endpoint reference with request/response examples
Get up and running with the Sign.Plus API in minutes
Understand envelopes, documents, annotations, and signing flows
FAQs, troubleshooting, and how-to articles
### SDKs
| Language | Package |
| ---------- | ---------------------------------------------------------------------- |
| Python | [`signplus`](https://pypi.org/project/signplus/) |
| TypeScript | [`@alohi/signplus`](https://www.npmjs.com/package/@alohi/signplus) |
| Go | [`signplus`](https://pkg.go.dev/github.com/alohi/signplus-go) |
| Java | [`signplus`](https://central.sonatype.com/artifact/com.alohi/signplus) |
| C# | [`Signplus`](https://www.nuget.org/packages/Signplus) |
| PHP | [`alohi/signplus`](https://packagist.org/packages/alohi/signplus) |
***
## Security and compliance
Sign.Plus is built with enterprise-grade security and meets strict regulatory requirements:
* **Encryption:** AES-256 at rest, TLS 1.3+ in transit, unique encryption keys per user
* **Certifications:** ISO 27001, SOC 2 Type 2, HIPAA (with BAA), PCI DSS
* **eSignature compliance:** ESIGN Act, eIDAS (SES and QES), ZertES
* **Privacy:** GDPR, CCPA
* **Access control:** SSO, 2FA, role-based permissions, fine-grained PAT scopes
* **Audit trails:** Tamper-proof certificate of completion for every signed document
For qualified electronic signatures (QES), see [Sign.Plus QES](https://www.sign.plus/qes).
***
## Limitations
**Current beta limitations**
* **API plan required** — The Sign.Plus API is only available on API-enabled plans. A free sandbox is available for evaluation and testing on all plans.
* **Sandbox vs production** — Create envelopes with `"sandbox": true` for testing. Sandbox envelopes don't send real emails and aren't billed. Some PATs may be restricted to sandbox-only mode — contact [support@alohi.com](mailto:support@alohi.com) to enable production envelope creation if needed.
* **No account creation via API** — New user accounts must be created through the [Sign.Plus web dashboard](https://app.sign.plus).
* **Annotation coordinates** — Annotation placement uses percentage-based coordinates (0–100) relative to page dimensions. The y-axis is measured from the bottom of the page.
* **Rate limits** — API requests are rate-limited. See the [API documentation](https://apidoc.sign.plus) for current thresholds.
* **File formats** — Supported document formats include PDF, DOCX, PNG, XLS, and more. Maximum file sizes apply per the API documentation.
***
## Troubleshooting
### "Invalid token" or 401 Unauthorized
Your PAT may have expired or lacks the required scopes. Generate a new token from **Settings → Integrations** in your Sign.Plus dashboard. Ensure the token includes both `sign:all:read` and `sign:all:edit` scopes.
### "Non-sandbox envelopes are not allowed"
Your PAT is restricted to sandbox mode. Sandbox envelopes are created for testing only and do not send real emails. Contact [support@alohi.com](mailto:support@alohi.com) to enable production envelope creation, or upgrade your plan configuration.
### Annotation appears in the wrong position
Annotation coordinates are expressed as percentages (0–100) of the page dimensions. Note that the **y-axis is measured from the bottom** of the page, not the top. For a signature field at 75% from the top, set `y` to approximately `25` (i.e., `100 - 75`).
### Envelope stuck in DRAFT status
Ensure the envelope has at least one document, one recipient with the `SIGNER` role, and one required annotation (e.g., a signature field) assigned to that recipient before calling `send_envelope`.
### Getting help
* **Help Center:** [help.alohi.com](https://help.alohi.com)
* **API Support:** [support@alohi.com](mailto:support@alohi.com)
* **Enterprise Sales:** [alohi.com/contact-sales](https://www.alohi.com/contact-sales)
# Add Signature annotation
Source: https://apidoc.sign.plus/guides/add-signature-annotation
A **Signature Annotation** serves as a designated placeholder within a document where the recipient is required to sign. You can include one or more signature annotations in a document. These annotations can be added alongside other types of annotations, such as text fields, date fields, and checkboxes. For further details, visit [Annotation](/concepts/annotation).
Before adding the annotation, you need to define your signature in the Sign.Plus platform.
You will also need to add a document to the envelope and set a recipient using signing steps. You will get the `recipient_id` from the response of the signing steps and the `document_id` from the response of the document upload. Note that you can only add a signature annotation on a recipient that has a `SIGNER` role.
Coordinates of the annotation are passed in % of the page dimensions (from 0 to 100) counting from the top left corner
```bash Add annotation theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/annotation \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"recipient_id": "",
"document_id": "",
"page": 1,
"x": 50,
"y": 20,
"width": 20,
"height": 60,
"required": true,
"type": "SIGNATURE",
"signature": {
"id": ""
},
"initials": null,
"text": null,
"datetime": null,
"checkbox": null
}'
```
On success, the API will return the inserted annotation.
Get endpoint details
# Add Text annotation
Source: https://apidoc.sign.plus/guides/add-text-annotation
A **Text Annotation** serves as a designated placeholder within a document where the recipient is required to enter text. You can include one or more text annotations in a document. Learn more about [Annotations](/concepts/annotation).
You will also need to add a document to the envelope and set a recipient using signing steps. You will get the `recipient_id` from the response of the signing steps and the `document_id` from the response of the document upload.
Coordinates of the annotation are passed in % of the page dimensions (from 0 to 100) counting from the top left corner
```bash Add annotation theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/annotation \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"recipient_id": "",
"document_id": "",
"page": 1,
"x": 50,
"y": 20,
"width": 20,
"height": 60,
"required": true,
"type": "TEXT",
"signature": null,
"initials": null,
"text": {
"size": 12,
"color": 32,
"value": "Enter your insurance number",
"font": {
"family": "SERIF",
"italic": true,
"bold": true
}},
"datetime": null,
"checkbox": null
}'
```
On success, the API will return the inserted annotation.
Get endpoint details
# Build signing flow
Source: https://apidoc.sign.plus/guides/build-signing-flow
The **Sign.Plus API** allows you to build a custom signing flow for your envelope. The signing flow (also known as signing steps or signing order) defines the order in which recipients sign the document. You can set the signing order for each recipient in the envelope.
All recipient are not required to sign the document. They can also only receives the document. You can set the signing order for each recipient in the envelope.
```bash 1 recipient with 1 signing step theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/signing_steps \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"signing_steps": [
{
"recipients": [
{
"name": "John Doe",
"email": "john.doe@gmail.com",
"role": "SIGNER",
}
]
}
]
}'
```
```bash 3 recipients with 1 signing step theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/signing_steps \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"signing_steps": [
{
"recipients": [
{
"name": "John Doe",
"email": "john.doe@gmail.com",
"role": "SIGNER",
},
{
"name": "Mark Twain",
"email": "mark.twain@gmail.com",
"role": "SIGNER",
},
{
"name": "Bob Dylan",
"email": "bob.dylan@gmail.com",
"role": "RECEIVES_COPY",
},
]
}
]
}'
```
Each step will have to be completed before the next step can be started.
```bash Three recipients with one signing step theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/signing_steps \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"signing_steps": [
{
"recipients": [
{
"name": "John Doe",
"email": "john.doe@gmail.com",
"role": "SIGNER",
},
{
"name": "Bob Dylan",
"email": "bob.dylan@gmail.com",
"role": "RECEIVES_COPY",
}
],
"recipients": [
{
"name": "Alice Doe",
"email": "alice.doe@gmail.com",
"role": "SIGNER",
},
{
"name": "Jane Doe",
"email": "jane.doe@gmail.com",
"role": "SIGNER",
}
],
"recipients": [
{
"name": "Louis Dupont",
"email": "louis.dupont@gmail.com",
"role": "RECEIVES_COPY",
},
{
"name": "Michel Dupont",
"email": "michel.dupont@gmail.com",
"role": "RECEIVES_COPY",
}
],
}
]
}'
```
# Create your first envelope
Source: https://apidoc.sign.plus/guides/create-your-first-envelope
An **Envelope** is a container for documents to be signed by recipients. Learn more about [Envelope](/concepts/envelope).
To create a new envelope, see the POST /v2/envelope endpoint documentation.
```bash Create envelope theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "My wonderful envelope",
"flow_type": "REQUEST_SIGNATURE",
"legality_level": "SES",
"expires_at": 1831280113,
"sandbox": true
}'
```
On success, the API will return a response with the envelope ID in a format like `66873403520e051cdb834df`. Get the envelope ID from the response to use in the next steps.
A **Document** is a file that you want to get signed by recipients. You can add one or more documents in an Envelope.
Learn more about [Document](/concepts/document).
To add a document to the envelope, see the POST /v2/envelope/\{envelope\_id}/document endpoint documentation.
```bash Add document theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/document \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'file='
```
On success, the API will return a response with the document ID in a format like `66873403520e051cdb834df`. Get the document ID from the response to use in the next steps.
A **Recipient** is a person who will sign the document in the envelope. You can add one or more recipients to an envelope in a specific order using signing steps.
Learn more about [Signing Steps](/concepts/signing-steps).
To add a recipient to the envelope, see the POST /v2/envelope/\{envelope\_id}/signing\_steps endpoint documentation.
```bash Add signing steps theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/signing_steps \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"signing_steps": [
{
"recipients": [
{
"name": "John Doe",
"email": "john.doe@gmail.com",
"role": "SIGNER",
}
]
}
]
}'
```
On success, the API will return a response with the recipient ID in a format like `66873403520e051cdb834df` under the signing steps. Get the recipient ID from the response to use in the next steps.
A **Signature Annotation** serves as a designated placeholder within a document where the recipient is required to sign. You can include one or more signature annotations in a document. These annotations can be added alongside other types of annotations, such as text fields, date fields, and checkboxes. For further details, visit [Annotation](/concepts/annotation).
Before adding the annotation, you need to define your signature in the Sign.Plus platform.
To learn how to add a signature annotation to a document, refer to the [POST /v2/document/\{envelope\_id}/annotation](/api-reference/endpoints/signplus/add-envelope-annotation) endpoint documentation.
```bash Add annotation theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/annotation \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data '{
"recipient_id": "",
"document_id": "",
"page": 1,
"x": 50,
"y": 20,
"width": 20,
"height": 60,
"required": true,
"type": "SIGNATURE",
"signature": {
"id": ""
},
"initials": null,
"text": null,
"datetime": null,
"checkbox": null
}'
```
On success, the API will return the inserted annotation.
You successfully created an envelope, added a document, set a recipient, and inserted a signature annotation. Now, it's time to send the envelope for signature.
To send the envelope for signature, see the POST /v2/envelope/\{envelope\_id}/send endpoint documentation.
```bash Send envelope theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/send \
--header 'Authorization: '
```
On success, the API will send the envelope for signature to the recipient. They will receive an email notification with a link to sign the document.
# Create your first template
Source: https://apidoc.sign.plus/guides/create-your-first-template
A **Template** is a reusable envelope that you can use to create multiple envelopes with the same document and recipient settings. Learn more about [Template](/concepts/template).
To create a new template, see the POST /v2/template endpoint documentation.
```bash Create template theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/template \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "My wonderful template"
}'
```
On success, the API will return a response with the template ID in a format like `66873403520e051cdb834df`. Get the template ID from the response to use in the next steps.
A **Document** is a file that you want to get signed by recipients. You can add one or more documents in an Template.
Learn more about [Documents](/concepts/document).
To add a document to the template, see the POST /v2/template/\{template\_id}/document endpoint documentation.
```bash Add document theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/template/{template_id}/document \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'file='
```
On success, the API will return a response with the document ID in a format like `66873403520e051cdb834df`. Get the document ID from the response to use in the next steps.
A **Recipient** is a person who will sign the document in the envelope. You can add one or more recipients to an envelope in a specific order using signing steps.
Learn more about [Signing Steps](/concepts/signing-steps).
To add a recipient to the template, see the POST /v2/template/\{template\_id}/signing\_steps endpoint documentation.
```bash Add signing steps theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/template/{template_id}/signing_steps \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"signing_steps": [
{
"recipients": [
{
"name": "John Doe",
"email": "john.doe@gmail.com",
"role": "SIGNER",
}
]
}
]
}'
```
On success, the API will return a response with the recipient ID in a format like `66873403520e051cdb834df` under the signing steps. Get the recipient ID from the response to use in the next steps.
A **Signature Annotation** serves as a designated placeholder within a document where the recipient is required to sign. You can include one or more signature annotations in a document. These annotations can be added alongside other types of annotations, such as text fields, date fields, and checkboxes. For further details, visit [Annotation](/concepts/annotation).
Before adding the annotation, you need to define your signature in the Sign.Plus platform.
To learn how to add a signature annotation to a document, refer to the [POST /v2/document/\{template\_id}/annotation](/api-reference/endpoints/signplus/add-template-annotation) endpoint documentation.
```bash Add annotation theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/template/{tmeplate_id}/annotation \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data '{
"recipient_id": "",
"document_id": "",
"page": 1,
"x": 50,
"y": 20,
"width": 20,
"height": 60,
"required": true,
"type": "SIGNATURE",
"signature": {
"id": ""
},
"initials": null,
"text": null,
"datetime": null,
"checkbox": null
}'
```
On success, the API will return the inserted annotation.
You successfully created a template, added a document, set a recipient, and inserted a signature annotation. Now, it's time to create a new envelope from the template.
To create a new envelope, see the POST /v2/envelope/\{template\_id} endpoint documentation.
```bash Create envelope from template theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{template_id} \
--header 'Authorization: ' \
--data '{
"name": "My wonderful envelope from template",
}'
```
On success, the API will give you a response with the envelope ID in a format like `66873403520e051cdb834df`. Get the envelope ID from the response to set the recipients details and send the envelope for signature.
# Get notified using webhooks
Source: https://apidoc.sign.plus/guides/get-notified-using-webhooks
Specify your target URL and the event you want to track between the following options:
```
- ENVELOPE_COMPLETED
- ENVELOPE_EXPIRED
- ENVELOPE_DECLINED
- ENVELOPE_VOIDED
- ENVELOPE_AUDIT_TRAIL
```
Endpoint details
When the envelope event will be triggered, the webhook will send a POST request to the specified URL. You can handle the request and perform the necessary actions on your end.
Example of a webhook payload:
```json ENVELOPE_DECLINED theme={null}
{
"hook": {
"id": "6697ccb204bd194fa74c22b4",
"event": "envelope_declined",
"target": "https://webhook.site/47acfde3-bd83-4fbc-9ff1-ea0dc030e118"
},
"data": {
"id": "6697ccb204bd194fa74c22b4",
"uid": "4a6e29bfc5344ca6ad7cc8beda456481",
"envelope_id": "6697e681c5e364c7c23710d4",
"file_name": "dummy"
}
```
```json ENVELOPE_COMPLETED theme={null}
{
"hook": {
"id": "6697ccb204bd194fa74c22b4",
"event": "envelope_completed",
"target": "https://webhook.site/47acfde3-bd83-4fbc-9ff1-ea0dc030e118"
},
"data": {
"id": "6697ccb204bd194fa74c22b4",
"uid": "4a6e29bfc5344ca6ad7cc8beda456481",
"envelope_id": "6697e681c5e364c7c23710d4",
"file_name": "dummy"
}
```
```json ENVELOPE_EXPIRED theme={null}
{
"hook": {
"id": "6697ccb204bd194fa74c22b4",
"event": "envelope_expired",
"target": "https://webhook.site/47acfde3-bd83-4fbc-9ff1-ea0dc030e118"
},
"data": {
"id": "6697ccb204bd194fa74c22b4",
"uid": "4a6e29bfc5344ca6ad7cc8beda456481",
"envelope_id": "6697e681c5e364c7c23710d4",
"file_name": "dummy"
}
```
```json ENVELOPE_VOIDED theme={null}
{
"hook": {
"id": "6697ccb204bd194fa74c22b4",
"event": "envelope_voided",
"target": "https://webhook.site/47acfde3-bd83-4fbc-9ff1-ea0dc030e118"
},
"data": {
"id": "6697ccb204bd194fa74c22b4",
"uid": "4a6e29bfc5344ca6ad7cc8beda456481",
"envelope_id": "6697e681c5e364c7c23710d4",
"file_name": "dummy"
}
```
```json ENVELOPE_AUDIT_TRAIL theme={null}
{
"hook": {
"id": "6697ccb204bd194fa74c22b4",
"event": "envelope_audit_trail",
"target": "https://webhook.site/47acfde3-bd83-4fbc-9ff1-ea0dc030e118"
},
"data": {
"id": "6697ccb204bd194fa74c22b4",
"uid": "4a6e29bfc5344ca6ad7cc8beda456481",
"envelope_id": "6697e681c5e364c7c23710d4",
"recipient_id": "6697cc22b4bd194facb20474",
"action": "ENVELOPE_VIEWED"
}
```
`ENVELOPE_AUDIT_TRAIL` `action` can have the following values:
* `ENVELOPE_VIEWED` - When the recipient views the envelope.
* `ENVELOPE_SIGNED` - When the recipient signs the envelope.
* `ENVELOPE_DECLINED` - When the recipient declines the envelope.
# Set Attachment Requests
Source: https://apidoc.sign.plus/guides/set-attachment-requests
The **Attachment Request** feature allows you to request recipients to upload files when signing their documents. This is particularly useful when you need additional documentation such as ID cards, driving licenses, payment receipts, or other supporting documents as part of your signature request.
Attachment requests are configured at the envelope level.
Once you have created an envelope and set a recipient using signing steps, you will get the `recipient_id` that you can use to set up attachment placeholders.
## Set up attachment placeholders
First, configure what attachments you want to collect by setting up placeholders:
```bash Set envelope attachment placeholders theme={null}
curl --request PUT \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/attachments/placeholders \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"placeholders": [
{
"recipient_id": "",
"id": "",
"name": "",
"hint": "",
"required": ,
"multiple":
}
]
}'
```
## Configure attachment settings
To configure attachment settings for a given envelope, check the set envelope attachment settings endpoint documentation.
By default, all recipients can see files attached by others. Setting `visible_to_recipients` to `"false"` ensures that only the envelope sender can access the attachment files provided by all signers.
```bash Set attachment settings theme={null}
curl --request PUT \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/attachments/settings \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"settings": {
"visible_to_recipients":
}
}'
```
## Download uploaded attachments
Once recipients have uploaded their files, you can download them:
```bash Download attachment files theme={null}
curl --request GET \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/attachments/{file_id} \
--header 'Authorization: Bearer '
```
On success, the API will return the requested attachment file.
## Using with templates
You can also set up attachment requests for templates, making them reusable across multiple envelopes:
```bash Set template attachment placeholders theme={null}
curl --request PUT \
--url https://restapi.sign.plus/v2/template/{template_id}/attachments/placeholders \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"placeholders": [
{
"recipient_id": "",
"id": "",
"name": "",
"hint": "",
"required": ,
"multiple":
}
]
}'
```
```bash Set template attachment settings theme={null}
curl --request PUT \
--url https://restapi.sign.plus/v2/template/{template_id}/attachments/settings \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"settings": {
"visible_to_recipients":
}
}'
```
Get endpoint details
# Set Envelope Legality Level
Source: https://apidoc.sign.plus/guides/set-envelope-legality-level
The **Legality Level** of an envelope determines the level of security and compliance required for the document signing process.
The Sign.Plus platform supports three legality levels:
| Level | Description |
| ----------- | --------------------------------------- |
| SES | Simple Electronic Signature |
| QES\_EIDAS | Qualified Electronic Signature (eIDAS) |
| QES\_ZERTES | Qualified Electronic Signature (ZertES) |
```bash Set envelope legality level theme={null}
curl --request PUT \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/set_legality_level \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"legality_level": "SES"
}'
```
Get endpoint details
# Setup your account
Source: https://apidoc.sign.plus/guides/setup-your-account
Please sign up on the [Sign.Plus Platform](https://app.sign.plus) to get started.
Please visit the [Integrations](https://app.sign.plus/profile/integrations) page to activate your API sandbox and get your API key.
Your API key must be included in all API requests and is required to initiate your first API call.
All POST, PUT, DELETE endpoints requires SIGN\_ALL\_EDIT permission and all GET endpoints requires SIGN\_ALL\_READ permission
```bash Add document theme={null}
curl --request POST \
--url https://restapi.sign.plus/v2/envelope/{envelope_id}/document \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
--form 'file='
```