question

Dylan Bowman avatar image
Dylan Bowman asked Craig Chan answered

Engage Access Token / API Token (Unauthorized 401)

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

Followed the instructions located here to generate an auth token and successfully got an auth token back with a POST to the https://portal.virtualacd.biz/api/v1/auth/login with my username/password. The next step is to use that auth token to generate an API token. I did a POST to https://portal.vacd.biz/api/v1/admin/token with the "X-Auth-Token" header and value of my auth token and get a 401 unauthorized. I tried to POST to the other one at https://portal.virtualacd.biz/api/v1/admin/login and get a 404 not found. I am considered a "super admin" with all the privileges I need to be able to access and generate an API token. Why is it saying I am unauthorized?

I have also attempted following these directions to generate an engage access token but have no idea what platformId is and there is no direction as to where I need to find that information from.
https://developers.ringcentral.com/engage/voice/guide/authentication/auth-engage


Please help...

rest apiEngage Digital and Engage Voice
1 |3000

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

Craig Chan avatar image
Craig Chan answered

Looks like there is a typo there (or cut and paste error).

First, you only belong to one platform "vacd" or "virtualacd". Looks like your account is on virtualacd.biz. You should just use that server for your API requests.

To create a permanent API token, use this instead:

POST https://portal.virtualacd.biz/api/v1/admin/token X-Auth-Token: {authTokenOrApiToken}

Notice that the endpoint is token and not login.

For platformId, you should contact your CSM. There's an "Also Note" on this page about it: https://developers.ringcentral.com/engage/voice/guide/authentication/auth-engage.

1 |3000

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

Anirban avatar image
Anirban answered

I guess @Phong Vu can help here. Tagging him in the question for better visibility

1 |3000

Up to 8 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