Hướng dẫn AgentFlow

list_webhook_deliveries

GET/webhook-subscriptions/{subscription_id}/deliveries
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

subscription_id*string

Subscription id

Formatuuid

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"
  • "last_attempt_at"
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 an event type by prefix, or an event id exactly.

status?string

Comma-separated delivery statuses.

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

curl -X GET "https://example.com/webhook-subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/deliveries"
{  "items": [    {      "attempt_count": 0,      "completed_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",      "event_type": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "last_attempt_at": "2019-08-24T14:15:22Z",      "next_attempt_at": "2019-08-24T14:15:22Z",      "redelivery_of": "913e147e-723f-4911-a748-616c74426d4b",      "retry_deadline_at": "2019-08-24T14:15:22Z",      "skipped_reason": null,      "status": "pending",      "subscription_id": "aa11a4c2-a467-43db-b413-c4ab0f5cf627",      "window_started_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}