Logging in
From DreamFactory
- Tutorial
- Log in as an Admin
The Admin login API is api/v2/system/admin/session
- API Endpoint
POST https://{url}/api/v2/system/admin/session
Request body:
{ "email": "user_email", "password": "password", "remember_me": bool }
- Example - Logging in as an Admin
- Request body:
{ "email": "[email protected]", "password": "secret", "remember_me": false }
- Request URL:
POST https://foo.com/api/v2/system/admin/session
> _Note: Set remember_me flag to 'true' in order to get a JWT (token) that can be refreshed forever (until logout) without authentication._
- Log in as an User (non-admin)
The User login API is api/v2/user/session
- API Endpoint
POST https://{url}api/v2/user/session
Request body:
{ "email": "user_email", "password": "password", "remember_me": bool }
- Example - Logging in as an User (non-admin)
- Request body:
{ "email": "[email protected]", "password": "secret", "remember_me": false }
- Request URL:
POST https://foo.com/api/v2/user/session
> _Note: Set remember_me flag to 'true' in order to get a JWT (token) that can be refreshed forever (until logout) without authentication._