> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a specific mapping version

> Retrieves information about a specific mapping version.



## OpenAPI

````yaml /api-reference/endpoint/gateway/openapi.json get /gateway/mapping-version/{gateway_topic}/{version_number}
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    quiva.ai Gateway API for managing gateway infrastructure and routing API
    requests.
  version: 1.0.0
  contact:
    name: quiva.ai Support
    email: support@quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearer_auth: []
  - api_key_auth: []
tags:
  - name: Gateways
    description: Gateway management endpoints
  - name: Mappings
    description: Gateway Mapping management endpoints
  - name: Mapping Versions
    description: Gateway Mapping Version management endpoints
paths:
  /gateway/mapping-version/{gateway_topic}/{version_number}:
    get:
      tags:
        - Mapping Versions
      summary: Get a specific mapping version
      description: Retrieves information about a specific mapping version.
      operationId: getGatewayMappingVersion
      parameters:
        - $ref: '#/components/parameters/gateway_topic_param'
        - $ref: '#/components/parameters/version_number_param'
        - $ref: '#/components/parameters/method_query_param'
        - $ref: '#/components/parameters/path_query_param'
      responses:
        '200':
          description: Mapping version details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MappingVersionResponseWrapper'
              example:
                body:
                  subject: ms.gateway.abcdef123456.mapping-version.get.api.users.1
                  resource_type: function
                  resource: user-service.getUsers
                  resource_version: latest
                  active: true
                  description: Gets all users with pagination
                  version: 1
                  modified: 1713531894
                  type: created
                metadata:
                  subject: ms.gateway.abcdef123456.mapping-version.get.api.users.1
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    gateway_topic_param:
      name: gateway_topic
      in: path
      description: Unique topic identifier of the gateway
      required: true
      schema:
        type: string
      example: abcdef123456
    version_number_param:
      name: version_number
      in: path
      description: Sequential version number of the mapping version
      required: true
      schema:
        type: integer
      example: 1
    method_query_param:
      name: method
      in: query
      description: HTTP method for the mapping in uppercase
      required: true
      schema:
        type: string
        enum:
          - GET
          - POST
          - PUT
          - DELETE
          - PATCH
          - OPTIONS
          - HEAD
      example: GET
    path_query_param:
      name: path
      in: query
      description: URL path for the mapping including the leading slash
      required: true
      schema:
        type: string
      example: /api/users
  schemas:
    MappingVersionResponseWrapper:
      type: object
      properties:
        body:
          $ref: '#/components/schemas/MappingVersionResponse'
        metadata:
          $ref: '#/components/schemas/Metadata'
    MappingVersionResponse:
      type: object
      properties:
        subject:
          type: string
          description: Subject identifier of the mapping version
          example: ms.gateway.abcdef123456.mapping-version.get.api.users.1
        resource_type:
          type: string
          description: Type of resource that handles requests
          example: function
        resource:
          type: string
          description: Resource identifier that handles requests
          example: user-service.getUsers
        resource_version:
          type: string
          description: Version of the resource
          example: latest
        active:
          type: boolean
          description: Whether the mapping version is active
          example: true
        description:
          type: string
          description: Description of the mapping version
          example: Gets all users with pagination
        middleware:
          type: array
          description: List of middleware applied to the mapping version
          items:
            $ref: '#/components/schemas/Middleware'
        exact_match:
          type: boolean
          description: Whether the path is matched exactly
          example: false
        attributes:
          type: array
          description: Attributes for the mapping version
          items:
            type: string
          example: []
        boolean_logic:
          type: string
          description: Boolean logic expression for request routing
          example: ''
        invocation_type:
          type: string
          description: Type of invocation for the resource
          example: RequestResponse
        version:
          type: integer
          description: Version number
          example: 1
        modified:
          type: integer
          description: Unix timestamp of when the mapping version was last modified
          example: 1713531894
        type:
          type: string
          description: Type of the mapping version record
          example: created
    Metadata:
      type: object
      properties:
        subject:
          type: string
          description: Subject identifier for the resource
          example: ms.gateway.abcdef123456.gateway
    Middleware:
      type: object
      properties:
        order:
          type: integer
          description: Execution order of the middleware
          example: 1
        resource:
          type: string
          description: Resource identifier for the middleware function
          example: auth-middleware
        resource_type:
          type: string
          description: Type of resource the middleware points to
          example: function
          enum:
            - function
            - service
        resource_version:
          type: string
          description: Version of the middleware resource to use
          example: latest
        type:
          type: string
          description: When the middleware should execute
          example: pre-request
          enum:
            - pre-request
            - post-request
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: The requested resource does not exist
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-Api-Key

````