sdk.user.login()
elements.sdk.api.user
Login and get access token.
Login using the user's email and password. The endpoint returns a JWT access token that is needed to use the API.
Note: This endpoint does NOT require token authentication.
Parameters
- email (str) - The user's email address
- password (str) - The user's password
Returns
LoginResponse - Response containing the JWT access token
Example(s)
# Login and get access token
response = await sdk.user.login(
email="[email protected]",
password="your-password"
)
# Use the token for subsequent API calls
token = response.access_tokenUpdated 6 months ago