You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webhooks.html
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,34 @@ <h1>Circuit Webhooks</h1>
56
56
<li>Open the sidebar and click on add an app or the + button</li>
57
57
<li>Name your incoming webhook and click on Create</li>
58
58
<li>>You will get the incoming webhook URL, copy it to clipboard</li>
59
-
<li>You can post to Circuit using this URL <br><code>curl --insecure -X POST https://yourcircuit.com/rest/v2/webhooks/incoming/1234392e25a0c-c88f-4eab-a27e-f88ccd657d17 -d '{"text": "*bold* `code` _italic_ ~strike~"}'</code></li>
59
+
<li>You can post to Circuit using this URL <br><code>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"}'</code></li>
60
60
</ol>
61
61
</p>
62
62
63
+
<p>
64
+
<strong>Formatting</strong>
65
+
<code>
66
+
<xmp>
67
+
json
68
+
{
69
+
"text": "<b>bold</b><i>italic</i>"
70
+
}
71
+
</xmp>
72
+
</code>
73
+
<br>
74
+
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 :
75
+
<code>
76
+
<xmp>
77
+
78
+
json
79
+
{
80
+
"text" : "Circuit supports <spanclass='rich-text-highlight'>highlighted text</span> and <br> line breaks.
81
+
It also supports bullet lists and numbered lists with <ul><li>item1</li><li>item2</li></ul> and ><ol><li>item1</li><li>item2</li></ol>."
0 commit comments