Skip to content
Back

API Key missing scope of account

  • 0
  • Tools
  • Auth
  • Web
  • Cloud
Ryan Baig
29 May, 2025, 07:52
TypeScript
{
  message: 'app.almahdia@service.fra.cloud.appwrite.io (role: applications) missing scope (account)',
  code: 401,
  type: 'general_unauthorized_scope',
  version: '1.7.4'
}

I made this API Key to be used in middleware for locked routes, that require a login / session to be accessed. I dont know where the account scope is.

TL;DR
Developers made an API Key but encountered an error about missing account scope. The API Key is intended for middleware handling locked routes requiring login. Solution: Identify and add the missing account scope to the API Key.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more