API Reference
Server
User Activity

Get a user's portfolio activity usijng their user_id.

Headers

x-api-key : string
The S2S API Key provided by Okto.


Query Parameters

user_id : string
The user id of the user whose activity data is to be fetched.


limit : number
Number of records to return. Default is 10.


offset : number
Number of records to skip. Default is 0.


Code

curl -X GET '${baseUrl}/s2s/api/v1/portfolio/activity?user_id=80f5b553-4650-4943-9721-8db41d78ccc9&limit=10&offset=1'
-H 'accept: application/json' 
-H 'x-api-key: API_KEY'

Response

{
    "status": "success",
    "data": {
        "count": 75,
        "activity": [
            {
                "symbol": "USDC",
                "image": "",
                "name": "USD Coin",
                "short_name": "USDC",
                "id": "113b8bdb-d0a5-33f4-a95e-46f87f1f34fa",
                "group_id": "",
                "description": "Transaction with DAPP",
                "quantity": "0.1",
                "order_type": "WALLET_CONNECT",
                "transfer_type": "DEPOSIT",
                "status": "COMPLETED",
                "timestamp": 0,
                "tx_hash": "5eZVUhHAw5uwbnHUEofPFESZCcY65RMaqbkbkS6WzC5HAthcsuDXzpYcu3uRqcXJvyqbvfzQ79nX9cdTKmkkCghz",
                "network_id": "fb10a9ca-d197-378d-8fb3-fd95345571f3",
                "network_name": "SOLANA_DEVNET",
                "network_explorer_url": "https://solscan.io/tx/5eZVUhHAw5uwbnHUEofPFESZCcY65RMaqbkbkS6WzC5HAthcsuDXzpYcu3uRqcXJvyqbvfzQ79nX9cdTKmkkCghz?cluster=devnet",
                "network_symbol": "SOL DEVNET"
            },
            {
                "symbol": "SOL_DEVNET",
                "image": "",
                "name": "SOL",
                "short_name": "SOL_DEVNET",
                "id": "624cdf5d-987b-378e-a7fb-d3839e74e5bb",
                "group_id": "",
                "description": "Transaction with DAPP",
                "quantity": "0.01",
                "order_type": "WALLET_CONNECT",
                "transfer_type": "DEPOSIT",
                "status": "COMPLETED",
                "timestamp": 0,
                "tx_hash": "45qimRvrsVwRKx2CPxXHS3SCzDjm5gxNqbu6H2yP4fwnnXgKMhJT3NqXpzdxNrv53ftnv2JaHYnu98gXbuNedTnV",
                "network_id": "fb10a9ca-d197-378d-8fb3-fd95345571f3",
                "network_name": "SOLANA_DEVNET",
                "network_explorer_url": "https://solscan.io/tx/45qimRvrsVwRKx2CPxXHS3SCzDjm5gxNqbu6H2yP4fwnnXgKMhJT3NqXpzdxNrv53ftnv2JaHYnu98gXbuNedTnV?cluster=devnet",
                "network_symbol": "SOL DEVNET"
            },
            {
                "symbol": "USDC",
                "image": "",
                "name": "USD Coin",
                "short_name": "USDC",
                "id": "113b8bdb-d0a5-33f4-a95e-46f87f1f34fa",
                "group_id": "",
                "description": "Transaction with DAPP",
                "quantity": "0.1",
                "order_type": "WALLET_CONNECT",
                "transfer_type": "DEPOSIT",
                "status": "COMPLETED",
                "timestamp": 0,
                "tx_hash": "3vCj5mWrLS4qR1oUdBcQ7ajfcWH4FhTG7NDwfbVuWdS8Q8pQAED8XsR3XW3JFU4md5fTAFoGDyDiJGBRhz5Ga1Af",
                "network_id": "fb10a9ca-d197-378d-8fb3-fd95345571f3",
                "network_name": "SOLANA_DEVNET",
                "network_explorer_url": "https://solscan.io/tx/3vCj5mWrLS4qR1oUdBcQ7ajfcWH4FhTG7NDwfbVuWdS8Q8pQAED8XsR3XW3JFU4md5fTAFoGDyDiJGBRhz5Ga1Af?cluster=devnet",
                "network_symbol": "SOL DEVNET"
            },
            {
                "symbol": "SOL_DEVNET",
                "image": "",
                "name": "SOL",
                "short_name": "SOL_DEVNET",
                "id": "624cdf5d-987b-378e-a7fb-d3839e74e5bb",
                "group_id": "",
                "description": "Transaction with DAPP",
                "quantity": "0.01",
                "order_type": "WALLET_CONNECT",
                "transfer_type": "DEPOSIT",
                "status": "COMPLETED",
                "timestamp": 0,
                "tx_hash": "x1NgirgPhjeb8njuJ2tSjdP5jc4i1iPc3VzQc923XsEZq1wsGcSndRkSH2ns1PPkA7qyQWrUfFZ8VWCYFJBHvpm",
                "network_id": "fb10a9ca-d197-378d-8fb3-fd95345571f3",
                "network_name": "SOLANA_DEVNET",
                "network_explorer_url": "https://solscan.io/tx/x1NgirgPhjeb8njuJ2tSjdP5jc4i1iPc3VzQc923XsEZq1wsGcSndRkSH2ns1PPkA7qyQWrUfFZ8VWCYFJBHvpm?cluster=devnet",
                "network_symbol": "SOL DEVNET"
            }
        ]
    }
}