API for retrieving users

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.

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.

<?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>
1 Like

Thanks a lot! it works.