Redpine Search API

The search API from Redpine — 4 operation(s) for search.

GitHub OpenAPI

Operations 4

POST /api/v1/search/assisted Assisted Search #
POST /api/v1/search/query Search Query #
GET /api/v1/search/results/{query_id} Get Cached Result #
GET /api/v1/search/collections List Accessible Collections #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/redpine-ai:redpine-ai-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

redpine-ai-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Redpine Connect Search API
  description: 'REST API for Redpine Connect — AI-powered document search with hybrid retrieval.


    ## Authentication

    All requests require an API key via the `Authorization: Bearer sk_live_...` header.


    ## Resources

    - Full Documentation

    - LLM-friendly docs'
  version: 0.0.206
tags:
- name: Search
paths:
  /api/v1/search/assisted:
    post:
      tags:
      - Search
      summary: Assisted Search
      description: Run an intelligent, verified search. Only delivered results are billed.
      operationId: assisted_search_api_v1_search_assisted_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssistedSearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssistedSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/query:
    post:
      tags:
      - Search
      summary: Search Query
      description: 'Search documents in one or more collections.


        Searches the specified collection using the query text. Results are

        ranked by relevance. With the ``collections`` request form (up to 5),

        each collection is searched with its own entitlement filter and the

        results are merged into one relevance-ranked list (Reciprocal Rank

        Fusion); each result then carries its origin ``collection``.


        The search mode (dense, sparse, hybrid) is determined by the

        collection''s configuration and cannot be overridden.


        Args:

        search_request: Search parameters including collection, query, limit, filters.

        request: The HTTP request for extracting client info.

        auth: Authentication context from API key.

        db: Database session.


        Returns:

        SearchResponse with results, query_id, and latency.


        Raises:

        QueryTooLongException: Query exceeds maximum length.

        NoCollectionAccessException: API key doesn''t have access to the collection.

        CollectionNotFoundException: Collection doesn''t exist.'
      operationId: search_query_api_v1_search_query_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/results/{query_id}:
    get:
      tags:
      - Search
      summary: Get Cached Result
      description: 'Retrieve cached search results by query_id.


        Returns the same results as the original search without billing —

        *without billing* meaning without charging again for whatever the

        caller already paid for. This does NOT return the stored payload

        verbatim: it is filtered through ``cached.unlocked_result_ids`` first

        (see ``services.preview_view.apply_ledger``), because preview writes

        unpaid rows into the same table this reads from. A row not in the

        ledger comes back as a teaser with ``locked: true``, never the full

        text, regardless of what is sitting in Postgres.

        The query_id must belong to the same API key making this request.

        Results are available after the original search for

        7 days, or 24 hours for organisations with zero data retention.


        Args:

        query_id: The query_id from a previous search response.

        response: The HTTP response for setting headers.

        auth: Authentication context from API key.

        db: Database session.


        Returns:

        SearchResultsPreviewResponse: same shape as a fresh search

        response, but each result carries ``locked``/``tokens``/``cost``.


        Raises:

        NotFoundException: query_id not found or belongs to a different API key.

        CachedResultExpiredException: Result found but has expired (410).'
      operationId: get_cached_result_api_v1_search_results__query_id__get
      parameters:
      - name: query_id
        in: path
        required: true
        schema:
          type: string
          title: Query Id
      - name: includeFigures
        in: query
        required: false
        schema:
          type: boolean
          description: Fetch figure images for the rows this caller has already paid for. Free, like the rest of this endpoint — it re-delivers content that is already unlocked, it never unlocks anything.
          default: false
          title: Includefigures
        description: Fetch figure images for the rows this caller has already paid for. Free, like the rest of this endpoint — it re-delivers content that is already unlocked, it never unlocks anything.
      - name: imageMaxWidth
        in: query
        required: false
        schema:
          type: integer
          maximum: 1920
          minimum: 100
          default: 800
          title: Imagemaxwidth
      - name: imageMaxHeight
        in: query
        required: false
        schema:
          type: integer
          maximum: 1080
          minimum: 100
          default: 600
          title: Imagemaxheight
      - name: imageQuality
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 75
          title: Imagequality
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResultsPreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/search/collections:
    get:
      tags:
      - Search
      summary: List Accessible Collections
      description: 'List collections accessible to this API key.


        Resolved entirely from Postgres + the in-memory auth context. **Does

        NOT call Qdrant.** The response only carries display name + description

        (per SearchCollectionInfo); vector counts / dimensions are not exposed

        on the public API and have no business being on the critical path of

        an access-control listing. Keeping Qdrant out of this path means a

        degraded Qdrant cluster never blocks customers'' playgrounds, access

        checks, or "what can my key see" probes.


        Returns:

        SearchCollectionsResponse with list of accessible collections.'
      operationId: list_accessible_collections_api_v1_search_collections_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchCollectionsResponse'
components:
  schemas:
    AssistedSearchRequest:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    SearchResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    AssistedSearchResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    SearchResultsPreviewResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    SearchRequest:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    SearchCollectionsResponse:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    HTTPValidationError:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true