{
  "info": {
    "name": "Summize API - Flows",
    "description": "Summize External API end-to-end test flows.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apiKey": [
      {
        "key": "key",
        "value": "Ocp-Apim-Subscription-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{subscriptionKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api-gateway.summize.com/api",
      "description": "API base URL. Set this to your environment\u0027s APIM gateway URL."
    },
    {
      "key": "subscriptionKey",
      "value": "",
      "description": "Your subscription key. Obtain one in the settings area of your Summize app."
    },
    {
      "key": "requestorEmail",
      "value": "",
      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
    },
    {
      "key": "userId",
      "value": "",
      "description": "GUID of the user requesting the download. Either this OR \u0060outboundIntegrationId\u0060 must be supplied."
    },
    {
      "key": "outboundIntegrationId",
      "value": "",
      "description": "GUID of the outbound integration making the request. Either this OR \u0060userId\u0060 must be supplied."
    },
    {
      "key": "asklegalTemplateId",
      "value": "",
      "description": "Template ID for the Ask Legal request."
    },
    {
      "key": "asklegalQuestionId",
      "value": "",
      "description": "A question ID from the Ask Legal template."
    },
    {
      "key": "asklegalRequestId",
      "value": "",
      "description": "Populated automatically by the Initialise step."
    },
    {
      "key": "createTemplateId",
      "value": "",
      "description": "Template ID for the Create request."
    },
    {
      "key": "createRequestId",
      "value": "",
      "description": "Populated automatically by the Initialise step."
    },
    {
      "key": "reviewTemplateId",
      "value": "",
      "description": "Template ID for the Review request."
    },
    {
      "key": "reviewQuestionId",
      "value": "",
      "description": "A question ID from the Review template."
    },
    {
      "key": "reviewRequestId",
      "value": "",
      "description": "Populated automatically by the Initialise step."
    },
    {
      "key": "manageTemplateId",
      "value": "",
      "description": "Template ID for the Repository request."
    },
    {
      "key": "manageClientId",
      "value": "",
      "description": "Client ID to associate with the Repository request."
    },
    {
      "key": "manageMatterId",
      "value": "",
      "description": "Matter ID to associate with the Repository request."
    },
    {
      "key": "manageDocumentTypeId",
      "value": "",
      "description": "Document type ID for the Repository request."
    },
    {
      "key": "manageRequestId",
      "value": "",
      "description": "Populated automatically by the Initialise step."
    },
    {
      "key": "testDocumentId",
      "value": "",
      "description": "ID of a document to use in document flow tests."
    },
    {
      "key": "customFieldId",
      "value": "",
      "description": "ID of a custom field to use in custom field flow tests."
    },
    {
      "key": "targetContractId",
      "value": "",
      "description": "ID of the document to link to."
    }
  ],
  "item": [
    {
      "name": "Documents",
      "description": "Download main documents, linked documents and attachments.",
      "item": [
        {
          "name": "Document Name",
          "item": [
            {
              "name": "1. Get Document Name",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/name",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "name"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            },
            {
              "name": "2. Update Document Name",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/name",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "name"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022documentName\u0022: \u0022\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              }
            }
          ]
        },
        {
          "name": "Custom Fields",
          "item": [
            {
              "name": "1. Get Custom Fields",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/customfields",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "customfields"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            },
            {
              "name": "2. Create Custom Field",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/customfields",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "customfields"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022fieldValues\u0022: [\r\n    {\r\n      \u0022customFieldId\u0022: \u0022{{customFieldId}}\u0022,\r\n      \u0022value\u0022: \u0022\u0022\r\n    }\r\n  ],\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              }
            },
            {
              "name": "3. Update Custom Field",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/customfields/:customFieldId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "customfields",
                    ":customFieldId"
                  ],
                  "variable": [
                    {
                      "key": "customFieldId",
                      "value": ""
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022value\u0022: \u0022\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              }
            },
            {
              "name": "4. Delete Custom Field",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/customfields/:customFieldId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "customfields",
                    ":customFieldId"
                  ],
                  "variable": [
                    {
                      "key": "customFieldId",
                      "value": ""
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "name": "Calendar Events",
          "item": [
            {
              "name": "1. Get Calendar Events for Document",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/calendar-events",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "calendar-events"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            },
            {
              "name": "2. Create Calendar Event",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/calendar-events",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "calendar-events"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022,\r\n  \u0022eventType\u0022: 0,\r\n  \u0022eventDate\u0022: \u00222026-01-01T00:00:00Z\u0022,\r\n  \u0022description\u0022: {},\r\n  \u0022clauseId\u0022: 0,\r\n  \u0022noticePeriod\u0022: 0,\r\n  \u0022reminderDates\u0022: {},\r\n  \u0022includeInSummaryEmails\u0022: false,\r\n  \u0022isHiddenFromCalendar\u0022: false,\r\n  \u0022isEvergreen\u0022: false\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              }
            },
            {
              "name": "3. Update Calendar Event",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/calendar-events/:eventId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "calendar-events",
                    ":eventId"
                  ],
                  "variable": [
                    {
                      "key": "eventId",
                      "value": ""
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022,\r\n  \u0022eventType\u0022: 0,\r\n  \u0022eventDate\u0022: \u00222026-01-01T00:00:00Z\u0022,\r\n  \u0022description\u0022: {},\r\n  \u0022clauseId\u0022: 0,\r\n  \u0022noticePeriod\u0022: 0,\r\n  \u0022reminderDates\u0022: {},\r\n  \u0022includeInSummaryEmails\u0022: false,\r\n  \u0022isHiddenFromCalendar\u0022: false,\r\n  \u0022isEvergreen\u0022: false\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              }
            },
            {
              "name": "4. Delete Calendar Event",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/calendar-events/:eventId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "calendar-events",
                    ":eventId"
                  ],
                  "variable": [
                    {
                      "key": "eventId",
                      "value": ""
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "name": "Relationships",
          "item": [
            {
              "name": "1. Get Relationships",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/relationships",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "relationships"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            },
            {
              "name": "2. Create Counterpart",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/relationships",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "relationships"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022targetContractId\u0022: \u0022{{targetContractId}}\u0022,\r\n  \u0022type\u0022: \u0022Counterpart\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              }
            },
            {
              "name": "3. Delete Relationship",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/documents/v2/{{testDocumentId}}/relationships/:relationshipId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "documents",
                    "v2",
                    "{{testDocumentId}}",
                    "relationships",
                    ":relationshipId"
                  ],
                  "variable": [
                    {
                      "key": "relationshipId",
                      "value": ""
                    }
                  ]
                }
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Requests",
      "description": "Pre-signature: multi-step workflows for creating, reviewing, and managing contracts.",
      "item": [
        {
          "name": "Ask Legal",
          "item": [
            {
              "name": "1. Initialise",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});",
                      "",
                      "pm.test(\u0022Has id\u0022, function () {",
                      "     var data = pm.response.json();",
                      "    pm.expect(data).to.have.property(\u0022id\u0022);",
                      "    pm.collectionVariables.set(\u0022asklegalRequestId\u0022, data.id);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/asklegal",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "asklegal"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022templateId\u0022: \u0022{{asklegalTemplateId}}\u0022,\r\n  \u0022requestName\u0022: \u0022ExternalAPI (Ask Legal)\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Start a new Ask Legal request. Returns a pendingRequestId used in all subsequent steps. Typical flow: Initialise \u2192 Answers \u2192 Attachment (optional) \u2192 Process."
              }
            },
            {
              "name": "2. Set Answers",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/asklegal/{{asklegalRequestId}}/answers",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "asklegal",
                    "{{asklegalRequestId}}",
                    "answers"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022questionsAnswers\u0022: [\r\n    {\r\n      \u0022questionId\u0022: \u0022{{asklegalQuestionId}}\u0022,\r\n      \u0022answer\u0022: \u0022\u0022\r\n    }\r\n  ],\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Submit answers to the template questions for a pending Ask Legal request. Call this after initialising the request with the pendingRequestId returned from the Initialise step."
              }
            },
            {
              "name": "3. Upload Attachment 1",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/asklegal/{{asklegalRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "asklegal",
                    "{{asklegalRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Ask Legal request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "4. Upload Attachment 2",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/asklegal/{{asklegalRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "asklegal",
                    "{{asklegalRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Ask Legal request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "5. Upload Attachment 3",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/asklegal/{{asklegalRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "asklegal",
                    "{{asklegalRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Ask Legal request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "6. Process",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/asklegal/{{asklegalRequestId}}/process",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "asklegal",
                    "{{asklegalRequestId}}",
                    "process"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Submit the completed Ask Legal request for processing. This is the final step \u2014 once processed, the request cannot be modified. Use the Status endpoint to track progress after processing."
              }
            },
            {
              "name": "7. Get Status",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/requests/{{asklegalRequestId}}/status",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "{{asklegalRequestId}}",
                    "status"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "name": "Create",
          "item": [
            {
              "name": "1. Initialise",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});",
                      "",
                      "pm.test(\u0022Has id\u0022, function () {",
                      "     var data = pm.response.json();",
                      "    pm.expect(data).to.have.property(\u0022id\u0022);",
                      "    pm.collectionVariables.set(\u0022createRequestId\u0022, data.id);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/create",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "create"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022templateId\u0022: \u0022{{createTemplateId}}\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022,\r\n  \u0022requestName\u0022: \u0022ExternalAPI (Create)\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Start a new Create Request to generate a document from a template. Returns a pendingRequestId used in all subsequent steps. Typical flow: Initialise \u2192 Answers \u2192 Fields \u2192 Process."
              }
            },
            {
              "name": "2. Get Fields",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/requests/create/{{createRequestId}}/fields",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "create",
                    "{{createRequestId}}",
                    "fields"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                },
                "description": "Retrieve the field definitions available for the template and the current values set on a pending Create request. Use this to see which fields the template exposes and which have been set before processing."
              }
            },
            {
              "name": "3. Set Fields",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/create/{{createRequestId}}/fields",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "create",
                    "{{createRequestId}}",
                    "fields"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022,\r\n  \u0022fields\u0022: [\r\n    {\r\n      \u0022id\u0022: \u0022\u0022,\r\n      \u0022type\u0022: \u0022\u0022,\r\n      \u0022value\u0022: {\r\n        \u0022valueKind\u0022: \u0022...\u0022\r\n      }\r\n    }\r\n  ]\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Set field values on a pending Create Request. Fields can be updated multiple times before the request is processed."
              }
            },
            {
              "name": "4. Process",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/create/{{createRequestId}}/process",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "create",
                    "{{createRequestId}}",
                    "process"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Submit the completed Create request for processing. This is the final step \u2014 once processed, the request cannot be modified. Use the Status endpoint to track progress after processing."
              }
            },
            {
              "name": "5. Get Status",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/requests/{{createRequestId}}/status",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "{{createRequestId}}",
                    "status"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "name": "Review",
          "item": [
            {
              "name": "1. Initialise",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});",
                      "",
                      "pm.test(\u0022Has id\u0022, function () {",
                      "     var data = pm.response.json();",
                      "    pm.expect(data).to.have.property(\u0022id\u0022);",
                      "    pm.collectionVariables.set(\u0022reviewRequestId\u0022, data.id);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/review",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022templateId\u0022: \u0022{{reviewTemplateId}}\u0022,\r\n  \u0022requestName\u0022: \u0022ExternalAPI (Review)\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Start a new Review request to submit a document for review. Returns a pendingRequestId used in all subsequent steps. Typical flow: Initialise \u2192 Answers \u2192 Main Document \u2192 Linked Documents (optional) \u2192 Attachments (optional) \u2192 Process."
              }
            },
            {
              "name": "2. Set Answers",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/review/{{reviewRequestId}}/answers",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review",
                    "{{reviewRequestId}}",
                    "answers"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022questionsAnswers\u0022: [\r\n    {\r\n      \u0022questionId\u0022: \u0022{{reviewQuestionId}}\u0022,\r\n      \u0022answer\u0022: \u0022\u0022\r\n    }\r\n  ],\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Submit answers to the template questions for a pending Review request. Call this after initialising the request with the pendingRequestId returned from the Initialise step."
              }
            },
            {
              "name": "3. Upload Main Document",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/review/{{reviewRequestId}}/masterDocument",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review",
                    "{{reviewRequestId}}",
                    "masterDocument"
                  ]
                },
                "description": "Upload the main document (the primary contract file) for a pending Review request. This is typically the first upload step after initialisation."
              }
            },
            {
              "name": "4. Upload Linked Document",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/review/{{reviewRequestId}}/linkedDocument",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review",
                    "{{reviewRequestId}}",
                    "linkedDocument"
                  ]
                },
                "description": "Upload a linked document (e.g. variation, addendum) for a pending Review request. Multiple linked documents can be uploaded before processing."
              }
            },
            {
              "name": "5. Upload Attachment 1",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/review/{{reviewRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review",
                    "{{reviewRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Review request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "6. Upload Attachment 2",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/review/{{reviewRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review",
                    "{{reviewRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Review request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "7. Process",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/review/{{reviewRequestId}}/process",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "review",
                    "{{reviewRequestId}}",
                    "process"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Submit the completed Review request for processing. This is the final step \u2014 once processed, the request cannot be modified. Use the Status endpoint to track progress after processing."
              }
            },
            {
              "name": "8. Get Status",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/requests/{{reviewRequestId}}/status",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "{{reviewRequestId}}",
                    "status"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "name": "Repository",
          "item": [
            {
              "name": "1. Initialise",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});",
                      "",
                      "pm.test(\u0022Has id\u0022, function () {",
                      "     var data = pm.response.json();",
                      "    pm.expect(data).to.have.property(\u0022id\u0022);",
                      "    pm.collectionVariables.set(\u0022manageRequestId\u0022, data.id);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/manage",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "manage"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022clientId\u0022: \u0022{{manageClientId}}\u0022,\r\n  \u0022matterId\u0022: \u0022{{manageMatterId}}\u0022,\r\n  \u0022documentTypeId\u0022: \u0022{{manageDocumentTypeId}}\u0022,\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Start a new Repository request to add an existing document to the repository. Returns a pendingRequestId used in all subsequent steps. Typical flow: Initialise \u2192 Main Document \u2192 Linked Documents (optional) \u2192 Attachments (optional) \u2192 Process."
              }
            },
            {
              "name": "2. Upload Main Document",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/manage/{{manageRequestId}}/masterDocument",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "manage",
                    "{{manageRequestId}}",
                    "masterDocument"
                  ]
                },
                "description": "Upload the main document (the primary contract file) for a pending Repository request. This is typically the first upload step after initialisation."
              }
            },
            {
              "name": "3. Upload Linked Document",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/manage/{{manageRequestId}}/linkedDocument",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "manage",
                    "{{manageRequestId}}",
                    "linkedDocument"
                  ]
                },
                "description": "Upload a linked document (e.g. variation, addendum) for a pending Repository request. Multiple linked documents can be uploaded before processing."
              }
            },
            {
              "name": "4. Upload Attachment 1",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/manage/{{manageRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "manage",
                    "{{manageRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Repository request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "5. Upload Attachment 2",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "url": {
                  "raw": "{{baseUrl}}/requests/manage/{{manageRequestId}}/attachment",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "manage",
                    "{{manageRequestId}}",
                    "attachment"
                  ]
                },
                "description": "Upload a supporting attachment for a pending Repository request. Attachments are optional and can be added at any point before processing."
              }
            },
            {
              "name": "6. Process",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/requests/manage/{{manageRequestId}}/process",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "manage",
                    "{{manageRequestId}}",
                    "process"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n  \u0022requestorEmail\u0022: \u0022{{requestorEmail}}\u0022\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Submit the completed Repository request for processing. This is the final step \u2014 once processed, the request cannot be modified. Use the Status endpoint to track progress after processing."
              }
            },
            {
              "name": "7. Get Status",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/requests/{{manageRequestId}}/status",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests",
                    "{{manageRequestId}}",
                    "status"
                  ],
                  "query": [
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "name": "List Requests",
          "item": [
            {
              "name": "1. List Requests",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\u0022Status code is 200\u0022, function () {",
                      "    pm.response.to.have.status(200);",
                      "});"
                    ],
                    "type": "text/javascript"
                  }
                }
              ],
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/requests",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "requests"
                  ],
                  "query": [
                    {
                      "key": "source",
                      "value": "",
                      "description": "Filter by source type of the document."
                    },
                    {
                      "key": "requestor",
                      "value": "",
                      "description": "Filter by requestor User ID."
                    },
                    {
                      "key": "requestorGroup",
                      "value": "",
                      "description": "Filter by requestor Group ID."
                    },
                    {
                      "key": "assignedTo",
                      "value": "",
                      "description": "Filter by assigned-to User ID."
                    },
                    {
                      "key": "assignedToGroup",
                      "value": "",
                      "description": "Filter by assigned-to Group ID."
                    },
                    {
                      "key": "template",
                      "value": "",
                      "description": "Filter by template ID."
                    },
                    {
                      "key": "templateLookup",
                      "value": "",
                      "description": "Free-form text search in template names."
                    },
                    {
                      "key": "filter",
                      "value": "",
                      "description": "Pre-made filter type. Possible values [NoFilter, OnlyArchived]."
                    },
                    {
                      "key": "requestSubtype",
                      "value": "",
                      "description": "Filter by request subtype. Possible values [All, Standard, Freeform]."
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Filter by status. Comma separated values of RequestStageEnum names: Draft, Open, Negotiation, Negotiation3rdParty, ReadyForSignature, SentForSignature, NotSet, etc."
                    },
                    {
                      "key": "skip",
                      "value": "",
                      "description": "Zero-based offset for paging - number of documents to skip before returning results. Must be non-negative."
                    },
                    {
                      "key": "take",
                      "value": "",
                      "description": "Page size - maximum number of documents to return. Defaults to 10, capped at 100."
                    },
                    {
                      "key": "sortField",
                      "value": "",
                      "description": "Field name to sort the result set by. Defaults to \u0022RequestNumber\u0022."
                    },
                    {
                      "key": "order",
                      "value": "",
                      "description": "Sort direction, \u0022asc\u0022 or \u0022desc\u0022. Defaults to \u0022desc\u0022."
                    },
                    {
                      "key": "query",
                      "value": "",
                      "description": "Free-text search term applied to request number, template name, or other fields."
                    },
                    {
                      "key": "excludeParentRelationships",
                      "value": "",
                      "description": "If true, excludes parent relationships from the result."
                    },
                    {
                      "key": "excludedDocuments",
                      "value": "",
                      "description": "Document IDs to omit from results - typically used to hide already-selected items. Comma separated GUIDs."
                    },
                    {
                      "key": "requestorEmail",
                      "value": "{{requestorEmail}}",
                      "description": "Email address of the user making the request. Used to verify the caller\u0027s access to the underlying record."
                    }
                  ]
                }
              }
            }
          ]
        }
      ]
    }
  ]
}