### Install Yarn and Precompile Assets Source: https://github.com/docusealco/docuseal/wiki/Ubuntu-Setup Installs Yarn globally, installs Node.js dependencies, and precompiles assets for production using Shakapacker. ```shell npm install -g yarn yarn install RAILS_ENV=production ./bin/shakapacker ``` -------------------------------- ### Install System Dependencies on Ubuntu Source: https://github.com/docusealco/docuseal/wiki/Ubuntu-Setup Installs essential development libraries required for the project on Ubuntu systems using apt. ```shell sudo apt-get install git sqlite3 libsqlite3-dev libpq-dev libmariadb-dev libvips-dev ``` -------------------------------- ### Start Rails Server in Production Mode Source: https://github.com/docusealco/docuseal/wiki/Ubuntu-Setup Starts the Rails server with the production environment settings. ```shell RAILS_ENV=production ./bin/rails server ``` -------------------------------- ### Install Ruby Gems Source: https://github.com/docusealco/docuseal/wiki/Ubuntu-Setup Installs all the necessary Ruby gems specified in the project's Gemfile. ```shell bundle install ``` -------------------------------- ### Get a Specific Template (Java) Source: https://github.com/docusealco/docuseal/blob/master/docs/api/java.md This code example demonstrates how to fetch detailed information for a specific document template using its unique ID. Remember to substitute 'API_KEY' with your valid API key. ```java HttpResponse response = Unirest.get("https://api.docuseal.com/templates/1000001") .header("X-Auth-Token", "API_KEY") .asString(); ``` -------------------------------- ### Install Ruby Version with rbenv Source: https://github.com/docusealco/docuseal/wiki/Ubuntu-Setup Installs a specific Ruby version and sets it as the global default using rbenv. ```shell rbenv install 3.2.2 rbenv global 3.2.2 ``` -------------------------------- ### Run New DocuSeal Container with Latest Image Source: https://github.com/docusealco/docuseal/wiki/How-to-Update-DocuSeal-Docker-Image-to-the-Latest-Version Start a new DocuSeal container, naming it 'docuseal', mapping port 3000, and mounting the current directory to '/data'. ```bash docker run --name docuseal -p 3000:3000 -v.:/data docuseal/docuseal ``` -------------------------------- ### Get a Specific Submission C# Example Source: https://github.com/docusealco/docuseal/blob/master/docs/api/csharp.md Retrieve detailed information for a specific submission using its unique identifier. Remember to replace 'API_KEY' with your valid token and '1001' with the submission's ID. ```csharp var client = new RestClient("https://api.docuseal.com/submissions/1001"); var request = new RestRequest("", Method.Get); request.AddHeader("X-Auth-Token", "API_KEY"); var response = client.Execute(request); ``` -------------------------------- ### Create a Submission with Fields Source: https://github.com/docusealco/docuseal/blob/master/docs/api/ruby.md Example of creating a submission with various field types and configurations. Ensure all required field properties are correctly set. ```ruby require "docuseal" docuseal = Docuseal::Client.new( api_key: "YOUR_API_KEY", base_url: "https://api.docuseal.com" ) docuseal.submissions.create( title: "My first submission", template_id: "tpl_1234567890abcdef", fields: [ { "name": "name", "type": "text", "value": "John Doe", "x": 100, "y": 100, "width": 200, "height": 40, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "required": true }, { "name": "email", "type": "email", "value": "john.doe@example.com", "x": 100, "y": 150, "width": 200, "height": 40, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "required": true }, { "name": "date", "type": "date", "value": "12/31/2023", "x": 100, "y": 200, "width": 150, "height": 40, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "format": "MM/DD/YYYY", "required": true }, { "name": "signature", "type": "signature", "x": 100, "y": 250, "width": 150, "height": 50, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "format": "drawn_or_typed", "required": true }, { "name": "payment", "type": "payment", "value": 99.99, "currency": "USD", "x": 100, "y": 300, "width": 150, "height": 40, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "required": true }, { "name": "notes", "type": "textarea", "value": "Some notes here.", "x": 100, "y": 350, "width": 300, "height": 100, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "top", "required": false }, { "name": "checkbox", "type": "checkbox", "value": true, "x": 100, "y": 450, "width": 20, "height": 20, "font_size": 12, "font_color": "black", "background": "white", "align": "center", "valign": "center", "required": false }, { "name": "radio", "type": "radio", "value": "option1", "x": 100, "y": 480, "width": 100, "height": 30, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "options": ["option1", "option2", "option3"], "required": false }, { "name": "dropdown", "type": "dropdown", "value": "option2", "x": 100, "y": 520, "width": 150, "height": 30, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "options": ["option1", "option2", "option3"], "required": false }, { "name": "hidden_field", "type": "text", "value": "hidden value", "x": 100, "y": 560, "width": 200, "height": 40, "font_size": 12, "font_color": "black", "background": "white", "align": "left", "valign": "center", "mask": true, "required": false } ], "roles": ["submitter"] ) ``` -------------------------------- ### Get Submission Documents C# Example Source: https://github.com/docusealco/docuseal/blob/master/docs/api/csharp.md Fetch the documents associated with a specific submission. This includes partially filled documents or final signed documents if the submission is complete. Replace 'API_KEY' and '1001' as needed. ```csharp var client = new RestClient("https://api.docuseal.com/submissions/1001/documents"); var request = new RestRequest("", Method.Get); request.AddHeader("X-Auth-Token", "API_KEY"); var response = client.Execute(request); ``` -------------------------------- ### Get a specific submission by ID using Java Source: https://github.com/docusealco/docuseal/blob/master/docs/api/java.md Fetch details for a single submission using its unique identifier. Replace 'API_KEY' with your token and '1001' with the desired submission ID. This example utilizes the Unirest library. ```java HttpResponse response = Unirest.get("https://api.docuseal.com/submissions/1001") .header("X-Auth-Token", "API_KEY") .asString(); ``` -------------------------------- ### Create a Submission with Fields Source: https://github.com/docusealco/docuseal/blob/master/docs/api/shell.md Example of creating a submission with various field types and configurations. This includes text, date, signature, and payment fields with specific formatting and properties. ```json { "fields": [ { "type": "text", "label": "Full Name", "value": "John Doe", "required": true, "mask": false, "align": "left", "valign": "center" }, { "type": "date", "label": "Date of Birth", "value": "12/31/1990", "format": "MM/DD/YYYY", "required": true, "mask": false, "align": "center", "valign": "center" }, { "type": "signature", "label": "Signature", "value": "drawn_or_typed", "required": true, "mask": true, "align": "right", "valign": "top", "reasons": [ "I agree to the terms.", "This is my official signature." ] }, { "type": "payment", "label": "Total Amount", "value": 99.99, "currency": "USD", "required": true, "mask": false, "align": "right", "valign": "center", "price": 99.99 } ], "roles": [ "submitter", "approver" ] } ``` -------------------------------- ### List All Templates Go Source: https://github.com/docusealco/docuseal/blob/master/docs/api/go.md Use this Go code to make a GET request to the /templates endpoint to retrieve a list of all available document templates. Ensure you replace 'API_KEY' with your actual authentication token. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.docuseal.com/templates" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-Auth-Token", "API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### List All Templates Source: https://github.com/docusealco/docuseal/blob/master/docs/api/shell.md Use this endpoint to retrieve a list of all available document templates. Ensure your API key is correctly set in the X-Auth-Token header. ```shell curl --request GET \ --url https://api.docuseal.com/templates \ --header 'X-Auth-Token: API_KEY' ``` -------------------------------- ### Create Template from HTML Go Source: https://github.com/docusealco/docuseal/blob/master/docs/api/go.md Use this function to create a new template by providing HTML content. Ensure the HTML is well-formed. ```go } } } } } } } } ``` ``` -------------------------------- ### Get a template Source: https://github.com/docusealco/docuseal/blob/master/docs/api/csharp.md Retrieves information about a specific document template using its unique identifier. ```APIDOC ## GET /templates/{id} ### Description Retrieves information about a specific document template using its unique identifier. ### Method GET ### Endpoint /templates/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the document template. ### Request Example ```csharp var client = new RestClient("https://api.docuseal.com/templates/1000001"); var request = new RestRequest("", Method.Get); request.AddHeader("X-Auth-Token", "API_KEY"); var response = client.Execute(request); ``` ### Response #### Success Response (200) (Response schema not provided in source) ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/typescript.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## Get a submission ### Description The API endpoint provides the functionality to retrieve information about a submission. ### Method GET ### Endpoint /submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. Example: `1001`. ### Request Example ```typescript import docuseal from "@docuseal/api"; docuseal.configure({ key: "API_KEY", url: "https://api.docuseal.com" }); const submission = await docuseal.getSubmission(1001); ``` ### Response #### Success Response (200) - **submission** (object) - Details of the submission. ``` -------------------------------- ### Clone DocuSeal Repository and Navigate Source: https://github.com/docusealco/docuseal/wiki/Ubuntu-Setup Clones the DocuSeal project from GitHub and changes the current directory to the project root. ```shell git clone https://github.com/docusealco/docuseal.git cd docuseal ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/shell.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## GET /submissions/{id} ### Description Retrieves information about a specific submission. ### Method GET ### Endpoint https://api.docuseal.com/submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. Example: `1001`. ### Request Example ```shell curl --request GET \ --url https://api.docuseal.com/submissions/1001 \ --header 'X-Auth-Token: API_KEY' ``` ### Response #### Success Response (200) - **submission** (object) - The submission object containing details. - **id** (integer) - The unique identifier of the submission. - **status** (string) - The current status of the submission. - **created_at** (string) - The date and time the submission was created. - **updated_at** (string) - The date and time the submission was last updated. - **template_id** (integer) - The ID of the template used for the submission. - **submitter_email** (string) - The email of the submitter. - **submitter_name** (string) - The name of the submitter. - **submitter_phone** (string) - The phone number of the submitter. - **expires_at** (string) - The date and time the submission expires. - **signed_by** (array) - List of users who have signed the submission. - **documents** (array) - List of documents associated with the submission. ``` -------------------------------- ### Deploy DocuSeal with Docker Compose over HTTPS Source: https://github.com/docusealco/docuseal/blob/master/README.md Starts DocuSeal using Docker Compose, configured to run under a custom domain with automatic SSL certificate issuance via Caddy. Ensure your DNS points to the server. ```sh sudo HOST=your-domain-name.com docker compose up ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/php.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## Get a submission ### Description The API endpoint provides the functionality to retrieve information about a specific submission using its unique identifier. ### Method GET ### Endpoint /submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. Example: `1001`. ### Request Example ```php $docuseal = new \Docuseal\Api('API_KEY', 'https://api.docuseal.com'); $docuseal->getSubmission(1001); ``` ### Response #### Success Response (200) - **submission** (object) - The submission object containing detailed information. ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/java.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## GET /submissions/{id} ### Description Retrieves information about a specific submission using its unique identifier. ### Method GET ### Endpoint https://api.docuseal.com/submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. ### Request Example ```java HttpResponse response = Unirest.get("https://api.docuseal.com/submissions/1001") .header("X-Auth-Token", "API_KEY") .asString(); ``` ### Response #### Success Response (200) - **id** (integer) - The unique identifier of the submission. - **template_id** (integer) - The ID of the template used for the submission. - **status** (string) - The current status of the submission (`pending`, `completed`, `declined`, `expired`). - **created_at** (string) - The date and time the submission was created. - **expires_at** (string) - The date and time the submission expires. - **submitter** (object) - Information about the submitter. - **name** (string) - The name of the submitter. - **email** (string) - The email of the submitter. #### Response Example ```json { "id": 1001, "template_id": 123, "status": "completed", "created_at": "2023-10-27T10:00:00Z", "expires_at": "2023-11-26T10:00:00Z", "submitter": { "name": "John Doe", "email": "john.doe@example.com" } } ``` ``` -------------------------------- ### Configure DocuSeal API Key and URL Source: https://github.com/docusealco/docuseal/blob/master/docs/api/javascript.md Configure the DocuSeal API client with your API key and the base URL for the API. This setup is required before making any API calls. ```javascript const docuseal = require("@docuseal/api"); docuseal.configure({ key: "API_KEY", url: "https://api.docuseal.com" }); ``` -------------------------------- ### Create a template Source: https://github.com/docusealco/docuseal/blob/master/docs/api/shell.md Create a new document template. You can provide HTML content or upload a PDF file to define the template structure and fields. ```shell curl -X POST \ https://api.docuseal.co/v1/templates \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "My New Template", "html": "

