Here’s what i see whenever i try setting up a new webhook, here’s what the response looks like on my connection:
“response”: {
“uid”: “{{body.locationId}}”,
"data": {
"expires": "{{addSeconds(now, body.expires_in)}}",
"accessToken": "{{body.access_token}}",
"refreshToken": "{{body.refresh_token}}"
}
}
Here’s a sample response from go high level ( the end point i am trying to use ) auth setup:
{
“access_token”: “ab12dc0ae1234a7898f9ff06d4f69gh”,
“token_type”: “Bearer”,
“expires_in”: 86399,
“refresh_token”: “xy34dc0ae1234a4858f9ff06d4f66ba”,
“scope”: “conversations/message.readonly conversations/message.write”,
“userType”: “Location”,
“locationId”: “l1C08ntBrFjLS0elLIYU”,
“companyId”: “l1C08ntBrFjLS0elLIYU”,
“approvedLocations”: [
“l1C08ntBrFjLS0elLIYU”
],
“userId”: “l1C08ntBrFjLS0elLIYU”,
“planId”: “l1C08ntBrFjLS0elLIYU”,
“isBulkInstallation”: “Bearer”
}
here is what the setup looks like on my shared webhook communications:
{
“uid”: “{{body.locationId}}”,
“output”: “{{body}}”
}
and here is a sample response from the webhook:
{
“type”: “OutboundMessage”,
“locationId”: “0d48aEf7q67DAu134bpy”,
“attachments”: [“call recording url”],
“contactId”: “gblakL5aYQC4glDtP1r2t3”,
“conversationId”: “SGDqZrzmwTr19d10aHkt9F”,
“dateAdded”: “2024-05-08T11:57:42.250Z”,
“direction”: “outbound”,
“messageType”: “CALL”,
“userId”: “xsmF1xxhmC92ZpL1lj7aLa”,
“messageId”: “tyW42xCD0HQpb3hhfLcx”,
“status”: “completed”,
“callDuration”: 120,
“callStatus”: “completed”
}
not sure what the problem is and what to do, everything looks right to me
