---
updatedAt: 2026-04-29T12:20:04.000Z
agentTools:
  projectIndex: https://developers.signwell.com/llms.txt
---

# Get Template

Returns a template and all associated template data. Supply the unique template ID from either a Create Template request or template page URL.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "SignWell Developer API",
    "description": "API for creating, managing, and tracking electronic signature workflows.",
    "version": "v1",
    "termsOfService": "https://www.signwell.com/terms/",
    "contact": {
      "email": "support@signwell.com"
    }
  },
  "tags": [
    {
      "name": "Template",
      "description": "Create and manage reusable document templates."
    }
  ],
  "paths": {
    "/api/v1/document_templates/{id}": {
      "get": {
        "summary": "Get Template",
        "description": "Returns a template and all associated template data. Supply the unique template ID from either a Create Template request or template page URL.",
        "tags": [
          "Template"
        ],
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "getTemplate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "$ref": "#/components/schemas/TemplateId"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "example": {
                  "id": "2851644b-8c61-4901-ab97-43fee9106bec",
                  "archived": false,
                  "created_at": "2026-09-29T15:21:53Z",
                  "embedded_edit_url": "https://www.signwell.com/edit/template/139ab7e6-dc2a-45f5-8e6f-dc6813af03c5/",
                  "language": "en",
                  "name": "satisfaction_twilight/voluptatem.doc",
                  "requester_email_address": "70_loggins@stehr.example",
                  "status": "Available",
                  "template_link": "https://www.signwell.com/new_doc/twrqD66X4uZEf9cK/",
                  "updated_at": "2026-09-29T15:21:53Z",
                  "allow_decline": null,
                  "allow_reassign": null,
                  "api_application_id": null,
                  "decline_redirect_url": null,
                  "expires_in": null,
                  "redirect_url": null,
                  "reminders": null,
                  "metadata": null,
                  "apply_signing_order": true,
                  "message": "Soluta quo quos sunt.",
                  "subject": "delectus",
                  "fields": [
                    [
                      {
                        "api_id": "Signature_55",
                        "height": "32.0",
                        "page": 1,
                        "required": true,
                        "type": "signature",
                        "value": null,
                        "width": "112.0",
                        "x": 1.1,
                        "y": 1.1,
                        "placeholder_name": "Supah Metron 1"
                      },
                      {
                        "api_id": "Signature_56",
                        "height": "32.0",
                        "page": 2,
                        "required": true,
                        "type": "signature",
                        "value": null,
                        "width": "112.0",
                        "x": 1.1,
                        "y": 1.1,
                        "placeholder_name": "Isis Ix 2"
                      }
                    ]
                  ],
                  "files": [
                    {
                      "name": "et.txt",
                      "pages_number": 2
                    }
                  ],
                  "copied_placeholders": [
                    {
                      "id": "3",
                      "name": "General Storm 3",
                      "subject": null,
                      "message": null
                    },
                    {
                      "id": "4",
                      "name": "Mr Question 4",
                      "subject": null,
                      "message": null,
                      "preassigned_recipient_name": "Margarito Bechtelar",
                      "preassigned_recipient_email": "lianne@king.example"
                    }
                  ],
                  "placeholders": [
                    {
                      "id": "1",
                      "name": "Supah Metron 1",
                      "subject": null,
                      "message": null,
                      "preassigned_recipient_name": "Sanford Kerluke",
                      "preassigned_recipient_email": "virgil@stanton.test",
                      "signing_order": 1,
                      "passcode_delivery": {
                        "enabled": false,
                        "methods": null,
                        "expire_after_access": false
                      },
                      "attachment_requests": [
                        {
                          "name": "fruit_distant/illum.odp",
                          "required": true,
                          "url": "https://www.signwell.com/document_attachments/j05NK9qOp0IEE7XdARMecPyjRQ4/?access=36f868ae-dbee-4e81-b7dd-44d11e552c71"
                        }
                      ]
                    },
                    {
                      "id": "2",
                      "name": "Isis Ix 2",
                      "subject": null,
                      "message": null,
                      "signing_order": 2,
                      "passcode_delivery": {
                        "enabled": false,
                        "methods": null,
                        "expire_after_access": false
                      },
                      "attachment_requests": []
                    }
                  ],
                  "checkbox_groups": [
                    {
                      "id": "27e08385-38fa-4d1b-a029-fa85143ff962",
                      "group_name": null,
                      "recipient_id": null,
                      "checkbox_ids": [
                        "CheckBox_57"
                      ],
                      "validation": null,
                      "required": false
                    }
                  ],
                  "conditional_rules": [
                    {
                      "id": "c1cf2286-0591-4bfb-8035-4ccba4dc1364",
                      "target_id": "employment_status",
                      "action_type": "require",
                      "action_field_ids": [
                        "manager_name"
                      ],
                      "conditions": [
                        {
                          "condition_type": "any_of",
                          "status": "completed",
                          "join_operator": "and_operator",
                          "field_api_ids": [
                            "employment_status"
                          ],
                          "position": 1
                        }
                      ]
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplateResponse"
                }
              }
            }
          },
          "404": {
            "description": "not_found",
            "content": {
              "application/json": {
                "example": {
                  "message": "Not found",
                  "meta": {
                    "error": "record_not_found",
                    "message": "Couldn't find the template requested",
                    "messages": [
                      "Couldn't find the template requested"
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitErrorResponse"
                }
              }
            }
          }
        },
        "x-readme": {
          "code-samples": [
            {
              "language": "ruby",
              "name": "Ruby SDK",
              "install": "gem install signwell_sdk",
              "code": "require 'signwell_sdk'\n\nSignWell.configure do |config|\n  config.api_key['X-Api-Key'] = ENV['SIGNWELL_API_KEY']\nend\n\napi = SignWell::Resources::TemplateApi.new\n\ntemplate = api.get_template('template_id')\nputs template.name"
            }
          ]
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "X-Api-Key",
        "in": "header"
      }
    },
    "schemas": {
      "FieldType": {
        "type": "string",
        "enum": [
          "initials",
          "signature",
          "checkbox",
          "date",
          "select",
          "text",
          "dropdown",
          "autofill_company",
          "autofill_email",
          "autofill_first_name",
          "autofill_last_name",
          "autofill_name",
          "autofill_phone",
          "autofill_title",
          "autofill_date_signed"
        ],
        "description": "Type of signing field"
      },
      "TextValidation": {
        "type": "string",
        "enum": [
          "no_text_validation",
          "numbers",
          "letters",
          "email_address",
          "us_phone_number",
          "us_zip_code",
          "us_ssn",
          "us_age",
          "alphanumeric",
          "us_bank_routing_number",
          "us_bank_account_number",
          "custom"
        ],
        "description": "Validation rule for text fields"
      },
      "ValidationRegex": {
        "type": "string",
        "description": "Text fields with custom validation only: the regex pattern used to validate field values. Required when validation is set to custom."
      },
      "ValidationRegexErrorMessage": {
        "type": "string",
        "description": "Text fields with custom validation only: the error message shown to the recipient when their input doesn't match the regex pattern. Required when validation is set to custom."
      },
      "DateFormat": {
        "type": "string",
        "enum": [
          "MM/DD/YYYY",
          "DD/MM/YYYY",
          "YYYY/MM/DD",
          "Month DD, YYYY",
          "MM/DD/YYYY hh:mm:ss a"
        ],
        "description": "Date format for date fields. Valid values: MM/DD/YYYY, DD/MM/YYYY, YYYY/MM/DD, Month DD, YYYY, MM/DD/YYYY hh:mm:ss a. Default: MM/DD/YYYY"
      },
      "CheckboxValidation": {
        "type": "string",
        "enum": [
          "minimum",
          "maximum",
          "range",
          "exact"
        ],
        "description": "Validation rule for checkbox groups"
      },
      "FileInfo": {
        "type": "object",
        "description": "File information",
        "properties": {
          "name": {
            "type": "string",
            "description": "File name"
          },
          "pages_number": {
            "type": "integer",
            "description": "Number of pages in the file"
          }
        },
        "required": [
          "name",
          "pages_number"
        ]
      },
      "LabelInfo": {
        "type": "object",
        "description": "Label information",
        "properties": {
          "id": {
            "type": "string",
            "description": "Label ID"
          },
          "name": {
            "type": "string",
            "description": "Label name"
          }
        }
      },
      "CheckboxGroupInfo": {
        "type": "object",
        "description": "Checkbox group configuration",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Checkbox group ID"
          },
          "group_name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the checkbox group"
          },
          "recipient_id": {
            "type": "string",
            "nullable": true,
            "description": "Recipient ID associated with the group"
          },
          "checkbox_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IDs of checkboxes in this group"
          },
          "validation": {
            "$ref": "#/components/schemas/CheckboxValidation",
            "nullable": true
          },
          "required": {
            "type": "boolean",
            "description": "Whether at least one checkbox must be checked"
          },
          "min_value": {
            "type": "integer",
            "description": "Minimum number of checkboxes to check"
          },
          "max_value": {
            "type": "integer",
            "description": "Maximum number of checkboxes to check"
          },
          "exact_value": {
            "type": "integer",
            "description": "Exact number of checkboxes that must be checked"
          }
        },
        "required": [
          "id",
          "checkbox_ids",
          "required"
        ]
      },
      "AttachmentRequestInfo": {
        "type": "object",
        "description": "Attachment request information",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the attachment request"
          },
          "url": {
            "type": "string",
            "format": "url",
            "description": "URL of the uploaded attachment (when available)"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the attachment is required"
          }
        },
        "required": [
          "name",
          "required"
        ]
      },
      "ConditionalRuleInfo": {
        "type": "object",
        "description": "Conditional rule configuration",
        "properties": {
          "id": {
            "type": "string",
            "description": "Conditional rule ID"
          },
          "target_id": {
            "type": "string",
            "description": "api_id of the field that owns the rule, or the external_id of a checkbox group when the rule is owned by a group (groups have no api_id)"
          },
          "action_type": {
            "type": "string",
            "enum": [
              "show",
              "hide",
              "require"
            ],
            "description": "Action applied to action_field_ids when the conditions are met"
          },
          "action_field_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "api_ids of fields the rule affects when triggered"
          },
          "conditions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "condition_type": {
                  "type": "string",
                  "enum": [
                    "any_of",
                    "all_of",
                    "none_of",
                    "not_all_of"
                  ],
                  "description": "How field_api_ids combine within this condition"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "completed",
                    "not_completed"
                  ],
                  "description": "Field state that satisfies this condition"
                },
                "join_operator": {
                  "type": "string",
                  "enum": [
                    "and_operator",
                    "or_operator"
                  ],
                  "description": "How this condition joins with the next one in the rule"
                },
                "field_api_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "api_ids of fields evaluated by this condition"
                },
                "position": {
                  "type": "integer",
                  "description": "Order of this condition within the rule"
                }
              }
            }
          }
        },
        "required": [
          "id",
          "target_id",
          "action_type"
        ]
      },
      "TemplateId": {
        "type": "string",
        "format": "uuid",
        "description": "Unique identifier for a template. A template that carries a pre-applied signature or initials field cannot be used while 21 CFR Part 11 is enabled, which requires every signature to be signed by the recipient: it returns a 422."
      },
      "DocumentTemplateResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "api_application_id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "requester_email_address": {
            "type": "string",
            "format": "email"
          },
          "custom_requester_name": {
            "type": "string",
            "nullable": true
          },
          "custom_requester_email": {
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "placeholders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "subject": {
                  "type": "string",
                  "nullable": true
                },
                "message": {
                  "type": "string",
                  "nullable": true
                },
                "preassigned_recipient_name": {
                  "type": "string"
                },
                "preassigned_recipient_email": {
                  "type": "string"
                },
                "signing_order": {
                  "type": "integer"
                },
                "attachment_requests": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AttachmentRequestInfo"
                  }
                },
                "passcode_delivery": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "nullable": true
                    },
                    "expire_after_access": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "copied_placeholders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "placeholder_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "subject": {
                  "type": "string",
                  "nullable": true
                },
                "message": {
                  "type": "string",
                  "nullable": true
                },
                "preassigned_recipient_name": {
                  "type": "string"
                },
                "preassigned_recipient_email": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "status": {
            "type": "string"
          },
          "reminders": {
            "type": "boolean",
            "nullable": true
          },
          "archived": {
            "type": "boolean"
          },
          "embedded_edit_url": {
            "type": "string",
            "format": "url",
            "nullable": true
          },
          "template_link": {
            "type": "string",
            "format": "url"
          },
          "template_id": {
            "type": "string",
            "nullable": true
          },
          "apply_signing_order": {
            "type": "boolean"
          },
          "redirect_url": {
            "type": "string",
            "format": "url",
            "nullable": true
          },
          "decline_redirect_url": {
            "type": "string",
            "format": "url",
            "nullable": true
          },
          "language": {
            "type": "string"
          },
          "expires_in": {
            "type": "integer",
            "nullable": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileInfo"
            }
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "format": "float"
                  },
                  "y": {
                    "type": "number",
                    "format": "float"
                  },
                  "page": {
                    "type": "integer"
                  },
                  "recipient": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "format": "email"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "email",
                      "name"
                    ]
                  },
                  "api_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "date_format": {
                    "$ref": "#/components/schemas/DateFormat"
                  },
                  "fixed_width": {
                    "type": "boolean"
                  },
                  "formula": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "lock_sign_date": {
                    "type": "boolean"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "type": {
                    "$ref": "#/components/schemas/FieldType"
                  },
                  "validation": {
                    "$ref": "#/components/schemas/TextValidation"
                  },
                  "validation_regex": {
                    "$ref": "#/components/schemas/ValidationRegex"
                  },
                  "validation_regex_error_message": {
                    "$ref": "#/components/schemas/ValidationRegexErrorMessage"
                  },
                  "value": {
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "nullable": true
                  },
                  "height": {
                    "type": "string"
                  },
                  "width": {
                    "type": "string"
                  },
                  "recipient_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "signing_elements_group_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "placeholder_name": {
                    "type": "string"
                  },
                  "options": {
                    "type": "array",
                    "description": "Dropdown options (for dropdown/select fields)",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "api_id": {
                          "type": "string"
                        },
                        "is_other": {
                          "type": "boolean"
                        }
                      }
                    }
                  },
                  "default_option": {
                    "type": "string",
                    "description": "Default selected option"
                  },
                  "allow_other": {
                    "type": "boolean",
                    "description": "Whether \"Other\" option is allowed"
                  }
                },
                "required": [
                  "x",
                  "y",
                  "page"
                ]
              }
            }
          },
          "allow_decline": {
            "type": "boolean",
            "nullable": true
          },
          "allow_reassign": {
            "type": "boolean",
            "nullable": true
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LabelInfo"
            }
          },
          "checkbox_groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CheckboxGroupInfo"
            }
          },
          "conditional_rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConditionalRuleInfo"
            }
          }
        },
        "required": [
          "id"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Standard error response",
        "properties": {
          "message": {
            "type": "string",
            "description": "Human-readable error message"
          },
          "meta": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Error code identifier"
              },
              "message": {
                "type": "string",
                "description": "Detailed error message"
              },
              "messages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "List of error messages"
              }
            },
            "required": [
              "error",
              "message"
            ]
          }
        }
      },
      "RateLimitErrorResponse": {
        "type": "object",
        "description": "Rate limit exceeded error response (HTTP 429)",
        "properties": {
          "error": {
            "type": "string",
            "description": "Rate limit error message indicating the limit and reset time"
          }
        },
        "required": [
          "error"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://www.signwell.com"
    }
  ]
}
```