Get User's Game Sessions

This endpoint will get all the session that the user has joined it.

Query Parameters :

  • pageNumber ( optional, default : 0 ): to handle the pagination.

  • pageSize ( optional, default : 25 ) : to specify the number of items in content.

  • sortBy ( optional ) : specify the property you want to sort by.

  • sortDir ( optional, default : ASC ) : ASC - DESC

  • status ( optional ) : game status ( CREATED, ACTIVE, COMPLETED, CANCELED )

  • isFriendsOnly ( optional ) : to only get the "friends only" sessions ( true - false )

Response :

{
    "content": [
        {
            "id": 25,
            "roomId": "e6e92345-ae24-4d44-acd2-b2145d21c2aj",
            "gameId": 1,
            "entryToken": {
                "id": 1,
                "tokenId": "BANA",
                "tokenName": "bananaclip",
                "logoUrl": null,
                "metadata": {
                    "assetName": "42414e41",
                    "policyId": "3a89cf5f2f18887fcaec3d2e9bd4fee52caeaebc50f338ff23861cec",
                    "decimals": "4"
                },
                "volume": 6000
            },
            "roomEntry": 2000,
            "totalWager": 2000,
            "creator": {
                "id": 1,
                "username": "admin",
                "avatar": null
            },
            "participants": [
                {
                    "id": 1,
                    "username": "admin",
                    "avatar": null
                }
            ],
            "maxPlayers": 2,
            "isFriendsOnly": false,
            "status": "CREATED",
            "createdAt": "2025-03-03T11:22:38.859543Z"
        },
        {
            "id": 27,
            "roomId": "e6e92345-ae24-4d44-acd2-b2145d21c2aw",
            "gameId": 1,
            "entryToken": {
                "id": 1,
                "tokenId": "BANA",
                "tokenName": "bananaclip",
                "logoUrl": null,
                "metadata": {
                    "assetName": "42414e41",
                    "policyId": "3a89cf5f2f18887fcaec3d2e9bd4fee52caeaebc50f338ff23861cec",
                    "decimals": "4"
                },
                "volume": 6000
            },
            "roomEntry": 2000,
            "totalWager": 2000,
            "creator": {
                "id": 1,
                "username": "admin",
                "avatar": null
            },
            "participants": [
                {
                    "id": 1,
                    "username": "admin",
                    "avatar": null
                }
            ],
            "maxPlayers": 2,
            "isFriendsOnly": false,
            "status": "CREATED",
            "createdAt": "2025-03-05T11:24:20.179984Z"
        }
    ],
    "pageable": {
        "pageNumber": 0,
        "pageSize": 25,
        "sort": {
            "orders": [],
            "empty": true,
            "sorted": false,
            "unsorted": true
        },
        "offset": 0,
        "paged": true,
        "unpaged": false
    },
    "total": 2,
    "last": true,
    "totalElements": 2,
    "totalPages": 1,
    "size": 25,
    "number": 0,
    "sort": {
        "orders": [],
        "empty": true,
        "sorted": false,
        "unsorted": true
    },
    "numberOfElements": 2,
    "first": true,
    "empty": false
}

Last updated