Welcome to the new Box Support website. Check out all the details here on what’s changed.

Is there any Box Event API to capture user creation and login

New post

Comments

4 comments

  • Murtza

     New user creation and login events are both available through our Enterprise Events endpoint

     

    When you query the Enterprise Events endpoint, you can filter for specific event types using the event_type parameter. The API event name for new user creation is "NEW_USER". The API event name for login is "LOGIN". 

     

    0
    Comment actions Permalink
  • Box Product Support

    Thank you for pointing me to right direction Murtza.

     

    On the same events, how will I know that there are more events left that I need to fetch if I am picking just 200 events at a time ( with limit=200) lets say since created_after=01/01/2017? is there any flag/attribute that is returned in the result that says there are more events than initial 200 fetch ?

     

    Also what is the max events limit, for limit param ?

     

    Thank You

    0
    Comment actions Permalink
  • Murtza

     The response will include an attribute called "next_stream_position" to get the next set of events. The response will also include an attribute called "chunk_size" that notes how many events were returned. If you are using 200 as the limit and the chunk_size returned is less than 200, you will know there are currently no more events to return. 

     

    I am confirming the max limit and will update this thread once I have that information.

    0
    Comment actions Permalink
  • Murtza

     The max limit is 500 events. I will update the documentation with this information.

    0
    Comment actions Permalink

Please sign in to leave a comment.