Searching Files

I am using NodeJS hubspot client api. After creating the client instance, I am calling the following method:

const response = await client.apiRequest({ method: 'GET', path: '/files/v3/files/search', defaultJson: true,});

However, the response is the following.
Shouldn’t this be list of the files?

{
 "size": 0,
 "timeout": 0
}

Not sure what am I doing wrong.

@AKaurin

Hi.

In my case, it works.

const hubspot = require('@hubspot/api-client');

const hubspotClient = new hubspot.Client({ apiKey or accessToken });
const response = await hubspotClient.apiRequest({
 path: '/files/v3/files/search',
 method: 'GET',
 defaultJson: true,
});

console.log(response.body);
/*
{
 results: [
 { ... }, 
 ....
 paging: { ... }
}
*/

Does the file exist on the target?

If you can, please paste all source code and response.

Thanks.