Email Login
API usage for Email Login
Overview
This API endpoint allows you to login to your Xellar Embedded wallet account using User’s Email, and receive an OTP to verify the account.
- HTTP Method: POST
- Endpoint:
/api/<VERSION>/auth/login-otp
Request Body Parameters
email
(required): User’s chosen email.
Example Request Body
{
"email": "user_email"
}
Request
Request Headers
x-client-secret
(required if x-app-id is empty): Client Secret which was generated when create an app in Xellar Dashboard.x-app-id
(required if x-client-secret is empty): App Id which was generated when create an app in Xellar Dashboard. (You need to add your origin in Xellar Dashboard if using x-app-id)
Example Request Syntax
Response
The response will include a JSON object with the following properties:
status
(number): The HTTP status code of the response (e.g., 200 for success).message
(string): A message providing additional information about the operation.data
(object): An object containing the verification token
Example Response
{
"status": 200,
"message": "ok",
"data": {
"verificationToken": "your_verification_token_here"
}
}