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

# Search Vehicles

> Semantic vehicle search.

Embeds the query string, searches internal service with optional metadata filters,
hydrates full vehicle records from internal service.



## OpenAPI

````yaml POST /v2/search
openapi: 3.0.3
info:
  title: AutosnapAI Origin API
  description: Dealer resolution, inventory management, and webhook APIs
  version: 1.0.0
servers:
  - url: https://api.autosnap.com
    description: Production
security: []
paths:
  /v2/search:
    post:
      tags:
        - search
      summary: Semantic Search
      description: >-
        Semantic vehicle search.


        Embeds the query string, searches internal service with optional
        metadata filters,

        hydrates full vehicle records from internal service.
      operationId: semantic_search_v2_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SearchRequest:
      properties:
        api_key:
          type: string
          title: Api Key
        query:
          type: string
          title: Query
        dealership_id:
          type: integer
          nullable: true
          title: Dealership Id
        dealership_url:
          type: string
          nullable: true
          title: Dealership Url
        condition:
          type: string
          nullable: true
          title: Condition
        make:
          type: string
          nullable: true
          title: Make
        year_min:
          type: integer
          nullable: true
          title: Year Min
        year_max:
          type: integer
          nullable: true
          title: Year Max
        price_min:
          type: integer
          nullable: true
          title: Price Min
        price_max:
          type: integer
          nullable: true
          title: Price Max
        limit:
          type: integer
          nullable: true
          title: Limit
          default: 10
        score_threshold:
          type: number
          nullable: true
          title: Score Threshold
          default: 0.3
      type: object
      required:
        - api_key
        - query
      title: SearchRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````