cURL
curl --request POST \ --url https://api.example.com/v2/databases/{database}/auth/signin \ --header 'Content-Type: application/json' \ --data ' { "email": "user@example.com", "password": "yourpassword" } '
{ "user": { "name": "User Name", "email": "user@example.com", "image": "https://example.com/user.png" } }
Authenticates a user and creates a session.
The string (id or name, depending on the credentials)
"user@example.com"
"yourpassword"
Successful authentication
Show child attributes
Was this page helpful?