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

# Get subname by full name

> Retrieves the details of a specific offchain subname using its full name (e.g., alice.oppunk.eth). Returns the subname details if found.



## OpenAPI

````yaml /openapi/offchain-openapi.json GET /api/v1/subnames/{fullSubname}
openapi: 3.0.0
info:
  title: Offchain Subnames API
  description: >-
    API for managing offchain subnames. Provides endpoints for authentication,
    subname management, and statistics.
  version: 1.0.0
  contact:
    name: Namespace
    url: https://namespace.ninja
    email: cap@namespace.ninja
  termsOfService: https://namespace.ninja/tos
servers:
  - url: https://offchain-manager.namespace.ninja
    description: Production
  - url: https://staging.offchain-manager.namespace.ninja
    description: Staging
security: []
tags:
  - name: Subnames
    description: ''
paths:
  /api/v1/subnames/{fullSubname}:
    get:
      tags:
        - Subnames
      summary: Get Subname by Full Name
      description: >-
        Retrieves the details of a specific offchain subname using its full name
        (e.g., alice.oppunk.eth). Returns the subname details if found.
      operationId: SubnameNodeController_getSingleName
      parameters:
        - name: fullSubname
          required: true
          in: path
          description: The full subname to retrieve (e.g., alice.oppunk.eth)
          schema:
            example: alice.oppunk.eth
            type: string
      responses:
        '200':
          description: Subname found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSubnameResponseDto'
              examples:
                example:
                  summary: Subname response
                  value:
                    id: '123'
                    fullName: alice.oppunk.eth
                    parentName: oppunk.eth
                    label: alice
                    texts:
                      email: alice@example.com
                    addresses:
                      ETH: 0x1234...abcd
                    metadata:
                      role: admin
                    contenthash: ipfs://Qm...
                    namehash: 0xabc123...
        '400':
          description: Invalid subname format
        '404':
          description: Subname does not exist
        '500':
          description: Unexpected error
components:
  schemas:
    GetSubnameResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the subname
          example: '123'
        fullName:
          type: string
          description: Full name of the subname (e.g., alice.oppunk.eth)
          example: alice.oppunk.eth
        parentName:
          type: string
          description: Parent name (e.g., oppunk.eth)
          example: oppunk.eth
        label:
          type: string
          description: Label of the subname (e.g., alice)
          example: alice
        texts:
          type: object
          description: Text records associated with the subname
          example:
            email: alice@example.com
        addresses:
          type: object
          description: Address records associated with the subname
          example:
            ETH: 0x1234...abcd
        metadata:
          type: object
          description: Metadata associated with the subname
          example:
            role: admin
        contenthash:
          type: string
          description: Content hash of the subname
          example: ipfs://Qm...
        namehash:
          type: string
          description: Namehash of the subname
          example: 0xabc123...
      required:
        - id
        - fullName
        - parentName
        - label
        - texts
        - addresses
        - metadata
        - namehash

````