v1

latestOpenAPI 3.1.02026-07-2268276396.6 KB
Search

Search documents

Easily find the most relevant information from trusted sources and your own data. Use it to power agents that give accurate, real-time answers.

post/v1/search

Request body

search_mode'fast' | 'smart' required

fast (default): Runs a single query using the specified filters. Best for pre-processed queries where you control the filters.

smart: Analyzes the query text to automatically define search filters and runs multiple sub-queries to ensure better coverage. Ideal for sending user questions directly without pre-processing. When using smart mode, only timestamp and source filters are allowed; using any other filters will result in a 400 Bad Request error.

Click here for a more detailed comparison

include_auditboolean

When set to true, the response metadata will include an audit object containing the resolved queries that were actually executed. Useful for debugging and understanding how the system interpreted your request.

Example request

{
  "search_mode": "fast",
  "query": {
    "text": "Type a question to retrieve documents chunks"
  }
}

Response

Search results

external_resultsobject

External search results grouped by source (e.g. web).

Example response

{
  "results": [
    {
      "id": "57BB2AD919....",
      "headline": "Headline example: Microsoft Corp.: Q3 2025 Earnings Call",
      "timestamp": "2025-04-30T21:30:00Z",
      "document_type": "Earnings Call",
      "source": {
        "id": "D4B903",
        "name": "Factset Transcripts"
      },
      "url": "https://www.benzinga.com/node/45117886?utm_campaign=partner_feed&utm_medium=feed&utm_source=ravenpack",
      "chunks": [
        {
          "cnum": 7,
          "text": "Microsoft will provide forward-looking guidance on its earnings conference call Wednesday, which can be viewed below.\nMSFT Price Action: Microsoft stock is up 5.5% to $417.17 year-over-year in after-hours trading Wednesday versus a 52-week trading range of $344.79 to $468.35.",
          "relevance": 0.8949412447701082,
          "sentiment": 0.33,
          "detections": [
            {
              "id": "ACE54B",
              "start": 23,
              "end": 38,
              "type": "entity"
            }
          ],
          "text_locations": [
            {
              "paragraph_num": 1,
              "sentence_num": 1
            }
          ]
        }
      ]
    }
  ],
  "metadata": {
    "request_id": "user_2k3Z4SerTUIieyCfQhGR5UF2Af3",
    "timestamp": "2025-09-12T11:10:46.019077+00:00",
    "audit": {
      "queries": [
        {
          "filters": {
            "document_type": {
              "values": [
                {
                  "type": "TRANSCRIPT",
                  "subtypes": [
                    "EARNINGS_CALL"
                  ]
                }
              ]
            },
            "reporting_entities": [
              "BA9E0C"
            ],
            "reporting_periods": [
              {
                "fiscal_year": 2025,
                "fiscal_quarter": 4
              }
            ]
          },
          "max_chunks": 100,
          "ranking_params": {
            "source_boost": 1,
            "freshness_boost": 1,
            "reranker": {
              "enabled": true
            }
          }
        }
      ]
    }
  },
  "usage": {
    "api_query_units": 0.7
  }
}