{
  "name": "blue·auth · Manage signatures (pending · search · document)",
  "meta": {
    "templateCreatedBy": "blue·auth",
    "description": "Three GET nodes for signature management: list pending requests, search completed requests, and retrieve the signed document for a request. All use a Header Auth credential (Authorization: Bearer ba_…)."
  },
  "nodes": [
    {
      "parameters": {},
      "id": "trigger-manual",
      "name": "When clicking Test workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        220,
        360
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://blueauth.co/api/v1/signature-requests?status=pending&limit=20",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "id": "http-pending",
      "name": "List pending requests",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        200
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE",
          "name": "BlueAuth (Authorization: Bearer ba_…)"
        }
      }
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://blueauth.co/api/v1/signature-requests?status=completed&q=Contract&limit=20",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "id": "http-search",
      "name": "Search signed (q=Contract)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        360
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE",
          "name": "BlueAuth (Authorization: Bearer ba_…)"
        }
      }
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://blueauth.co/api/v1/signature-requests/PASTE_REQUEST_ID_HERE/document",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "id": "http-document",
      "name": "Get document (signedPdfUrl)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        520
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE",
          "name": "BlueAuth (Authorization: Bearer ba_…)"
        }
      }
    },
    {
      "parameters": {
        "content": "## ⚙️ Setup\nAdd a **Header Auth** credential to all three nodes: `Authorization` = `Bearer ba_…`.\nIn **Get document**, replace `PASTE_REQUEST_ID_HERE` with a real requestId.",
        "height": 150,
        "width": 560,
        "color": 7
      },
      "id": "note-setup",
      "name": "Sticky · Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        40
      ]
    },
    {
      "parameters": {
        "content": "## 🟦 Manage signatures\n• **List pending requests** — awaiting signatures\n• **Search signed** — use `q=` with a name, hash, or email\n• **Get document** — returns `signedPdfUrl`",
        "height": 480,
        "width": 300,
        "color": 5
      },
      "id": "note-manage",
      "name": "Sticky · Manage",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        820,
        160
      ]
    }
  ],
  "connections": {
    "When clicking Test workflow": {
      "main": [
        [
          {
            "node": "List pending requests",
            "type": "main",
            "index": 0
          },
          {
            "node": "Search signed (q=Contract)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get document (signedPdfUrl)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}
