获取 Webhook 列表

GET /openapi/2024-10/webhooks

权限:有应用权限都可获取Webhook列表

Query参数

参数名

说明

必填

类型

page

页码,默认1

string

page_size

页面大小,默认50

string

filter[address]

订阅地址

string

filter[created_at]

最大创建时间

string

filter[fields]

显示字段列表,逗号分隔

string

filter[since_id]

起始ID

string

filter[topic]

string

filter[updated_at]

最小更新时间

string

示例响应内容

{
    "data": [
        {
            "id": 2,
            "address": "http://mytest.com",
            "topic": "app/uninstalled",
            "created_at": "2021-10-13T14:21:02+08:00",
            "updated_at": "2021-10-13T14:21:02+08:00",
            "format": "json",
            "fields": [
                "id",
                "updated_at"
            ],
            "metafield_namespaces": [
                ""
            ],
            "api_version": ""
        }
    ],
    "links": {
        "first": "http://mytest.com/openapi/2024-10/webhooks?page=1",
        "last": "http://mytest.com/openapi/2024-10/webhooks?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://mytest.com/openapi/2024-10/webhooks",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}

Last updated