question

Rupak Gautam avatar image
Rupak Gautam asked ·

How do I authenticate with the Engage API using a JWT?

Hi there I am trying to hit this URL:
https://engage.ringcentral.com/voice/api/v1/admin/accounts/12290000/reportsStreaming

I am using an API key. However, I get a 401 error and in the body I get the message saying JWT missing. Would you please be able to assist me with this issue?

api auth
1 |1500 characters needed characters left characters exceeded

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

Phong Vu avatar image
Phong Vu answered ·

Using an API key? Currently, you need to get a RingCentral Office access token, then exchange for an Engage Voice access token to call that API.

https://developers.ringcentral.com/engage/voice/guide/authentication/auth-ringcentral

You can use one of the SDK wrappers to call the Engage Voice API.

1 |1500 characters needed characters left characters exceeded

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

Chady Boutros avatar image
Chady Boutros answered ·
thumbnail-screen-shot-2021-06-22-at-31547-pm.pngI hope someone can help.
I am having trouble getting a laravel app to login to the ring central API.

Ring Central Application Details:
- Ring Central Username: cboutros@cellularmagician.ca

- App Description: [CLONE] App to monitor incoming SMS,voicemails. This also can read the history of sms and call recording for our technicians. All the sms/phone data will be linked via a workorder phone number.
- App Permissions:

Call Control, Read Call Log, Read Call Recording, Read Messages, SMS, Webhook Subscriptions.
Currently the API has been authenticated following the developer guide for php: https://developers.ringcentral.com/guide/authentication/quick-start#php

The API is used in our production site under the first link. https://www.address.com


It works fine here however, we have a development site where we are trying to use it as well: https://www.dev.address.com

I've used the same credentials (except for the redirect URL " https://www.dev.address.com") and authentication method. I have also added " https://www.dev.address.com" in the list of redirect URIs found within the ring central application settings.

When I try to visit the authentication URL from " https://www.dev.address.com", I am given an JSON response which says that the redirect URIs do not match but, in reality they do match.

I am attaching an image of the response below.

Do you suggest making a new ring central app to use on the development site " https://www.dev.address.com"? Or, is there a way to make the existing ring central app work on both sites?

Best Regards,
Asif Khan

1 comment
1 |1500 characters needed characters left characters exceeded

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

What is the reason for you to ask this question in this old thread? It is not even related to the original question?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

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