Hướng dẫn AgentFlow

search_content

GET/search
AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Query Parameters

q*string

Plain analyzed terms or an exact record identifier

kind?array<>
entity_id?array<>

Records entity selection; Documents are unaffected

mode?"lexical"

Value in

  • "lexical"
limit?integer
Formatint32
Range1 <= value <= 50
include_facets?boolean
cursor?string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/search?q=string"
{  "actual_mode": "lexical",  "bounded": true,  "degraded_reason": "string",  "facets": null,  "groups": {    "property1": {      "has_more": true,      "items": [        {          "destination": {            "entity_id": "8161163a-f227-466f-bc01-090a01e80165",            "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",            "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489",            "type": "record"          },          "kind": "record",          "snippet": "string",          "title": "string"        }      ],      "next_cursor": "string",      "status": "ok"    },    "property2": {      "has_more": true,      "items": [        {          "destination": {            "entity_id": "8161163a-f227-466f-bc01-090a01e80165",            "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",            "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489",            "type": "record"          },          "kind": "record",          "snippet": "string",          "title": "string"        }      ],      "next_cursor": "string",      "status": "ok"    }  },  "requested_mode": "lexical"}