REST2 - Unable to retrieve articles collection from API

Hi everyone,
I’m a RT noob so my apoplogies for possible mistakes and I’m using RT 5.0.7 with mysql.

I’m trying to use the REST2 API to retrieve the articles collection via API but I obtain an empty collection. I’m using basic auth with root credentials.

curl -si -u "root:mypwd" "https://myrt.com/REST/2.0/articles"
{
   "page" : 1,
   "pages" : 0,
   "per_page" : 20,
   "total" : 0,
   "count" : 0,
   "items" : []
}

The strange things is that if i try to access to single article by Id I get the article:

 curl -si -u "root:mypwd" "https://myrt.com/REST/2.0/article/1"
{
   "LastUpdated" : "2025-01-16T23:58:53Z",
   "Name" : "faq coda 1",
   "Parent" : "0",
   "SortOrder" : "0",
   "Created" : "2025-01-16T16:30:26Z",
...

Maybe a bug?

Thanks in advance for any help.

You need a query value, try:

❯ curl -si -u "root:password" -XPOST http://MyRT/REST/2.0/articles -H "Content-Type: application/json" --data-binary '[{ "field": "id", "value": 1 }]'

It works!!! Thanks!!!