Skip to content
Back

Having problems with Appwrite API keyAnyone to help asap?

  • 0
  • 2
  • Self Hosted
  • Auth
Kwabena Kumi
19 Nov, 2025, 12:49

Having problems with Auth as a result of the API key Anyone to help asap?

TL;DR
You can't use an Appwrite API key for user authentication. Use Appwrite Auth to set up user authentication and follow the documentation for signup and login.
Kwabena Kumi
19 Nov, 2025, 12:55
20 Nov, 2025, 14:03

Hey! Let's continue our discussion from older thread here

20 Nov, 2025, 14:06

Okayy

20 Nov, 2025, 14:06

I searched about the issue you were facing. And found this: https://appwrite.io/threads/1235041279189061673?utm_source=chatgpt.com

20 Nov, 2025, 14:07

Oh okay

20 Nov, 2025, 14:07

This thread mentions that you can't use API key for user authentication. And which is why you were getting that guest role error

20 Nov, 2025, 14:08

They've clearly mentioned that you can't use API keys on client side as it's only meant to be used on server side

20 Nov, 2025, 14:09

And sorry earlier I misunderstood the issue that's why couldn't respond accordingly

20 Nov, 2025, 14:10

So how do I authenticate then?

20 Nov, 2025, 14:10

Don't worry.

20 Nov, 2025, 14:13

I'm going through as well Thanks

1
20 Nov, 2025, 14:15

Using Appwrite's very own service called Appwrite Auth

20 Nov, 2025, 14:16

You just have to set up a few things using it's in-built functions for both signup & login and then you can authenticate users

20 Nov, 2025, 14:17

Here are the docs for more info: https://appwrite.io/docs/products/auth

20 Nov, 2025, 14:17

If you still get stuck, just ping me!

20 Nov, 2025, 14:20

Hey! I've been able to sort it out now Thanks for your help! Much appreciated

1
20 Nov, 2025, 14:28

It's great to hear that 😊

1
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