PassThrough Requests for getting the expense attachment related fields

Sample PassThrough requeat for getting the list of possible values of folderId field in Add attachment to Expense Api for Netsuite.

List Folders

A cURL request could look like this:

curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--data '{
  "method": "POST",
  "path": "",
  "metadata": {
    "actionId": "folder#list"
  }
}'

and the response could look like the following:

{
    "success": true,
    "data": {
        "response": {
            "body": "{\"folders\": [{\"folderId\": \"-20\",\"name\": \"User Documents\",\"description\": \"User Documents Folder\",\"isInactive\": false,\"isPrivate\": false,\"type\": \"docFileCab:Folder\"},{\"folderId\": \"222\",\"name\": \"Bundle 20766\",\"description\": \"Folder for bundled objects\",\"isInactive\": false,\"isPrivate\": false,\"type\": \"docFileCab:Folder\",\"parentFolder\": {\"folderId\": \"-16\",\"name\": \"SuiteBundles\"}},{\"folderId\": \"223\",\"name\": \"Bundle 20142\",\"description\": \"Folder for bundled objects\",\"isInactive\": false,\"isPrivate\": false,\"type\": \"docFileCab:Folder\",\"parentFolder\": {\"folderId\": \"-16\",\"name\": \"SuiteBundles\"}}]}",
            "headers": {
                "Content-Type": "text/xml;charset=utf-8",
                "X-N-OperationId": "1debffd5-2c73-4e38-8ad7-54e0ff30dad6",
                "Strict-Transport-Security": "max-age=31536000",
                "X-Content-Type-Options": "nosniff",
                "Vary": "User-Agent",
                "Date": "Tue, 25 Nov 2025 11:38:34 GMT",
                "Transfer-Encoding": "chunked",
                "Connection": "Transfer-Encoding",
                "Akamai-GRN": "0.25adce17.1764070710.63cf9a8"
            }
        }
    }
}