/api/v1/message/?accountId__in=1,5,12
this is the right way to me, it is easy and straightforward.
/api/v1/message/?accountId__in=1&accountId__in=5&accountId__in=12
this way is strange and looks ugly.
of course, you need to add filtering = { 'accountId' : ALL } in the resource META.