Comment on page

User login

To access the Vana API, users must login with Vana to grant an application access to use their personalized model.
Vana currently only supports passwordless user authorization, which allows an application to authorize a user to make API calls.

Passwordless Authorization

To initiate a passwordless login session, use the Create Login endpoint, which sends a six-digit code to the user via email. This code can then be used to log in. To see an example of the process for a user to grant access, scroll to the bottom of the page here and try out creating an image of your face.
post
https://api.vana.com/api/v0/
auth/create-login
Create Login
Create Login CURL Example
curl -X POST https://api.vana.com/api/v0/auth/create-login \
-H 'Content-Type: application/json' \
-d '{
"email": "EMAIL"
}'
Have your users enter the email they used with their Vana account
post
https://api.vana.com/api/v0/
auth/login
Login
Login CURL Example
curl -X POST https://api.vana.com/api/v0/auth/login \
-H 'Content-Type: application/json' \
-d '{
"email": "EMAIL",
"code": CODE
}'