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

# List Types

> Get all available types for item classification with enhanced filtering.



## OpenAPI

````yaml /openapi.json get /api/v2/types
openapi: 3.1.0
info:
  title: Legitmark Partner API
  description: Comprehensive partner integration API for Legitmark authentication platform
  version: 2.0.0
  contact:
    name: Legitmark Support
    email: support@legitmark.com
    url: https://legitmark.com
servers:
  - url: https://api.legitmark.com
    description: Production API
security:
  - BearerAuth: []
tags:
  - name: Service Requests
    description: Create, retrieve, and manage authentication service requests.
  - name: Media Management
    description: Upload images for service request authentication.
  - name: Taxonomy
    description: Browse categories, types, brands, models, and services to build requests.
paths:
  /api/v2/types:
    get:
      tags:
        - Taxonomy
      summary: List Types
      description: Get all available types for item classification with enhanced filtering.
      operationId: listTypes
      parameters:
        - name: page_size
          in: query
          description: Number of results per page
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: page_number
          in: query
          description: Page number
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: search_query
          in: query
          description: Search term for type names
          schema:
            type: string
        - name: activeOnly
          in: query
          description: Filter to only active types
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Types retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Types fetched successfully
                  category:
                    type: string
                    enum:
                      - SUCCESS
                    example: SUCCESS
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        uuid:
                          type: string
                          format: uuid
                        active:
                          type: boolean
                        name:
                          type: string
                        sides:
                          type: array
                          items:
                            type: string
                            format: uuid
                        media:
                          type: string
                          nullable: true
                        feature:
                          type: boolean
                        ordinal:
                          type: integer
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                        side_details:
                          type: array
                          items: {}
                  rc_hit:
                    type: boolean
                    description: Indicates if the response was served from cache
                    example: false
                  metadata:
                    type: object
                    description: Pagination metadata
                    properties:
                      total_count:
                        type: integer
                        description: Total number of items
                      page_number:
                        type: integer
                        description: Current page number
                      total_pages:
                        type: integer
                        description: Total number of pages
                      page_size:
                        type: integer
                        description: Number of items per page
                required:
                  - message
                  - category
                  - data
              example:
                message: Types fetched successfully
                category: SUCCESS
                data:
                  - uuid: 95e42d6b-7c4f-11ef-a623-02595575faeb
                    name: Crossbody
                    active: true
                    sides: []
                    media: >-
                      https://cdn.legitmark.com/types/95e42d6b-7c4f-11ef-a623-02595575faeb.png
                    feature: false
                    ordinal: 0
                    created_at: '2024-09-26T20:43:23.000Z'
                    updated_at: '2026-01-15T03:48:34.000Z'
                rc_hit: true
                metadata:
                  total_count: 45
                  page_number: 1
                  total_pages: 3
                  page_size: 20
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token authentication. Use your API key in the format: Bearer
        leo_xxxxxxxx
      x-default: leo_your_api_key_here

````