I have found APIs to create, update and get conversations on gohighlevel. In documentation they mentioned “Creates a new conversation with the data provided” for POST request.
To make a POST call to
https://services.leadconnectorhq.com/conversations/
with body
body: {
"locationId": "tDtDnQdgm2LXpyiqYvZ6",
"contactId": "tDtDnQdgm2LXpyiqYvZ6"
}
And there will be response like:
{
"success": true,
"conversation": {
"id": "tDtDnQdgm2LXpyiqYvZ6",
"locationId": "tDtDnQdgm2LXpyiqYvZ6",
"contactId": "tDtDnQdgm2LXpyiqYvZ6",
"assignedTo": "tDtDnQdgm2LXpyiqYvZ6",
"userId": "tDtDnQdgm2LXpyiqYvZ6",
"lastMessageBody": "Hello, this is the message body",
"lastMessageDate": "1628008053263",
"lastMessageType": "TYPE_CALL",
"unreadCount": 1,
"inbox": true,
"starred": true,
"deleted": false
}
}
I want to create a conversation for a PhoneCall. How can i pass data in body of the request? there is no details in the documentation so if someone helps in it? please