question

Rajeev Garg avatar image
Rajeev Garg asked Phong Vu commented

Subscribed webhooks are not showing events and message posts

Hi,

We created a public RingCentral Bot app in our Sandbox environment that has ReadContacts,ReadMessages, Contacts,ReadAccounts, EditExtensions,TeamMessaging,SubscriptionWebhook and Glip permissions.

We enabled BOT webhook for Glip:Posts and Glip:Groups events and verified successfully.

We are using ngrok and we are not using SDK.

Once we add the BOT using 'Add to Ringcentral' option we retrieved the access_token for the BOT using the configured OAuth URL using an axios call to https://platform.devtest.ringcentral.com/restapi/oauth/token endpoint and then we create the Webhook subscription

Webhook Subscription Request :
{ "deliveryMode":{ "transportType":"WebHook","address":"https://4528-120-138-12-165.ngrok.io/hook","encryption":false},"expiresIn":630720000,"eventFilters":["/restapi/v1.0/glip/posts","/restapi/v1.0/glip/groups"]}


Webhook Subscription Response :{ "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription/56c7df57-a93b-4c46-9424-a2b7828b769c", "id": "56c7df57-a93b-4c46-9424-a2b7828b769c", "creationTime": "2021-08-31T12:08:08.312Z", "status": "Active", "eventFilters": [ "/restapi/v1.0/glip/posts", "/restapi/v1.0/glip/groups" ], "expirationTime": "2037-07-05T13:01:28.312Z", "expiresIn": 499999999, "deliveryMode": { "transportType": "WebHook", "encryption": false, "address": "https://4528-120-138-12-165.ngrok.io/hook" }}

With the BOT Token we can create the Webhook subscription.

We logged into https://app.devtest.ringcentral.com with the Sandbox account and search the BOT we created and then type the messages and we expect the typed messages to the BOT will shown as Glip:Post event . But we receive nothing. We tried for Team creation event, @bot mention messages and Post team messages also


Is there anything we missed to setup the Subscription or receiving the messages ?


Thanks in Advance.

Regards,

Raja






webhooks
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered Phong Vu commented

This is a known issue and it is being investigated. I will let you know when the problem is solved.

4 comments
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Rajeev Garg avatar image Rajeev Garg commented ·

Thanks @Phong Vu . Is there a API heath status page available ?

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ Rajeev Garg commented ·

This is fixed and it works for me now. Please check and let me know if it still does not work for you.

1 Like 1 ·
Rajeev Garg avatar image Rajeev Garg Phong Vu ♦♦ commented ·

@Phong Vu Thanks. Now it is working. It seems we don't need to a separate subscription for Glip:Posts and Glip:Events if we subscribe through Bot Webhooks configuration for the Bot App.

Do we need to renew this kind of subscription or will it work forever ?

0 Likes 0 ·
Show more comments

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys