Fetch User Profile

This API is to fetch profile details of a user


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/users
GRAPHQLstringQUERY
content-typestringJSONapplication/json
x-access-tokenstringsession token with validitytokenuser token

Request

{
  user_profile {
    data {
      _id
      name
      user_name
      email
      img
      wallets {
        _id
        wallet_address
        balance
        network
      }
    }
  }
}

Request Parameters


Success

{
    "data": {
        "user_profile": {
            "data": {
                "_id": "6361f2c3896b1861246f81cc",
                "name": "Sachin T S",
                "user_name": "sachints1524",
                "email": "sachinsuresh704@gmail.com",
                "img": null,
                "wallets": [
                    {
                        "_id": "6361f2d5896b181aa46f81d3",
                        "wallet_address": "8jULEWgWBsFoxGGBGgrD3tBGFsXNcKrDzbHRNgkrnTZf",
                        "balance": null,
                        "network": "solana"
                    },
                    {
                        "_id": "6361f2d5896b18be1a6f81d6",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "ethereum"
                    },
                    {
                        "_id": "6361f2d5896b1837676f81da",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "avalanche"
                    },
                    {
                        "_id": "6361f2d5896b186b066f81de",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "polygon"
                    },
                    {
                        "_id": "637377717678c447cd084937",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "eth_usdc"
                    },
                    {
                        "_id": "637377717678c4248108493b",
                        "wallet_address": "8jULEWgWBsFoxGGBGgrD3tBGFsXNcKrDzbHRNgkrnTZf",
                        "balance": null,
                        "network": "sol_usdc"
                    },
                    {
                        "_id": "637377717678c47ff108493f",
                        "wallet_address": "8jULEWgWBsFoxGGBGgrD3tBGFsXNcKrDzbHRNgkrnTZf",
                        "balance": null,
                        "network": "sol_usdt"
                    },
                    {
                        "_id": "63a421fa5cf19581bb24e187",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "polygon_matic"
                    },
                    {
                        "_id": "63a421fa5cf195f2c024e18b",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "polygon_usdc"
                    },
                    {
                        "_id": "63a421fa5cf19588f724e18f",
                        "wallet_address": "0xb26ADf2C03dA6Ab59029ab8F2eC365479d48a15d",
                        "balance": null,
                        "network": "polygon_usdt"
                    }
                ]
            }
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Unauthorized",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["user_profile"]
        }
    ],
    "data": {
        "user_profile": null
    }
}