Skip to main content
Contributor I
Nov 29, 2024 6:06 AM UTC
Solved

Regarding api

How to list all users thorugh api.
 

 

    This topic has been closed for replies.
    chloe.strange
    Community Manager
    Dec 19, 2024 1:29 PM UTC

    Hi ​@deependra123,

    The ajax calls can only be made in the context of a logged-in browser session, not the API. 

    With that said, I have submitted a feature request for “get all users” on your behalf. 

    ~Chloe

    6 replies

    Klaviyo Employee
    Nov 29, 2024 3:23 PM UTC

    Hi, currently you can’t fetch admin users through the API.

    What’s the use case, what are you trying to do to automate getting an account’s users (and possibly their roles)?

    Contributor I
    Dec 4, 2024 5:59 AM UTC

    In klavyo we can invite or add member in same account. In krispcall integration with klaviyo, we have the ability to integrate with different member of klaviyo. While integrating klaviyo from our platform, we want to save the user_id of logged in member of klaviyo in our database . since there is not api regarding getting current user api or to list the user api , we are not able to save it in our database. There is only account api which return account id which is same for all user.

    Klaviyo Employee
    Dec 4, 2024 12:37 PM UTC

    Hi, even if the API could fetch a list of account users, there’d still be no concept of “the current/logged in user”. API calls happen outside of a browser session and aren’t tied to a specific account (rather, each key has a set of access scopes).

    Contributor I
    Dec 6, 2024 6:10 AM UTC

    After inspecting in browser tab , there is api to list all users which is 

    https://www.klaviyo.com/ajax/account/users/get, but this api is not accessible . We want api which give us the logged in user deatail after perfroming oAuth with klaviyo.

    chloe.strange
    Community Manager
    Community Manager
    Dec 19, 2024 1:29 PM UTC

    Hi ​@deependra123,

    The ajax calls can only be made in the context of a logged-in browser session, not the API. 

    With that said, I have submitted a feature request for “get all users” on your behalf. 

    ~Chloe

    talhahussain
    Expert Problem Solver I
    Expert Problem Solver I
    Dec 20, 2024 10:40 AM UTC

    This discussion on API integration is super helpful! APIs play such a critical role in streamlining data and enhancing workflows in Klaviyo. Thanks for sharing these insights it's always great to learn more about optimizing API usage. Looking forward to more discussions like this! 

     

     

    Talha Hussain - Email Marketing Specialist - talhahussain1100@gmail.com