# 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="https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FxphV82zuI6L6hPylvg5M%2FCapture%20d%E2%80%99e%CC%81cran%202023-12-13%20a%CC%80%2011.35.15.png?alt=media&#x26;token=bd405b91-f9c9-4ace-b45e-ff7667a9021a" 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="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" 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="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" 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="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" 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="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" 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
