Generate access token
POST
/v1/auth/login
Returns an access token for a user
Header parameters
OriginstringOptionalExample:
yuretech.dev.momofingo.com
Body
emailstringOptionalExample:
[email protected]
passwordstringOptionalExample:
password
Responses
200
OK
application/json
400
Bad Request
application/json
post
POST /auth/login HTTP/1.1
Host: {{base_url}}v1
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"email": "[email protected]",
"password": "test123!"
}
{
"code": 200,
"success": true,
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "47f1eae8-2f4f-448c-b98d-28e5fcbdf380",
"account": {
"fullname": "bowo test",
"email": "[email protected]",
"business_id": "6e5d6790-f850-11ec-926e-d9207c602237",
"is_reset": true
},
"activation": {
"status": "uncomplete",
"data": {
"business_info": false,
"business_detail": false,
"personal_info": false,
"business_documents": false,
"email_verification": true
}
}
}
}
Last updated