# Retrieving my user details

In the previous chapter you already requested a session and as a response received the user object. If you saved that in your app you already have a reference to who your user is. The most important item to keep track of is the userid. As that's what we'll need in the next few steps.&#x20;

#### What we have done so far

* We have created a sandbox user, and generated an API key
* We have created a installation and registered a device
* We generated a session and now know the user ID and Session token

In the next chapter we'll use these to make our API calls

## Who is my user, and what is his current balance?&#x20;

To retrieve our user we simply can do a API call to the user endpoint and this will return us our current user. We already had this information from the previous step. The important thing to save here is the user ID. We'll need to pass it as a url parameter in the next calls.&#x20;

{% openapi src="<https://raw.githubusercontent.com/bunq/doc/master/swagger.json>" path="/user" method="get" %}
<https://raw.githubusercontent.com/bunq/doc/master/swagger.json>
{% endopenapi %}

## So, what is the balance of our user?&#x20;

We'll we need just one more step that is to call the monetary-account-bank endpoint. This endpoint lists all monetary accounts we know for this user. The response contains a list of monetary accounts.&#x20;

Take note of the monetary account ID, most of the API calls reference both the user ID as well as the ID of the thing you are performing your actions on.  To answer the question: what is the balance of our user. You can see that the newly created user comes with 1 monetary account, with a balance of €0.00. Let's add some money to the account!&#x20;

```json
"Response": [
        {
            "MonetaryAccountBank": {
                "id": 2026814,
                "created": "2025-03-05 16:12:01.255073",
                "updated": "2025-03-05 16:12:01.255073",
                ... more key value pairs ... 
                }
                "balance": {
                        "currency": "EUR",
                        "value": "0.00"
                    },

        }
    ]
```

{% openapi src="<https://raw.githubusercontent.com/bunq/doc/master/swagger.json>" path="/user/{userID}/monetary-account-bank" method="get" %}
<https://raw.githubusercontent.com/bunq/doc/master/swagger.json>
{% endopenapi %}
