Hướng dẫn AgentFlow

list_webhook_subscriptions

GET/webhook-subscriptions
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, from 1 to 200; 50 when absent.

Formatint32
Range1 <= value <= 200
cursor?string
before?string
sort?string

The field to sort by; created_at when absent.

Value in

  • "created_at"
  • "updated_at"
  • "status"
dir?string

Ascending or descending sort order. Separate from [WalkDirection] so the same sort key can be flipped without API changes. Each [SortKey] variant declares its default direction; callers may override it via ?sort_direction=asc|desc.

Value in

  • "asc"
  • "desc"
q?string

Matches a substring of the target URL or the description.

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/webhook-subscriptions"
{  "items": [    {      "created_at": "2019-08-24T14:15:22Z",      "description": "string",      "event_types": [        "string"      ],      "expired_delivery_count": 0,      "failing_since": "2019-08-24T14:15:22Z",      "held_delivery_count": 0,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "include_child_runs": true,      "last_expired_at": "2019-08-24T14:15:22Z",      "last_success_at": "2019-08-24T14:15:22Z",      "principal_disabled_at": "2019-08-24T14:15:22Z",      "secret_rotated_at": "2019-08-24T14:15:22Z",      "service_principal_id": "0d57b427-9ed2-4a5e-b0bd-32c8ce299b8e",      "status": "active",      "updated_at": "2019-08-24T14:15:22Z",      "url": "string"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}