Find evidence
GET /api/v1/search
Requires brain:read. Limit: 120 requests per minute per credential; tenant limit is ten times this.
Request schema
[
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
}
]Response schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"person",
"organization",
"document",
"interaction"
]
},
"id": {
"type": "string"
},
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"snippet": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"score": {
"type": "number"
},
"matched": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "string"
},
"url": {
"type": "string"
},
"entity": {
"type": "string"
}
},
"required": [
"kind",
"id",
"slug",
"title",
"snippet",
"score",
"matched"
]
}
},
"armsFailed": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"query",
"count",
"results",
"armsFailed"
]
}