# API for retrieving users

**URL:** <https://integration.keap.com/t/api-for-retrieving-users/34047>\
**Category:** API Q&A\
**Created:** [March 16, 2018, 9:19am UTC](https://integration.keap.com/t/api-for-retrieving-users/34047 "2018-03-16T09:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin\_Ivannikov](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@Konstantin\_Ivannikov](https://integration.keap.com/u/Konstantin_Ivannikov)\
**Post date:** [March 16, 2018, 9:19am UTC](https://integration.keap.com/t/api-for-retrieving-users/34047/1 "2018-03-16T09:19:23Z")

</div>

I need to import contacts from Infusionsoft and group them by owner (user), therefore I need a list of users.  
Is there a possibility to retrieve users (preferably all of them) via REST API request?  
Also it would be great to subscribe to a hook for new users.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Trecina](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/nicholas_trecina/32/5338_2.png) [@Nicholas\_Trecina](https://integration.keap.com/u/Nicholas_Trecina)\
**Post date:** [March 16, 2018, 10:49pm UTC](https://integration.keap.com/t/api-for-retrieving-users/34047/2 "2018-03-16T22:49:53Z")

</div>

Hi @Konstantin_Ivannikov, there currently isn’t a REST endpoint to retrieve users and there aren’t any rest hooks. I will pass this request along to our product manager so it can be prioritized and worked on.

However, you can use the XML-RPC API to query for users. A request like this should get you the list of users in an application.

```auto
<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>DataService.query</methodName>
  <params>
    <param>
      <value><string>{{privateKey}}</string></value>
    </param>
    <param>
      <value><string>User</string></value>
    </param>
    <param>
      <value><int>100</int></value>
    </param>
    <param>
      <value><int>0</int></value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>Id</name>
            <value>%</value>
          </member>
        </struct>
      </value>
    </param>
    <param>
      <value>
        <array>
          <data>
            <value><string>Id</string></value>
            <value><string>FirstName</string></value>
            <value><string>Email</string></value>
          </data>
        </array>
      </value>
    </param>
  </params>
</methodCall>

```

---

<div class="post-metadata">

**Author:** ![Konstantin\_Ivannikov](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@Konstantin\_Ivannikov](https://integration.keap.com/u/Konstantin_Ivannikov)\
**Post date:** [March 19, 2018, 8:20am UTC](https://integration.keap.com/t/api-for-retrieving-users/34047/3 "2018-03-19T08:20:39Z")

</div>

Thanks a lot! it works.
