Back

[SOLVED] rest login ?

  • 0
  • Self Hosted
  • Accounts
  • Web
Waldemar
27 Sep, 2023, 14:53

have a way to authenticate using rest api > https://appwrite.io/docs/client/account#accountCreateEmailSession ?

TL;DR
The user is looking for help with REST login. They are trying to filter email in the search but it's not working as expected. The problem is solved by using the correct endpoint and ensuring the request is a POST. The user is also advised to refer to the REST documentation for more information.
Ernest
27 Sep, 2023, 14:59

Have you tried hostname/v1/account/sessions/email?

Waldemar
27 Sep, 2023, 15:00

yep

Waldemar
27 Sep, 2023, 15:00
Ernest
27 Sep, 2023, 15:00

Are you using cloud?

Waldemar
27 Sep, 2023, 15:00

yep

Ernest
27 Sep, 2023, 15:01

Hmm...Let me have a quick check on my end

Waldemar
27 Sep, 2023, 15:02

i'm using server to authenticate

Waldemar
27 Sep, 2023, 15:02

I'm not using the client, just the rest...

Ernest
27 Sep, 2023, 15:03

Oh ok, I can't test that unfortunately

Ernest
27 Sep, 2023, 15:04

Someone more knowledgeable would be here to help shortly.

Waldemar
27 Sep, 2023, 15:04

thanks πŸ˜„

Drake
27 Sep, 2023, 15:07

You can't include an API key with your request

Drake
27 Sep, 2023, 15:07

Also, it should be POST

Drake
27 Sep, 2023, 15:08

Make sure to check out our REST docs: https://appwrite.io/docs/rest#client-auth

Waldemar
27 Sep, 2023, 17:02

awesome, thanks πŸ˜„

Drake
27 Sep, 2023, 17:11

is your problem solved?

Waldemar
27 Sep, 2023, 17:16

yep, but i have another

Waldemar
27 Sep, 2023, 17:17

but it is listing users who don't have my email in the search...

Waldemar
27 Sep, 2023, 17:18

How do I filter this in a more effective way?

Drake
27 Sep, 2023, 17:29

you can start by reading this to better understand how search works: https://github.com/appwrite/appwrite/discussions/5005#discussioncomment-4681079

If you still need help, please create a new post

Drake
27 Sep, 2023, 17:29

[SOLVED] rest login ?

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