POST
/
app
/
datamodel
/
{datamodel_id}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datamodel_id
string
required

Data model ID, starting with dm_.

Body

application/json
query
string
required

Natural language query, keyword or URL. If URL is specified, our AI analyzes the page context, summarizes and provides semantic recommendations based on the content.

similarity_top_k
integer
default: 9

Number of articles to return.

ref
string

site domain of where ai recommendations are being displayed. Example format: dappier.com

num_articles_ref
integer
default: 0

Minimum number of articles from the ref domain specified above. The rest of the articles will come from other sites within the RAG model.

search_algorithm
enum<string>

Search algorithm for retrieving articles. most_recent: retrieves the most recent articles by publication date. semantic (default): retrieves contextually relevant articles based on the query or the page content from the provided URL. most_recent_semantic: performs semantic search and retrieves the most recent articles by publication date.

Available options:
most_recent,
semantic,
most_recent_semantic

Response

200 - application/json
results
object[]