Get User Information

Learn how to get a user's information using the Dropbox API endpoints.

In this lesson, we’ll explore some of the important endpoints of the users namespaceA declarative region that defines the scope of variables, functions, types, and so on.. These endpoints require us to enable the permission. We’ll interact with the following endpoints in this lesson:

  • get_current_account
  • get_space_usage

Note: We granted permission for in the previous lesson after we generated our access token.

Get current account details

The users namespace offers the following endpoint:
It’s used to retrieve a user’s information with the access token. It uses Bearer authorization and is defined in the header of the HTTP request. It utilizes an HTTP POST request and doesn’t take any parameters.

Let’s see this endpoint’s functionality in the code below.

Get hands-on with 1200+ tech skills courses.