How can I programmatically detect member login status through APIs or webhooks?

Post author
Jad Atoui

QQ about the APIs and/or the Zapier webhooks.  Is there a way to programmatically determine if a member has logged in?

Didnt see anything in the member.updated endpoint that could be leveraged.

We are automatically creating memberships and wanting to see if the users themselves actually try to login with the canned password we assign to them.

I notice in the dashboard that column says "-" if user hasnt tried to log in yet

Comments

6 comments

  • Comment author
    A J

    Hey Jad Atoui,

    The Last login information should be available i.e. I had tested fetching a member in Make and it does provide that information. I am guessing it should work the same way for Zapier as well.

    That being said, not sure if this memberscript would be helpful, but linking it just in case if you want to track users login history.

    Hope this gives you some idea.

    0
  • Comment author
    Jad Atoui

    cool thanks, would you know if it triggers for the Member Updated webhook?

    0
  • Comment author
    A J

    Jad Atoui, it might not show it in the payload of member.updated event, but you can have a second step to fetch the member and that would give you the relevant last login data

    0
  • Comment author
    Jad Atoui

    Ah okay thats why i didnt see it.  OK but does it trigger the webhook when it changes?

    0
  • Comment author
    A J

    Nope Jad Atoui, I believe there is no endpoint as such currently which triggers on login. But if you want you can build a custom script to trigger a custom webhook when a user logs in, say you have a page setup that user gets redirected to after a login.You can have the custom code in that page to post some data to the webhook.

    0
  • Comment author
    Duncan from Memberstack

    +1 to that last suggestion. That's what I was thinking as well

    0

Please sign in to leave a comment.