---
updatedAt: 2025-11-05T21:54:33.000Z
agentTools:
  projectIndex: https://docs.venly.io/llms.txt
---

# Get all Sui NFT tokens

This endpoint is used to get all tokens in a Sui NFT contract.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "NFT API",
    "description": "NFT API v3 Documentation.",
    "contact": {
      "name": "Venly",
      "url": "https://venly.io",
      "email": "contact@venly.io"
    },
    "version": "0.40.0"
  },
  "servers": [
    {
      "url": "https://token-api-sandbox.venly.io/",
      "description": "Sandbox Environment"
    },
    {
      "url": "https://token-api.venly.io/",
      "description": "Production Environment"
    }
  ],
  "paths": {
    "/api/v3/sui/nft/contracts/{contractAddress}/tokens": {
      "get": {
        "tags": [
          "Mint Tokens"
        ],
        "summary": "Get all Sui NFT tokens",
        "description": "This endpoint is used to get all tokens in a Sui NFT contract.",
        "operationId": "getSuiNftTokens",
        "parameters": [
          {
            "name": "contractAddress",
            "in": "path",
            "description": "The Sui contract address whose tokens you want to fetch",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "0x121ce324e190a694a43ffc58c3f6a423ec89e6bdcf7b306f75e3df5d09cf30be::nft::FWO"
          },
          {
            "name": "tokenTypeId",
            "in": "query",
            "description": "Filter your tokens based on `tokenTypeId`",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "example": 1000000001
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "default": true
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SuiTokenListItem"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "When the request contains invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "validation-error",
                      "message": "A descriptive error message"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "When the user is not authorized to access the resource",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "UNAUTHORIZED",
                      "message": "Access is denied."
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "When a user doesn't have proper security authority",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "FORBIDDEN",
                      "message": "User doesn't have proper authority to access this resource"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "When a resource is not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "NOT_FOUND"
                    }
                  ]
                }
              }
            }
          },
          "405": {
            "description": "When the HttpMethod is not supported",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "METHOD_NOT_SUPPORTED",
                      "message": "HttpMethod is not supported. Supported methods are [..]"
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "Usually when the input is not a valid json",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "INVALID_MEDIA_TYPE"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "When there's an unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorBody"
                      }
                    },
                    "result": {
                      "type": "object"
                    }
                  }
                },
                "example": {
                  "success": false,
                  "errors": [
                    {
                      "code": "INTERNAL_SERVER_ERROR",
                      "message": "A description of the error (optional)"
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "view:tokens"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorBody": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string"
          },
          "errorMessage": {
            "type": "string"
          }
        }
      },
      "SuiTokenListItem": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "description": "The blockchain network",
            "enum": [
              "SUI"
            ],
            "example": "SUI"
          },
          "contractAddress": {
            "type": "string",
            "description": "The contract address of the token",
            "example": "0x121ce324e190a694a43ffc58c3f6a423ec89e6bdcf7b306f75e3df5d09cf30be::nft::FWO"
          },
          "tokenTypeId": {
            "type": "integer",
            "description": "The token type identifier",
            "example": 1000000001
          },
          "tokenId": {
            "type": "string",
            "description": "The unique token identifier on the blockchain",
            "example": "0x353cbeadf02fb580ba9bc18f06855858b43740ee61c290809b382fd3cfafc78e"
          },
          "tokenUri": {
            "type": "string",
            "format": "uri",
            "description": "URI to the token metadata",
            "example": "https://metadata-staging.venly.io/metadata/contracts/76459/tokens/{id}"
          },
          "name": {
            "type": "string",
            "description": "The name of the token",
            "example": "Test NFT Collection 10.0"
          },
          "image": {
            "type": "string",
            "format": "uri",
            "description": "URL to the token's full-size image",
            "example": "https://storage-staging.venly.io/applications/bff93371-db40-4363-9692-4fbe64a34b54/purplevillage.jpeg"
          },
          "imagePreview": {
            "type": "string",
            "format": "uri",
            "description": "URL to the token's preview image",
            "example": "https://storage-staging.venly.io/applications/bff93371-db40-4363-9692-4fbe64a34b54/purplevillage.jpeg"
          },
          "imageThumbnail": {
            "type": "string",
            "format": "uri",
            "description": "URL to the token's thumbnail image",
            "example": "https://storage-staging.venly.io/applications/bff93371-db40-4363-9692-4fbe64a34b54/purplevillage.jpeg"
          },
          "fungible": {
            "type": "boolean",
            "description": "Indicates whether the token is fungible",
            "example": false
          },
          "mints": {
            "type": "object",
            "description": "Statistics about minting operations for this token",
            "properties": {
              "pending": {
                "type": "integer",
                "description": "Number of pending mint operations",
                "example": 0
              },
              "succeeded": {
                "type": "integer",
                "description": "Number of successful mint operations",
                "example": 1
              },
              "failed": {
                "type": "integer",
                "description": "Number of failed mint operations",
                "example": 0
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://login-staging.venly.io/auth/realms/Arkane/protocol/openid-connect/token",
            "scopes": {
              "openid": "openid"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```