# Step 3 - User Account Information

In this Step, we will describe how you can collect the informations linked to the Users through the AccountId or PortfolioId.&#x20;

<figure><img src="/files/uqKSz2yMfdNfTkLt6dkE" alt=""><figcaption></figcaption></figure>

1 - This first endpoint will give you the possibility to collect all the data relating to a given User. By entering the **UserId**, you will access his name, surname, phone, email, **AccountId**, **SubAccountId**, **PortfolioId** and any other information you may have inserted.&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/user/me" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: user\_auth

2 -  With this second endpoint, you will be able to collect of the information related to an **AccountId:** email, **AccountId**, **SubAccountId**, **PortfolioId** and any other information you may have inserted.&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/account/{accountId}" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: client\_auth

3 - With this endpoint, you will be able to obtain the balance on any **AccountId**.&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/account/{accountId}/balance" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: client\_auth

4 - With this endpoint, you will be able to obtain all the information relating to on any **PortfolioId**.&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/account/portfolio/{accountId}/{portfolioId}" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: client\_auth


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stokn.gitbook.io/welcome-to-stokn.io/step-3-user-account-information.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
