Fetch All Creators

This API is for to get list of all creators


GRAPHQL


Headers

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

Request

{
  list_all_creators(page_size: 10, page_number: 1) {
    message
    data {
      _id
      name
      email
      img
      wallet_id {
        _id
        wallet_id
      }
    }
    hasMore
  }
}


Request Parameters

FieldsTypeDescriptionRequired
page_sizeintegertotal number of data to be displayed
page_numberintegerpage number to filter data

Success

{
    "data": {
        "list_all_creators": {
            "message": "data listed",
            "data": [
                {
                    "_id": "62299c9254f6c2bcd4b2f09a",
                    "name": "Sachin T S",
                    "email": "sachinsuresh704@gmail.com",
                    "img": null,
                    "wallet_id": {
                        "_id": "6229df0fcb68a946e41b8421",
                        "wallet_id": "EnbSFnpMCQz7NzmfuKpPF1u4B8htaA19iYVkkrJi1aPy"
                    }
                },
                {
                    "_id": "62469e32f63e08df6e01159f",
                    "name": "jimshad",
                    "email": "jimshaddb@gmail.com",
                    "img": null,
                    "wallet_id": {
                        "_id": "6246b6eef63e08baf90115b8",
                        "wallet_id": "HrVUNq8PyKwym8dTwdBe7gHmaV3UWBkxztmBttHKPQX3"
                    }
                }
            ],
            "hasMore": false
        }
    }
}

Error

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