Skip to main content
POST
/
:projectId
/
api
/
v7
/
search
/
content
Search Content
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/search/content \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "sourceTypes": [
    "<string>"
  ],
  "spaceId": "<string>",
  "conversationId": "<string>",
  "limit": 123
}
'
Performs vector-similarity search over project content (entities, comments, and chat messages) using AI embeddings. Returns the most semantically relevant results for the given query. Requires a paid plan with semantic search enabled.

Body Parameters

query
string
required
The natural language search query.
sourceTypes
string[]
default:"[\"entity\", \"comment\", \"message\"]"
Content types to search. Any combination of entity, comment, message.
spaceId
string
Restrict search to a specific space.
conversationId
string
Restrict message search to a specific conversation.
limit
number
default:"20"
Maximum number of results to return. Maximum 50.

Response

Returns an array of result objects ordered by similarity (highest first):
[
  {
    "sourceType": "entity",
    "similarity": 0.87,
    "record": { ...Entity | Comment | ChatMessage... }
  }
]
Each result includes:
  • sourceType — one of "entity", "comment", or "message", indicating which type of record was matched.
  • similarity — cosine similarity score between the query and the matched content.
  • record — the fully populated entity, comment, or chat message object.

Error Responses

{ "error": "Semantic search requires a paid plan", "code": "project/plan-required" }