How to pass API key to Azure template deployment

I am using my Plumsail Document in a few Azure Logic App. Problem is that I will deploy these Logic Apps using Powershell and a ARM template with the "New-AzResourceGroupDeployment" method. For some reason I cannot find any documentation on how to actually set the API key and Connection name in the template. What I have is below. The result of using this (it is a part of a larger template) that the API connection is created but I have to manually set the key and name of the connection. Is there any way I can use the template to actually set the key, I could pass this as a parameter?

{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('PlumsailName')]",
"location": "[parameters('Location')]",
"kind": "V1",
"properties": {
"displayName": "Documents (1000 per month)",
"statuses": [
{
"status": "Connected"
}
],
"parameterValues": {
"apikey": "[parameters('PlumsailKey')]"
},
"customParameterValues": {},
"nonSecretParameterValues": {},
"createdTime": "2019-09-25T06:27:53.7958771Z",
"changedTime": "2021-11-16T07:28:16.4535003Z",
"api": {
"name": "plumsail",
"displayName": "Plumsail Documents",
"description": "Generate documents from DOCX, XLSX, PPTX, HTML templates, and populate fillable PDF forms. Automate your contracts, invoices, reports, tickets, and more. Find more information at site https://plumsail.com/documents",
"iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1516/1.0.1516.2558/plumsail/icon.png",
"brandColor": "#7d4bcd",
"id": "[concat('/subscriptions/1b9f3c4b-f51b-44eb-9322-e8419883c5fd/providers/Microsoft.Web/locations/', parameters('Location'), '/managedApis/plumsail')]",
"type": "Microsoft.Web/locations/managedApis"
},
"testLinks": []
}
}

Hello @Bigbee31,

Please check out the following article about using Documents as REST API. You'll find some examples.

Use as REST API

Best regards,
Petr
Plumsail team