Circuit Incoming Webhooks enable you to easily post content to a given Circuit conversation.
A webhook is a specific unique URL generated by Circuit for a given user (or bot user) to post to a given conversation.
In effect, the URL encapsulates the ID of the conversation, the ID of the user posting and the ID of the webhook itself. Posting to this URL does not require authentication. As a result, the URL is meant to keep secret. If it was to shared or revealed, other users could publish on behalf of the webhook owner. In case the URL may have been comprimised, it can be re-generated.
This design is one of the strength of webhooks as they enable simple (friction less) integrations between applications
Pre-requisites
Incoming Webhooks are available to all users if the Circuit tenant admin enabled the feature for the tenant in the Circuit administration console.
Creating a webhook
curl --insecure -X POST https://yourcircuit.com/rest/v2/webhooks/incoming/1234392e25a0c-c88f-4eab-a27e-f88ccd657d17 -d '{"text": "This is the content of my post"}'
Formatting
Circuit supports bold, italic and highlited texts. It supports line breaks and ordered and lists with bullet points and numbered items. See the code below for examples :
line breaks.
It also supports bullet lists and numbered lists with
and >
."
}
Example
circuit-call-me-button
In this example, a page presents a form where users can enter their name and contact details. Upon submitting, a message is posted to a Circuit conversation so that Circuit participants can see incoming requests and get back to end users.
Circuit - Incoming Webhooks Let Us Call You Back
We'd hate to make you wait.
Leave us your name and phone number and we will call you right back.