Skip to content
Back

Dynamic API Key issue

  • 0
  • Functions
  • Cloud
varunarya
4 Aug, 2025, 15:56

I have created new function in Appwrite cloud. In function I using below code to initialize Appwrite client

const client = new Client() .setEndpoint(config.APPWRITE_ENDPOINT) .setProject(config.APPWRITE_PROJECT_ID) .setKey(req.headers['x-appwrite-key']);

But I am can see error in Appwrite function execution logs: "Appwrite API key not configured".

I am executing this function from React project using below code: functions.createExecution();

Why dynamic API key is not working? Am I missing anything here?

Thanks

TL;DR
Developers facing an issue with dynamic API key setup in an Appwrite cloud function. Error message "Appwrite API key not configured" appears. The issue might be related to how the API key is being set in the code. Double-check the key setup.
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