Got error when try to search files :
Endpoint :
curl --location ‘https://api.hubapi.com/files/2026-03/files/search?limit=1’
or
curl --location ‘https://api.hubapi.com/files/v3/files/search?limit=1’
Response :
{
“status”: “error”,
“message”: “Invalid search query”,
“correlationId”: “xxxxx”,
“category”: “VALIDATION_ERROR”
}
Hi @FadlyKnight,
Thank you for posting to the Community! I understand that you are receiving a Validation Error when trying to search files using the API.
I want to tag in some of our Top Contributors to see if they have experienced this before. Hi @Gonzalo @ChristinaKay and @Teun have any of you seen this error before? If so, how did you resolve it?
Cassie, Community Manager
It’s a bit confusing the API works when using one private token, but doesn’t work when using another private token. Both tokens have the files scope permission.