Back

How to use the REST API via HTTP client

  • 0
  • Self Hosted
  • Web
  • REST API
ginn
15 Sep, 2024, 17:55

I am currently evaluating AppWrite for a small personal project and I ran into a issue with the REST API.

I am using an HTTP client to evaluate the functionality but the docs seem to be incomplete. I created a user through the dashboard and can successfully log in. A request to /account/sessions/email returns a session token but all endpoints expect a JWT and I can't seem to find any documentation on how to get a JWT on the client-side. If I am not mistaken the /account/jwt endpoint is meant to be used with edge functions.

TL;DR
Issue with using REST API via HTTP client for AppWrite. Successfully logged in but endpoints require JWT, docs lack info on client-side JWT. `/account/jwt` endpoint for edge functions.
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