Is there a way to test webhook?

Yes, You can use a temporary HTTP endpoint services listed below to test if your webhook is configured successfully.


https://requestinspector.com/

Steps to test

  1. Go to one of the services above and generate the endpoint
  2. Copy the generated endpoint URL and click “let’s start”

  3. Go to SendBird Dashboard > Setting > Webhook and paste the endpoint you copied in step2 and click “save”
  4. Test to see if the endpoint URL is receiving the webhook event when you make an event action (i.e. group channel creation)

Postman create a group channel API Call (Request Body)

  {
        "name": "channel creation_webhook_testing2020",
        "channel_url": "private_chat_room_202004072115",
        "cover_url": "https://sendbird.com/main/img/cover/cover_08.jpg",
        "custom_type": "sports",
        "data":"abc",
        "inviter_id": "ccc",
        "hidden_status": {"James" : "hidden_allow_auto_unhide"},
        "user_ids": ["ccc", "natpark", "removetest"],
      }

Webhook Response

   {
   "category": "group_channel:join",
   "users": [
        {
            "nickname": "ccc",
            "user_id": "ccc",
            "inviter": {
                "nickname": "ccc",
                "user_id": "ccc",
                "profile_url": "https://static.sendbird.com/sample/profiles/profile_34_512px.png",
                "metadata": {}
            },
            "profile_url": "https://static.sendbird.com/sample/profiles/profile_34_512px.png",
            "metadata": {}
        },
        {
            "nickname": "natpark1",
            "user_id": "natpark",
            "inviter": {
                "nickname": "ccc",
                "user_id": "ccc",
                "profile_url": "https://static.sendbird.com/sample/profiles/profile_34_512px.png",
                "metadata": {}
            },
            "profile_url": "https://static.sendbird.com/sample/profiles/profile_04_512px.png",
            "metadata": {}
        },
        {
            "nickname": "removing",
            "user_id": "removetest",
            "inviter": {
                "nickname": "ccc",
                "user_id": "ccc",
                "profile_url": "https://static.sendbird.com/sample/profiles/profile_34_512px.png",
                "metadata": {}
            },
            "profile_url": "https://static.sendbird.com/sample/profiles/profile_06_512px.png",
            "metadata": {}
        }
    ],
    "members": [
        {
            "unread_message_count": 7,
            "user_id": "natpark",
            "channel_unread_message_count": 0,
            "total_unread_message_count": 7,
            "is_active": true,
            "state": "joined",
            "push_enabled": false,
            "is_online": false,
            "is_hidden": 0,
            "channel_mention_count": 0,
            "nickname": "natpark1",
            "profile_url": "https://static.sendbird.com/sample/profiles/profile_04_512px.png",
            "metadata": {}
        },
        {
            "unread_message_count": 1,
            "user_id": "removetest",
            "channel_unread_message_count": 0,
            "total_unread_message_count": 1,
            "is_active": true,
            "state": "joined",
            "push_enabled": false,
            "is_online": false,
            "is_hidden": 0,
            "channel_mention_count": 0,
            "nickname": "removing",
            "profile_url": "https://static.sendbird.com/sample/profiles/profile_06_512px.png",
            "metadata": {}
        },
        {
            "unread_message_count": 0,
            "user_id": "ccc",
            "channel_unread_message_count": 0,
            "total_unread_message_count": 0,
            "is_active": true,
            "state": "joined",
            "push_enabled": false,
            "is_online": false,
            "is_hidden": 0,
            "channel_mention_count": 0,
            "nickname": "ccc",
            "profile_url": "https://static.sendbird.com/sample/profiles/profile_34_512px.png",
            "metadata": {}
        }
    ],
    "joined_at": 1586319304,
    "app_id": "{Your SendBird AppID}",
    "channel": {
        "is_super": false,
        "is_distinct": false,
        "name": "channel creation_webhook_testing2020",
        "custom_type": "sports",
        "is_ephemeral": false,
        "data": "abc",
        "channel_url": "private_chat_room_202004072115",
        "is_discoverable": false,
        "is_public": false
    }
    }