Skip to main content
Question

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

  • June 11, 2020
  • 3 replies
  • 640 views

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?

3 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • June 11, 2020

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.


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

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • June 22, 2021

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