1. Home
  2. Knowledge Base
  3. Admin
  4. Webhooks – Encoding square brackets

Webhooks – Encoding square brackets

When writing webhooks to integrate BuddyCRM with an external system, there will sometimes be a need to utilise square brackets [ or ] as part of the required code.

BuddyCRM already utilises square brackets to accommodate Merge Tags to pull information in dynamically from the BuddyCRM database. Because square brackets already have a purpose, we need to encode square brackets slightly differently in our Webhook Template so that they will function properly when used.

Cleverly, the BuddyCRM developers have added the following delimiters for [ ] tags:

[ – #*#

] – *#*

Here is a working example, if my code should be:

“test_documents”: [
{
“document_title”: “Welcome pack for [FIRSTNAME]”
]

I would replace this with the following in the BuddyCRM Webhook Template:

“test_documents”: #*#
{
“document_title”: Welcome pack for [FIRSTNAME]”
*#*

For hints, tips or further assistance with webhooks, please contact the BuddyCRM customer success team on support@buddycrm.com.

Updated on May 6, 2025

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT