@-mention using json fomat

I am posting a message on a chat group using webhook. I wonder if I can post a message with @-mention using json format. Apparently [@] does not work. Any available formatting?

i.e.

{
"message": "[@Yourname] sample text",
"metadata": "visitor"
}

Sorry for the delay, missed this one. That syntax is shorthand that the UI expands. If you edit your comment after tagging someone, you'll see that this:

[@Yourname]

gets expanded to something like:

[@Yourname](#/person/58ac6da13b85a31ea817748c)

That ID can be grabbed from the URL when looking at a person's profile or is user portion of the person's jabber ID if you retrieve their user config via api.

1 Like

@tim.smith I did not notice that I can see the actual syntax by edit. It works now. Thank you very much!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.