The base URL for all API requests is: subdomain provided to you by Nous AI.
This endpoint requires API key authentication. You can use the
| Name | Required | Description |
|---|---|---|
| x-api-key | Yes | Your API key for authentication |
The request body should be in JSON format with the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | The search query string |
| mode | enum | No | The search mode: 'fast' or 'powerful' |
| business_unit_name | string | No | The name of the business unit in scope |
| source_path_pattern | string | No | A regex pattern for filtering sources by their path. |
| source_date_threshold | string | No | The date for filtering sources in YYYY-MM-DD format |
| ai_summary_format | string | json | No | The desired format of the ai_summary field. Can be a string or (for structured output) a JSON schema. |
The only required parameter is query.
You can optionally include the following parameters in the request body:
mode, which determines the search mode. Valid options are: 'fast' and 'powerful'. If not specified, uses the tenant's configured default search mode.business_unit_name, which specifies that the response should only consider sources associated with the business unit specified plus any "shared" sources (i.e., sources with no business unit assignment).source_path_pattern, which allows you to filter sources using regex patterns matched against the source path. For webpages, the source path is the URL; for files, it is the file path. Pattern matching is case-insensitive. Note that this parameter does not impact or limit media search results.source_date_threshold, which specifies that the response should only consider sources dated on or after the given date. Generally, you won't need to use this parameter, as newer sources are automatically prioritized when recency is important for the search query.ai_summary_format, which allows you to customize the ai_summary field in the response by specifying its output format (such as a JSON object or a list, instead of a plain string) and other attributes like the desired length and tone of voice. By default, the ai_summary will be provided in Markdown format. This parameter is particularly useful for obtaining structured output in a custom schema of your preference. Pass a JSON schema describing the desired structure, and the response will conform to that format.{ "query": "What's expected to happen with interest rates?" }
{ "query": "What is our Q4 strategy?", "mode": "powerful", "business_unit_name": "North Star Division", "source_path_pattern": ".*marketing.*\\.pptx$", "source_date_threshold": "2025-07-01", "ai_summary_format": "500 words, avoid jargon" }
{ "query": "What are our 5 biggest holdings?", "ai_summary_format": { "introduction": "<string> // 30 words", "items": [ { "name": "<string> // Name of the holding", "value": "<float> // Value of the holding. 2 decimals." } ], "total": "<float> // Sum of item values. 2 decimals." } }
application/json{ "ai_summary": "Interest rates are expected to...", "documents": [ { "source": { "title": "Global Markets Outlook", "path": "https://www.example.com/global-markets-outlook", } "date": "2025-21-01", "extract": "We believe that interest rates are going to...", }, // more document results... ] "media": [ "/media/image.png" ] }
{"detail": "Invalid API key"}{"query": "This field is missing"}{"detail": "Invalid business unit name."}The base URL for all API requests is: subdomain provided to you by Nous AI.
This endpoint requires API key authentication. You can use the
| Name | Required | Description |
|---|---|---|
| x-api-key | Yes | Your API key for authentication |
| Parameter | Type | Required | Description |
|---|---|---|---|
| query_id | UUID | No | If provided, the response will be limited to the query with this unique identifier. |
| earliest_date | Date | No | If provided, only queries created on or after this date will be included in the response. Format: YYYY-MM-DD. |
| max_results | Integer | No | The maximum number of queries to return in the response. The value must be an integer between 1 and 1,000. If not provided, a default limit of 100 will be applied. |
| include_results | Boolean | No | A boolean value indicating whether to include the search results associated with each query in the response. Defaults to false. Set to true to include results. |
GET /api/v1/search-history?include_results=true HTTP/1.1 Host: your-subdomain.nousai.com x-api-key: your-api-key
application/json[ { "id": "925fcc65-148c-11f0-9526-54e1adc13119", "query": "What's expected to happen with interest rates?", "business_unit_name": "International Markets", "created_on": "2025-04-08T15:17:23.227267Z", "results": { "ai_summary": "Interest rates are expected to...", "documents": [ { "source": { "title": "Global Markets Outlook", "path": "https://www.example.com/global-markets-outlook", } "date": "2025-21-01", "extract": "We believe that interest rates are going to...", }, // more document results... ] "media": [ "/media/image.png" ] } }, // more query history items... ]
{"detail": "Invalid API key"}{"error": "Invalid parameters: (list of invalid query parameters)"}{"earliest_date": "Use this format: YYYY-MM-DD."}The base URL for all API requests is: subdomain provided to you by Nous AI.
This endpoint requires API key authentication. You can use the
| Name | Required | Description |
|---|---|---|
| x-api-key | Yes | Your API key for authentication |
The request body should be in JSON format with the following optional parameter:
| Parameter | Type | Required | Description |
|---|---|---|---|
| business_unit_name | string | No | The name of the business unit in scope |
The optional business_unit_name parameter specifies that the response should only consider sources associated with the business unit specified.
{ "business_unit_name": "International Markets" }
application/json{ "questions": [ "What are the current market trends for Q1 2025?", "How do interest rate changes affect our portfolio?", "What are the key risk factors in emerging markets?" ] }
{"detail": "Invalid API key"}{"detail": "Invalid business unit name."}