👋
Welcome to Stokn.io
  • 👋Welcome to Stokn.io
  • Overview
    • 💡What we do?
    • 🚀Our Features
      • Wallet as a Service
      • Trading as a Service
      • Staking as a Service
      • Portfolio ESG Scoring
      • KYC, KYB, KYT
    • 📱White Label Mobile App
  • USE CASES
    • đŸĻFor NeoBanks, Fintechs, Asset Managers
    • 👨‍đŸ’ŧFor Independant wealth managers
    • 💰For Crypto-Payments
  • HOW TO USE OUR API
  • đŸŽ¯Overview
  • 📝Step 1 - User Account Creation
  • 🔍Step 2 - User KYC
  • â„šī¸Step 3 - User Account Information
  • đŸ’ĩStep 4 - User Deposit & Withdrawal
  • 🔄Step 5 - Crypto conversion
  • 🔐Step 6 - User Get Wallet Information
  • 💸Step 7 - Dollar Cost Average
  • đŸŒŋStep 8 - Scoring ESG
Powered by GitBook
On this page

Step 3 - User Account Information

PreviousStep 2 - User KYCNextStep 4 - User Deposit & Withdrawal

Last updated 1 year ago

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

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.

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.

OAuth: client_auth

3 - With this endpoint, you will be able to obtain the balance on any AccountId.

OAuth: client_auth

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

OAuth: client_auth

â„šī¸
get
Authorizations
Responses
200
OK
*/*
get
GET /v1/user/me HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "userId": "text",
    "phoneNumber": "text",
    "name": "text",
    "surname": "text",
    "accounts": [
      {
        "accountId": "text",
        "email": "text",
        "subAccountId": "text",
        "subAccountEmail": "text",
        "encryptionKey": "text",
        "creationTs": "2025-06-01T12:10:15.197Z",
        "portfolios": [
          {
            "portfolioId": "text",
            "name": "text",
            "accountId": "text",
            "creationTs": "2025-06-01T12:10:15.197Z",
            "publicStrategy": true,
            "portfolioAccountType": "TRADING"
          }
        ],
        "additionalInfo": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "active": true,
        "tradingPortfolioId": "text"
      }
    ],
    "kycIds": [
      "text"
    ],
    "documentIds": [
      "text"
    ],
    "address": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "info": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "email": "text",
    "userAccountStatus": "text"
  },
  "errorCode": 1,
  "errorMessage": "text"
}
get
Authorizations
Path parameters
accountIdstringRequired
Responses
200
OK
*/*
get
GET /v1/account/{accountId} HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "accountId": "text",
    "email": "text",
    "subAccountId": "text",
    "subAccountEmail": "text",
    "encryptionKey": "text",
    "creationTs": "2025-06-01T12:10:15.197Z",
    "portfolios": [
      {
        "portfolioId": "text",
        "name": "text",
        "accountId": "text",
        "creationTs": "2025-06-01T12:10:15.197Z",
        "publicStrategy": true,
        "portfolioAccountType": "TRADING"
      }
    ],
    "additionalInfo": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "active": true,
    "tradingPortfolioId": "text"
  },
  "errorCode": 1,
  "errorMessage": "text"
}
get
Authorizations
Path parameters
accountIdstringRequired
Responses
200
OK
*/*
get
GET /v1/account/{accountId}/balance HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "accountId": "text",
    "ts": "2025-06-01T12:10:15.197Z",
    "portfolioBalances": [
      {
        "accountId": "text",
        "portfolioId": "text",
        "portfolioAccountType": "TRADING",
        "ts": "2025-06-01T12:10:15.197Z",
        "historicalBalancePrices": {
          "ANY_ADDITIONAL_PROPERTY": 1
        },
        "assetBalances": [
          {
            "portfolioId": "text",
            "ts": "2025-06-01T12:10:15.197Z",
            "asset": {
              "slug": "text",
              "name": "text",
              "logoUrl": "text",
              "availableNetworks": [
                "text"
              ]
            },
            "quantity": 1,
            "eurValue": 1,
            "usdValue": 1
          }
        ]
      }
    ]
  },
  "errorCode": 1,
  "errorMessage": "text"
}
get
Authorizations
Path parameters
accountIdstringRequired
portfolioIdstringRequired
Responses
200
OK
*/*
get
GET /v1/account/portfolio/{accountId}/{portfolioId} HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "portfolioId": "text",
    "name": "text",
    "accountId": "text",
    "creationTs": "2025-06-01T12:10:15.197Z",
    "publicStrategy": true,
    "portfolioAccountType": "TRADING"
  },
  "errorCode": 1,
  "errorMessage": "text"
}
  • GET/v1/user/me
  • GET/v1/account/{accountId}
  • GET/v1/account/{accountId}/balance
  • GET/v1/account/portfolio/{accountId}/{portfolioId}