"You must be logged in" Error on Public API Route

Hello, I have a public API route that is still giving me a GGT_UNKNOWN: You must be logged in to create a recipient error, even though all of my permissions and code are set correctly. My public API endpoint is located at https://date-manager-event.gadget.app/api. Here is what I have already confirmed: My route file (web/routes/api.js) has export const routeConfig = { allowPublicAccess: true }; set at the top. My recipient model has the create permission checked for the unauthenticated role. My recipient model has all the necessary fields (sessionId, sessionType, etc.). I have successfully deployed all changes to the production environment. I believe there may be an internal configuration issue with my project. Can you please take a look? Thank you.
2 Replies
Chocci_Milk
Chocci_Milk2w ago
Hello, You didn't set up the route correctly if you're trying to make a backend route. Please read these docs: https://docs.gadget.dev/guides/http-routes Please also note that spamming multiple channels is a bannable offence. Our team does support Mon-Fri, 9-5 EST. Please be patient and wait for assistance
Gizmo
Gizmo2w ago
Do you like this answer? ​

Did you find this page helpful?