List project's folders with ActivePieces API on Platform using api-key for auth

I need to list folders by projectId on a platform edition using API and api-key for auth. /folders route doesn’t work with api-key auth. Is this by design or am I missing something?
Thanks

Hi @maswiaph,

I just sent it as a bearer token in the Authorization header instead of an api-key, this should work!

This global API key is deprecated and will be removed soon.

Thank you,
Mo.

I have just updated to current :release image (0.20) - still having this issue.
I am not using global api-key from .env file. I am using api key created in Admin console > Settings > API keys - the one with value like “sk-…e2b8”
I am sending it in Authorization header with value “Bearer sk-…e2b8”

When I request projects:
/api/v1/projects/
it works ok

When I request flows by project:
/api/v1/flows/?projectId=02hOnyd081tYhhY24vEgt
it works ok

When I request folders by project
/api/v1/folders/?projectId=02hOnyd081tYhhY24vEgt
I am getting:
{“statusCode”:403,“error”:“Forbidden”,“message”:“Cannot read properties of undefined (reading ‘projectId’)”}

I think /folders route is not set up to accept api-key authorization.

Your API doc page (Overview - Activepieces) doesn’t mention /folders endpoint, but I can see it being called by web UI. Can you update the doc page please?

Thanks