Retrieve Webhooks

Untuk mengambil semua webhooks, buat panggilan GET ke /webhooks .

Contoh

Sampel request:

curl -X GET 'https://waofficial.botika.online/api/whatsapp/v1/webhooks' \
-H 'Authorization: Bearer {{ API_TOKEN }}'

Dari request tersebut akan mengembalikan JSON dengan format:

{
    "data": [
        {
            "id": {{ WEBHOOK_ID }},
            "name": "{{ WEBHOOK_NAME }}",
            "url": "{{ WEBHOOK_URL }}",
            "status": "{{ WEBHOOK_STATUS }}",
            "events": [
                "outbound notifications",
                "inbound notifications"
            ]
        },
        ...
    ],
    "links": {
        "first": "https://waofficial.botika.online/api/whatsapp/v1/webhooks?page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://waofficial.botika.online/api/whatsapp/v1/webhooks",
        "per_page": 10,
        "to": 1
    }
}

Copyright © 2023 Botika Teknologi Indonesia