Fetch All NFT Types

This API is for to get list of all NFT types


GRAPHQL


Headers

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

Request

{
  list_all_nft_types(page_size: 10, page_number: 1) {
    message
    data {
      _id
      name
      description
      qr_based
      is_visible
    }
    hasMore
  }
}

Request Parameters

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

Success

{
    "data": {
        "list_all_nft_types": {
            "message": "data listed",
            "data": [
                {
                    "_id": "62edda58bdeee16f97d14b18",
                    "name": "equity shares",
                    "description": "secondary marketplace for buyers and sellers of India’s hottest startups and privately held companies",
                    "qr_based": true,
                    "is_visible": true
                },
                {
                    "_id": "62edd8f7bdeee1d2bbd14b0a",
                    "name": "agriculture land",
                    "description": "Marketplace to make food trade easy, fast and transparent",
                    "qr_based": true,
                    "is_visible": true
                },
                {
                    "_id": "62edd7eebdeee110dcd14b00",
                    "name": "event tickets",
                    "description": "Buy and sell tickets online for concerts, sports, theater, family and other events near you.",
                    "qr_based": true,
                    "is_visible": true
                }
            ],
            "hasMore": false
        }
    }
}

Error

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