cropped-cropped-cropped-cropped-cropped-activitylist-blue-1.png

Login

This API endpoint enables to login an existing user. 

Url

/api/v1/auth/login

Method

POST

Content-Type

application/json

Payload

 

{
    "username": "guest",
    "password": "guest123"
}

Response 201

        {
    "data": {
        "access_token": "B05v63_Lvw9yWtpfmV9tL17tsL7flbsg9xlOjNa7hY",
        "date_created": "2023-06-01T07:43:21.525403",
        "email": "guest_abc@guest.com",
        "id": 8,
        "is_verified": false,
        "last_updated": "2023-06-01T07:43:21.525410",
        "password": "$2b$12$6RBZf0dC2sCXNOeyFbL1MOXxIb",
        "user_detail": {
            "address": null,
            "date_created": "2023-06-01T07:43:21.529319",
            "facebook_profile": null,
            "id": 8,
            "insta_profile": null,
            "last_updated": "2023-06-01T07:43:21.529323",
            "phone_contact": null,
            "profile_picture": null,
            "tiktok_profile": null,
            "twitter_profile": null,
            "user_id": 8,
            "whatsapp_contact": null
        },
        "username": "guest_abc"
    },
    "message": "Login successful",
    "status": "success"
}