Hướng dẫn AgentFlow

list_groups

GET/groups
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

limit?integer

Page size, 1 to 200; 50 when absent.

Formatint32
Range1 <= value <= 200
cursor?string

Opaque cursor walking forward, taken from next_cursor.

before?string

Opaque cursor walking backward, taken from prev_cursor. Sending it with cursor is refused.

sort?"name"

The order of the page; name when absent.

Value in

  • "name"
dir?string

asc or desc; the sort's own default when absent.

Value in

  • "asc"
  • "desc"
q?string

A case-insensitive substring of the group's name.

Response Body

application/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/groups"
{  "items": [    {      "created_at": "2019-08-24T14:15:22Z",      "description": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "member_count": 0,      "name": "string",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}