{
  "opencollection": "1.0.0",
  "info": {
    "name": "LendKey E-Sign API (via Kong Gateway) Application Contracts Lender Templates API",
    "version": "0.1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Lender Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search/List Templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.lendkey.com/esign/templates",
            "params": [
              {
                "name": "lender_uuid",
                "value": "550e8400-e29b-41d4-a716-446655440000",
                "type": "query",
                "description": "Filter templates by lender UUID"
              }
            ]
          },
          "docs": "Retrieves all DocuSign templates (including soft deleted).\nIf lender_uuid is provided, only templates for that lender will be returned.\n\n**Kong Route:** `/templates`\n**Backend:** `/templates`\n"
        },
        {
          "info": {
            "name": "Assign Template to Lender",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.lendkey.com/esign/templates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assigns a DocuSign template to a lender.\nIf the lender already has an active template, it will be soft deleted and replaced with the new template.\n\n**Kong Route:** `/templates`\n**Backend:** `/templates`\n"
        },
        {
          "info": {
            "name": "Get Template by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.lendkey.com/esign/templates/:id",
            "params": [
              {
                "name": "id",
                "value": "123",
                "type": "path",
                "description": "Template ID"
              }
            ]
          },
          "docs": "Retrieves a DocuSign template by its ID (includes soft deleted templates).\n\n**Kong Route:** `/templates/{id}`\n**Backend:** `/templates/{id}`\n"
        },
        {
          "info": {
            "name": "Get Templates by Lender and Program",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.lendkey.com/esign/templates/:lender_uuid/program/:program_id",
            "params": [
              {
                "name": "lender_uuid",
                "value": "550e8400-e29b-41d4-a716-446655440000",
                "type": "path",
                "description": "Lender UUID"
              },
              {
                "name": "program_id",
                "value": "1234567890",
                "type": "path",
                "description": "Program identifier"
              }
            ]
          },
          "docs": "Retrieves the active DocuSign template for a specific lender and program.\n\n**Kong Route:** `/templates/{lender_uuid}/program/{program_id}`\n**Backend:** `/templates/{lender_uuid}/program/{program_id}`\n"
        }
      ]
    }
  ],
  "bundled": true
}