cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
253
Views
0
Helpful
1
Replies

BotId or BotName from Webhook event

rednerus
Level 1
Level 1

I am developing a small application in an effort to build a webex bot.

I want to use a common webhook api to serve multiple bots. For this to work when need to have the botid or botname from the webhook event data. But I can't see one in the webhook event data.

{
  "id": "<id>",
  "name": "WebHook for Created Messages",
  "targetUrl": "https://webhook.site/f737aa88-824c-4bb0-b94e-217d1b25cf93",
  "resource": "messages",
  "event": "created",
  "orgId": "<orgid>",
  "createdBy": "<createdby>",
  "appId": "<appid>",
  "ownedBy": "creator",
  "status": "active",
  "created": "2023-07-18T14:01:58.046Z",
  "actorId": "<actorid>",
  "data": {
    "id": "<id>",
    "roomId": "<roomid>",
    "roomType": "direct",
    "personId": "<personid>",
    "personEmail": "<email>",
    "created": "2023-07-18T14:50:55.590Z"
  }
}

I tried to see if appid will get me anything. but not sure of the API I can use.

Anyone to help with some ideas?

 

1 Reply 1

Marcel Zehnder
Spotlight
Spotlight

Hi, can you provide more details? On which event is the webhook fired? How does your hook filters look? I also don't understand exactly what you mean by "I want to use a common webhook api to serve multiple bots"?