Skip to content
Back

REST API - MISSING SCOPE

  • 0
  • REST API
  • Cloud
Steve64
16 Feb, 2025, 10:33

I need to use the REST API from a Windows client desktop application. I created a database with proper permissions ('any' or even 'users') for all my collections and their documents. Using a key everything works fine, but when trying to use an email+password account I got the following error: list_collections failed 401 {"message":"s_antoniaz@hotmail.com (role: users) missing scope (collections.read)","code":401,"type":"general_unauthorized_scope","version":"1.6.1"}

TL;DR
Developers trying to use REST API from Windows client desktop applications might encounter a missing scope error when using email+password accounts. This is due to missing scope (collections.read) for the specified user. To resolve this, make sure to grant the necessary scope permissions (collections.read) to the user account to access the collections successfully.
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