> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nshield.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Scan Token

> Comprehensive token security analysis including authorities, holder distribution, LP status, impersonation, and risk flags.

Returns verdict, risk score, flags, and rich metadata for informed decisions.


## OpenAPI

````yaml POST /v1/token
openapi: 3.0.3
info:
  title: NovaShield Security Engine
  description: >-
    Enterprise-grade security scanning API for Solana. Analyze transactions,
    tokens, addresses, and dApps before user interaction.
  version: 3.0.0
  contact:
    name: NovaShield
    url: https://nshield.org
servers:
  - url: https://api.novashield.so
    description: Production
  - url: https://sapi.novashield.so
    description: Staging
security: []
tags:
  - name: Security Scanning
    description: >-
      Core security scanning endpoints for transactions, tokens, addresses, and
      dApps
paths:
  /v1/token:
    post:
      tags:
        - Security Scanning
      summary: Scan Token
      description: >-
        Comprehensive token security analysis including mint/freeze authorities,
        holder distribution, liquidity pool status, and rug pull risk
        assessment.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanTokenRequest'
      responses:
        '200':
          description: Token analysis complete
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanTokenResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ScanTokenRequest:
      type: object
      required:
        - chain
        - mint
      properties:
        chain:
          type: string
          enum:
            - solana
        mint:
          type: string
          description: Token mint address
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
    ScanTokenResponse:
      type: object
      properties:
        mint:
          type: string
        symbol:
          type: string
          example: USDC
        name:
          type: string
          example: USD Coin
        verdict:
          type: string
          enum:
            - safe
            - suspicious
            - malicious
        score:
          type: number
          minimum: 0
          maximum: 1
          description: Risk score (higher = more risky)
        flags:
          type: array
          description: Security flags
          items:
            type: string
          example:
            - MINT_AUTHORITY_RENOUNCED
            - LP_LOCKED
            - FREEZE_AUTHORITY_RENOUNCED
        metadata:
          type: object
          properties:
            decimals:
              type: integer
            supply:
              type: string
            mint_authority:
              type: string
              nullable: true
              description: Mint authority address (null if renounced)
            freeze_authority:
              type: string
              nullable: true
              description: Freeze authority address (null if renounced)
            update_authority:
              type: string
              nullable: true
            top_holders:
              type: array
              description: Top token holders
              items:
                type: object
                properties:
                  address:
                    type: string
                  percentage:
                    type: number
            lp_info:
              type: array
              description: Liquidity pool information
              items:
                type: object
                properties:
                  dex:
                    type: string
                  pool:
                    type: string
                  liquidity_usd:
                    type: number
                  locked:
                    type: boolean
            impersonation:
              type: object
              properties:
                is_impersonation:
                  type: boolean
                similarity_score:
                  type: number
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              example: INVALID_REQUEST
            message:
              type: string
              example: Invalid request parameters
            details:
              type: string
        timestamp:
          type: string
          format: date-time
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````