Mautic Community Forums

Add / Remove tags using JavaScript?

Hi

I am doing some customization to the Contact View. What I would like to do now is to be able to add and remove some tags to the contact. Can I do this with pure JavaScript and AJAX or do I need to develop something in the backend?
Can I somehow use the REST API as a logged in user over javascript?

Kind regards
Jens

Hi @jensolsson .

Have you checked out Mautic Developer Documentation

Hi Mike

Yes I did. And the REST api is well documented. But cannot understand if i can use it via javascript from a logged on user.

Jens

This doc describes it better:

Look for mt() Events!