Skip to main content

Thirdlane Connect Webhooks

Posted by NickJ on Wed, 05/03/2017

Hi Thirdlane Team,
I've been playing with the Webhooks in Connect but I haven't had any luck,
I've created a new Incoming Webhook like so:
Image removed.https://i.imgur.com/NK7Nq97.png

And I've been trying to call it via standard JSON Webhooks, but kind of guessing at this stage, I've tried the examples on Slack's developer portal just using CURL, but still no dice.

Is it possible for Andrew to post one of the examples he's got running on the Thirdlane internal system?


Submitted by Andrey Grunev on Tue, 05/09/2017 Permalink

Hello NickJ,

Use the following data structure: https://pastebin.com/XrH6x3Xx

Convert it to JSON, prepend "payload=" and POST it to your Webhook URL. Curl example:

curl -X POST -d 'payload={"text":"<https://www.thirdlane.com/products/thirdlane-connect|Thirdlane Connect>","attachments":[{"fields":[{"title":"Author","value":"Thirdlane"},{"title":"Year","value":"2017"},{"title":"Custom field","value":"Any other custom field"},{"title":"Custom field 2","value":"Yet another custom field"}],"text":"Thirdlane Connect adds messaging, voice, video, applications and CRM integrations to Thirdlane Multi Tenant and Thirdlane Business PBX platforms."}]}' https://www.example.com/integration/webhooks/6c6fbf8b8bdwhateveryourwebhookurlis

This will result in the following message in your channel:

Image removed.

Submitted by NickJ on Tue, 05/23/2017 Permalink

Thanks Andrey,
That worked great,
One thing I did notice is that it's only working on tenants I created on Thirdlane Version 8 not tenants that have been imported, but I've created a thread for that queery too,
Nick