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

# Search Registry Entities

> Searches prompts, skills, and tools across every project the requester can view. The server retrieves lexical and semantic candidates from the natural-language query, reranks them, and reapplies project access before returning common entity metadata.



## OpenAPI

````yaml /openapi.yaml get /v1/search
openapi: 3.1.0
info:
  title: px0 API
  description: >
    px[0] is an open-source prompt infrastructure toolkit for managing prompts
    in production. It replaces hardcoded prompt strings with versioned
    templates, in-process caching, and OpenTelemetry observability, so teams can
    iterate on prompts without touching application code. This is the OpenAPI
    specification for all the public APIs of px0.
  version: 1.0.0
servers:
  - url: http://localhost:3000
    description: Local development server
security: []
paths:
  /v1/search:
    get:
      tags:
        - Search
      summary: Search Registry Entities
      description: >-
        Searches prompts, skills, and tools across every project the requester
        can view. The server retrieves lexical and semantic candidates from the
        natural-language query, reranks them, and reapplies project access
        before returning common entity metadata.
      operationId: searchRegistry
      parameters:
        - name: q
          in: query
          required: true
          description: >-
            Natural-language text describing the desired prompt, skill, or tool.
            Can optionally include an inline type filter prefix or suffix (e.g.,
            `type:prompt refund` or `refund type:tool`) which restricts results
            to the specified entity type. If an invalid type filter (e.g.,
            `type:unknown`) is provided in the query string, a 400 Bad Request
            is returned. Provider names, modes, scores, and embedding vectors
            are internal and cannot be supplied by clients.
          schema:
            type: string
            minLength: 1
            example: Find something that handles customer refunds
        - name: type
          in: query
          required: false
          description: >-
            Restricts the search to one entity type. When omitted, all
            registered entity types are searched together.
          schema:
            $ref: '#/components/schemas/SearchEntityType'
      responses:
        '200':
          description: Ranked registry search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: Missing query or unsupported entity type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '500':
          description: Search provider or internal failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
      security:
        - BearerAuth: []
components:
  schemas:
    SearchEntityType:
      type: string
      enum:
        - prompt
        - skill
        - tool
      example: prompt
    SearchResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/SearchResult'
      required:
        - results
    APIError:
      type: object
      properties:
        error:
          type: string
          example: invalid credentials
      required:
        - error
    SearchResult:
      type: object
      description: >-
        Common searchable metadata. Use type and id with the corresponding
        registry endpoint to retrieve the full entity.
      properties:
        type:
          $ref: '#/components/schemas/SearchEntityType'
        id:
          type: string
          format: uuid
        project_id:
          type: string
          format: uuid
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - type
        - id
        - project_id
        - slug
        - name
        - description
        - created_at
        - updated_at
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Use an access token retrieved from login (Bearer sess_...) or a
        programmatic API key (Bearer ak_...).

````