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

# Get Listing

> Returns a single listing by ID.



## OpenAPI

````yaml GET /v1/listings/{id}
openapi: 3.0.1
info:
  title: OpenAPI Treet Listings
  description: Treet API to manage brand store listings
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.treet-test.co
security:
  - ClientIdAuth: []
    ApiKeyAuth: []
paths:
  /v1/listings/{id}:
    get:
      summary: Get listing
      description: Returns a single listing by ID.
      parameters:
        - name: id
          in: path
          required: true
          description: The Treet listing ID (UUID).
          schema:
            type: string
            example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Listing response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingDetails'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Server Errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ListingDetails:
      required:
        - id
        - state
        - condition
        - sku
        - availableInventory
        - externalIdentifier
      type: object
      properties:
        id:
          description: Unique Treet identifier
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        state:
          description: Current state of the listing
          type: string
          enum:
            - OPEN
            - CLOSED
          example: OPEN
        condition:
          description: Item's condition
          type: string
          enum:
            - NEW_WITH_TAGS
            - NEW_WITHOUT_TAGS
            - EXCELLENT
            - GOOD
            - MINOR_DEFECT
          example: GOOD
        sku:
          description: >-
            SKU on the underlying product variant (sourced from the connected
            commerce platform, e.g. Shopify). For the partner-supplied
            identifier passed at listing creation, see `externalIdentifier`.
          type: string
          example: SKU325
          nullable: true
        availableInventory:
          description: Number of units currently available for sale.
          type: integer
          example: 1
          nullable: true
        externalIdentifier:
          description: >-
            Partner-supplied identifier for the listing, set via the
            `externalIdentifier` field on listing creation. `null` if none was
            provided.
          type: string
          example: SKU325-good
          nullable: true
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    ClientIdAuth:
      type: apiKey
      in: header
      name: X-Treet-Client-Id
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Treet-Authentication-Key

````