Following the Django API quickstart guide couldn't get the UserModel to have 'is_authenticated' to True

Getting a response to private view as:

{
    "detail": "You do not have permission to perform this action."
}

Need help understanding where am I going wrong.