400 Bad request error in API V3 contact tag add

Hello, I need to add a tag to a contact using API.

I’m using Active Campaign resources according to API V3 documentation (Overview), making a POST request and adding the params as query params:

https://xxx.api-us1.com/api/3/contactTags?contact=9&tag=2

I have added api token in headers. In fact, I have used the API successfully to get other resources like contacts or lists.

However, making the request i just receive a 400 Bad request status, including the error No tag id provided. I have checked both tag id and contact id exist.

Could someone help me with this problem, please? It seems that I’m not building properly the request but that is what I understand from the documentation.

Thanks in advance

Did you ever get this resolved? We are having the same issue!

Hi I don’t know if it is the same problem
if you are doing a “Post” request you should’t use query params
you should add the contact and tag id as body params of your request

Thanks for the assist! Using your tip, I got it to work. Here’s what adding a tag to a contact looks like in Microsoft Flow: