Skip to content
Back

[v1.8.1] Getting error "(role: applications) missing scopes (["documents.write"])"

  • 0
  • Self Hosted
  • Functions
Orion
1 Jun, 2026, 01:01

... but that scope doesn't exist.

I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got:

TypeScript
(role: applications) missing scopes (["documents.write"])

The thing is, that API key scope "documents" does not exist. Look at the web admin page for it (see attachment). I am assuming "applications" is the role for API stuff via functions.

What the heck is going on here?

TL;DR
Title: [v1.8.1] Error: "(role: applications) missing scopes (["documents.write"])"; Developers are encountering an error message about missing scopes ("documents.write") for the role "applications" when trying to run a function to modify database tables. The issue seems to involve a non-existent API key scope for "documents". Discussion includes confusion about the validity of the scope and the role involved, potentially related to API functions. A possible solution involves reviewing the API key configurations and ensuring the correct scopes are set up.
Orion
1 Jun, 2026, 01:03

please @ me

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