{
  "opencollection": "1.0.0",
  "info": {
    "name": "PDFfiller REST Applications Templates API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.pdffiller.com/v2/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates",
            "params": [
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number"
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Field to sort results by"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order"
              }
            ]
          },
          "docs": "Returns a list of all document templates."
        },
        {
          "info": {
            "name": "Create a template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.pdffiller.com/v2/templates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new document template from an uploaded file or URL."
        },
        {
          "info": {
            "name": "Get template by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Retrieves information about a specific template."
        },
        {
          "info": {
            "name": "Update a template",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.pdffiller.com/v2/templates/:template_id",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing document template."
        },
        {
          "info": {
            "name": "Delete a template",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.pdffiller.com/v2/templates/:template_id",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Removes the specified document template."
        },
        {
          "info": {
            "name": "Get template previews",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/previews",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieves preview images for a template."
        },
        {
          "info": {
            "name": "Download template PDF",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/download",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Downloads the filled template as a PDF file."
        },
        {
          "info": {
            "name": "Download original template document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/original_document",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Downloads the original uploaded document for the template."
        },
        {
          "info": {
            "name": "Get template roles",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/roles",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Retrieves available signature roles for a template."
        },
        {
          "info": {
            "name": "Get template fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/fields",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Retrieves all fillable fields defined in a template."
        },
        {
          "info": {
            "name": "Get filled documents for template",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/filled_documents",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number"
              }
            ]
          },
          "docs": "Retrieves all filled document instances created from a template."
        },
        {
          "info": {
            "name": "Get template constructor URL",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdffiller.com/v2/templates/:template_id/constructor",
            "params": [
              {
                "name": "template_id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the template"
              }
            ]
          },
          "docs": "Returns a URL to open the template in the PDFfiller constructor/editor."
        }
      ]
    }
  ],
  "bundled": true
}