{
  "opencollection": "1.0.0",
  "info": {
    "name": "PDFShift API Documentation account templates API",
    "version": "3.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-Key",
      "value": "{{X-API-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdfshift.io/v3/templates"
          },
          "docs": "Returns a list of templates registered to your account."
        },
        {
          "info": {
            "name": "Create template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.pdfshift.io/v3/templates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new template stored at PDFShift."
        },
        {
          "info": {
            "name": "Get template HTML",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pdfshift.io/v3/templates/:slug.html",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the raw HTML content of the template."
        },
        {
          "info": {
            "name": "Update template",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.pdfshift.io/v3/templates/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the name or content of a template. Slug cannot be changed."
        },
        {
          "info": {
            "name": "Delete template",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.pdfshift.io/v3/templates/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a template by slug."
        },
        {
          "info": {
            "name": "Generate document from template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.pdfshift.io/v3/templates/:slug.:ext",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "ext",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates a document from a template using provided data. Supported extensions: html, pdf, jpeg, png, webp."
        }
      ]
    }
  ],
  "bundled": true
}