User Login API
POST /login
Description
This API endpoint allows users to log in to their account by providing their email address and password. Upon successful authentication, the user receives an access token for secure and authenticated interactions with the platform.
Request Body
The request utilizes GraphQL to perform the login
mutation.
Mutation:
mutation login ($email: String!, $password: String!) {
login (email: $email, password: $password) {
accessToken
}
}
Variables:
{
"email": "<User_Email_Address>",
"password": "<User_Password>"
}
- email (String): The email address associated with the user's account.
- password (String): The password corresponding to the provided email address.
Response:
-
Success (200 OK):
{
"data": {
"login": {
"accessToken": "<Your_Access_Token>"
}
}
}accessToken
(String): The token to be used for authenticated requests to the platform.
-
Error (4XX/5XX):
- Appropriate error messages and status codes will be returned in cases of invalid credentials, unauthorized access, or server errors.