> ## 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

> Retrieves information about a specific gateway mapping.



## OpenAPI

````yaml /api-reference/endpoint/gateway/openapi.json get /gateway/{gateway_topic}/mapping/details
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/{gateway_topic}/mapping/details:
    get:
      tags:
        - Mappings
      summary: Get a specific mapping
      description: Retrieves information about a specific gateway mapping.
      operationId: getGatewayMapping
      parameters:
        - $ref: '#/components/parameters/gateway_topic_param'
        - $ref: '#/components/parameters/method_query_param'
        - $ref: '#/components/parameters/path_query_param'
      responses:
        '200':
          description: Mapping details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MappingResponseWrapper'
              example:
                body:
                  subject: ms.gateway.abcdef123456.mapping.get.api.users
                  path: /api/users
                  method: GET
                  is_public: true
                  timeout: 30000
                  limit:
                    request: 5000
                    time: 1000
                  traffic_distribution:
                    '1': 100
                  modified: 1713531894
                  type: created
                metadata:
                  subject: ms.gateway.abcdef123456.mapping.get.api.users
        '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
    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:
    MappingResponseWrapper:
      type: object
      properties:
        body:
          $ref: '#/components/schemas/MappingResponse'
        metadata:
          $ref: '#/components/schemas/Metadata'
    MappingResponse:
      type: object
      properties:
        subject:
          type: string
          description: Subject identifier of the mapping
          example: ms.gateway.abcdef123456.mapping.get.api.users
        path:
          type: string
          description: URL path for the mapping
          example: /api/users
        method:
          type: string
          description: HTTP method for the mapping
          example: GET
        is_public:
          type: boolean
          description: Whether the mapping is publicly accessible
          example: true
        limit:
          $ref: '#/components/schemas/Limit'
        timeout:
          type: integer
          description: Timeout in milliseconds for mapping requests
          example: 30000
        traffic_distribution:
          type: object
          description: Traffic distribution configuration for A/B testing
          additionalProperties:
            type: integer
          example:
            '1': 100
        modified:
          type: integer
          description: Unix timestamp of when the mapping was last modified
          example: 1713531894
        type:
          type: string
          description: Type of the mapping record
          example: created
    Metadata:
      type: object
      properties:
        subject:
          type: string
          description: Subject identifier for the resource
          example: ms.gateway.abcdef123456.gateway
    Limit:
      type: object
      properties:
        request:
          type: integer
          description: Maximum number of requests allowed
          default: 10000
          example: 5000
        time:
          type: integer
          description: Time window for rate limiting in milliseconds
          default: 1000
          example: 1000
  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

````