Template Title

This is a template for signing.

", "fields": [ { "name": "name", "type": "text", "label": "Full Name", "required": true }, { "name": "date", "type": "date", "label": "Signing Date", "required": false } ] }' ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/ruby.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## Get a submission ### Description The API endpoint provides the functionality to retrieve information about a specific submission. ### Method GET ### Endpoint /submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. ### Response #### Success Response (200) - **submission** (object) - A submission object containing detailed information. ### Request Example ```ruby require "docuseal" Docuseal.key = ENV["DOCUSEAL_API_KEY"] Docuseal.url = "https://api.docuseal.com" Docuseal.get_submission(1001) ``` ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/nodejs.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## GET /submissions/{id} ### Description Retrieves information about a specific submission. ### Method GET ### Endpoint /submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. Example: `1001`. ### Request Example ```javascript const fetch = require("node-fetch"); const resp = await fetch("https://api.docuseal.com/submissions/1001", { method: "GET", headers: { "X-Auth-Token": "API_KEY" } }); const submission = await resp.json(); ``` ### Response #### Success Response (200) - **submission** (object) - The submission object containing detailed information. ``` -------------------------------- ### Download Docker Compose Configuration Source: https://github.com/docusealco/docuseal/blob/master/README.md Fetches the docker-compose.yml file from the official DocuSeal repository to set up multi-container deployments. ```sh curl https://raw.githubusercontent.com/docusealco/docuseal/master/docker-compose.yml > docker-compose.yml ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/javascript.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## Get a submission ### Description The API endpoint provides the functionality to retrieve information about a submission. ### Method GET ### Endpoint /submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. ### Response #### Success Response (200) - **submission** (object) - Submission details. ### Request Example ```javascript const docuseal = require("@docuseal/api"); docuseal.configure({ key: "API_KEY", url: "https://api.docuseal.com" }); const submission = await docuseal.getSubmission(1001); ``` ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/csharp.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## GET /submissions/{id} ### Description Retrieves information about a specific submission. ### Method GET ### Endpoint /submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. Example: 1001. ### Request Example ```csharp var client = new RestClient("https://api.docuseal.com/submissions/1001"); var request = new RestRequest("", Method.Get); request.AddHeader("X-Auth-Token", "API_KEY"); var response = client.Execute(request); ``` ### Response #### Success Response (200) - **submission** (object) - Detailed submission object. - **id** (integer) - The unique identifier of the submission. - **template_id** (integer) - The ID of the template used for the submission. - **status** (string) - The current status of the submission (e.g., "pending", "completed"). - **created_at** (string) - The timestamp when the submission was created. - **updated_at** (string) - The timestamp when the submission was last updated. - **submitter_email** (string) - The email of the submitter. - **submitter_name** (string) - The name of the submitter. - **archived** (boolean) - Indicates if the submission is archived. #### Response Example ```json { "submission": { "id": 1001, "template_id": 1, "status": "completed", "created_at": "2023-10-27T10:00:00Z", "updated_at": "2023-10-27T10:30:00Z", "submitter_email": "test@example.com", "submitter_name": "John Doe", "archived": false } } ``` ``` -------------------------------- ### List All Templates with Node.js Source: https://github.com/docusealco/docuseal/blob/master/docs/api/nodejs.md Use this snippet to fetch a list of all available document templates. Ensure you have the 'node-fetch' package installed and replace 'API_KEY' with your actual authentication token. ```nodejs const fetch = require("node-fetch"); const resp = await fetch("https://api.docuseal.com/templates", { method: "GET", headers: { "X-Auth-Token": "API_KEY" } }); const { data, pagination } = await resp.json(); ``` -------------------------------- ### Get a submission Source: https://github.com/docusealco/docuseal/blob/master/docs/api/go.md Retrieves detailed information about a specific submission using its unique identifier. ```APIDOC ## GET /submissions/{id} ### Description Retrieves information about a specific submission using its unique identifier. ### Method GET ### Endpoint https://api.docuseal.com/submissions/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the submission. Example: `1001`. ### Request Example ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.docuseal.com/submissions/1001" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-Auth-Token", "API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ### Response #### Success Response (200) (Response structure not provided in source) ``` -------------------------------- ### Create a Submission using Go Source: https://github.com/docusealco/docuseal/blob/master/docs/api/go.md Use this Go code to create a signature request for a document template. Ensure you replace 'API_KEY' with your actual authentication token and adjust the template_id and submitter details as needed. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.docuseal.com/submissions" payload := strings.NewReader("{\"template_id\":1000001,\"send_email\":true,\"submitters\":[{\"role\":\"First Party\",\"email\":\"john.doe@example.com\"}]}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-Auth-Token", "API_KEY") req.Header.Add("content-type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Get a template Source: https://github.com/docusealco/docuseal/blob/master/docs/api/shell.md Retrieves detailed information about a specific document template using its unique identifier. ```APIDOC ## GET /templates/{id} ### Description Provides the functionality to retrieve information about a document template. ### Method GET ### Endpoint https://api.docuseal.com/templates/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the document template. ### Request Example ```shell curl --request GET \ --url https://api.docuseal.com/templates/1000001 \ --header 'X-Auth-Token: API_KEY' ``` ``` -------------------------------- ### Create Submission from PDF using PHP Source: https://github.com/docusealco/docuseal/blob/master/docs/api/php.md Initializes the DocuSeal API client and demonstrates the structure for creating a submission from a PDF document. Use text tags or pixel coordinates to define fillable fields. Ensure the API key and endpoint are correctly configured. ```php $docuseal = new \Docuseal\Api('API_KEY', 'https://api.docuseal.com'); $docuseal->createSubmissionFromPdf([ 'name' => 'Test Submission Document', 'documents' => [ [ 'name' => 'string', 'file' => 'base64', 'fields' => [ [ 'name' => 'string', 'areas' => [ [ 'x' => 0, 'y' => 0, 'w' => 0, 'h' => 0, 'page' => 1 ] ] ] ] ] ], 'submitters' => [ [ 'role' => 'First Party', 'email' => 'john.doe@example.com' ] ] ]); ``` -------------------------------- ### Get a template Source: https://github.com/docusealco/docuseal/blob/master/docs/api/php.md Retrieves detailed information about a specific document template using its unique identifier. ```APIDOC ## Get a template ### Description The API endpoint provides the functionality to retrieve information about a document template. ### Method GET ### Endpoint /templates/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the document template. ### Request Example ```php $docuseal = new \Docuseal\Api('API_KEY', 'https://api.docuseal.com'); $docuseal->getTemplate(1000001); ``` ### Response #### Success Response (200) - **template** (object) - The template object containing its details. ``` -------------------------------- ### Create Template from PDF using Go Source: https://github.com/docusealco/docuseal/blob/master/docs/api/go.md Use this Go code to create a fillable document template from a PDF file. It sends a POST request to the API with the PDF content and template details. Ensure you replace 'API_KEY' with your actual authentication token and 'base64' with the base64-encoded PDF content. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.docuseal.com/templates/pdf" payload := strings.NewReader("{\"name\":\"Test PDF\",\"documents\":[{\"name\":\"string\",\"file\":\"base64\",\"fields\":[{\"name\":\"string\",\"areas\":[{\"x\":0,\"y\":0,\"w\":0,\"h\":0,\"page\":1}]}]}]}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-Auth-Token", "API_KEY") req.Header.Add("content-type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### List all templates Source: https://github.com/docusealco/docuseal/blob/master/docs/api/shell.md Retrieve a list of all available templates in your account. This is useful for managing and referencing templates in your workflows. ```shell curl -X GET \ https://api.docuseal.co/v1/templates \ -H 'Authorization: Bearer YOUR_API_KEY' ``` -------------------------------- ### Get a template Source: https://github.com/docusealco/docuseal/blob/master/docs/api/java.md Retrieves detailed information about a specific document template using its unique identifier. ```APIDOC ## GET /templates/{id} ### Description Provides the functionality to retrieve information about a document template using its unique identifier. ### Method GET ### Endpoint https://api.docuseal.com/templates/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The unique identifier of the document template. ### Request Example ```java HttpResponse response = Unirest.get("https://api.docuseal.com/templates/1000001") .header("X-Auth-Token", "API_KEY") .asString(); ``` ### Response #### Success Response (200) - **id** (integer) - The unique identifier of the template. - **name** (string) - The name of the template. - **slug** (string) - The unique slug for the template. - **folder** (string) - The folder the template belongs to. - **archived** (boolean) - Indicates if the template is archived. - **created_at** (string) - The timestamp when the template was created. - **updated_at** (string) - The timestamp when the template was last updated. - **fields** (array) - A list of fields within the template. - **external_id** (string) - The external identifier for the template. ```