Hướng dẫn AgentFlow

list_records

GET/entities/{entity_id}/records
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

Path Parameters

entity_id*string

Entity id

Formatuuid

Query Parameters

cursor?string

Opaque cursor walking forward, taken from next_cursor.

before?string

Opaque cursor walking backward, taken from prev_cursor.

limit?integer

Page size, 1 to 200.

Formatint32
Range1 <= value <= 200
sort?string

updated_at (the default), created_at, the key of a sortable field, or ref.field: a single-valued reference field and a sortable field of the entity it references. Which fields exist depends on the entity.

dir?string

asc or desc; desc when absent.

Value in

  • "asc"
  • "desc"
q?string

Text search over the entity's searchable text fields the caller may read.

filter?array<string>

Repeatable field=value / field=op:value.

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/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records"
{  "items": [    {      "body": {},      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "entity_id": "8161163a-f227-466f-bc01-090a01e80165",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",      "unit_id": "5becc822-b69e-4e66-a762-ad8e868dcab6",      "updated_at": "2019-08-24T14:15:22Z",      "version": 0,      "file_counts": {        "property1": 0,        "property2": 0      },      "file_labels": {        "property1": {          "property1": "string",          "property2": "string"        },        "property2": {          "property1": "string",          "property2": "string"        }      },      "mentions": {        "property1": {          "href": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "user",          "label": "string",          "state": "ok"        },        "property2": {          "href": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "user",          "label": "string",          "state": "ok"        }      },      "ref_labels": {        "property1": {          "property1": "string",          "property2": "string"        },        "property2": {          "property1": "string",          "property2": "string"        }      },      "unit": null,      "visible_action_ids": [        "f379d2c9-fe6d-4ba6-bf32-0c26891f05a3"      ]    }  ],  "next_cursor": "string",  "prev_cursor": "string"}