Hi Koben are you on Aurora or Classic? I'm still on classic and only really familiar with that. So, here's how you would match multiple tags on classic with AND logic.
GET https://community.yourcommunity.com/api/2.0/search
[
{
"messages": {
"fields": [
"author.avatar.message",
"author.login",
"author.view_href",
"author.rank.name",
"author.rank.icon_right",
"author.rank.color",
"subject",
"post_time",
"post_time_friendly",
"view_href",
"replies.count(*)",
"metrics.views",
"user_context.read",
"replies"
],
"constraints": [
{
"board.id": "aktestboard",
"depth":0,
"tags.text": "tagone"
},
{
"tags.text": "tagtwo"
}
],
"limit":10,
"subQueries": {
"replies": {
"fields": [
"author.login",
"author.view_href",
"author.rank.name",
"author.rank.icon_right",
"author.rank.color",
"post_time"
],
"limit": 1
}
}
}
}
]
The important part being the constraints
"constraints": [
{
"board.id": "aktestboard",
"depth":0,
"tags.text": "tagone"
},
{
"tags.text": "tagtwo"
}
],
And if you want an OR logic instead you would do it this way
"constraints": [
{
"board.id": "aktestboard",
"depth":0,
"tags.text":{ "in":[ "tagone", "tagtwo" ] }
}
],
You can find a lot of guidance on Json queries here The Community API v2 request
And all the message fields and constraints etc. here messages
I suspect since you're looking for tags instead of labels you might be on Aurora but if not happy to help if you have any more questions.