question

Jon Moubayed avatar image
Jon Moubayed asked Eric Olsen answered

API Local Number Provisioning

Hello,

I am trying to automate our provisioning process through the API and we currently assign local numbers to each user. From the documentation I can only find a way to create a user with an extension, or create a user and have it randomly assign a number in the available unassigned pool.

Is there a way to create local numbers and user?

rest api
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 Anirban edited

I am not sure you can create a local number by api however you can create user or extension with api and assign the user or extension with an existing number by updating with api which maybe you are doing now

1 |3000

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

Jon Moubayed avatar image
Jon Moubayed answered

@Anirban yes that is currently what we are doing but it looks like that might be the only way right now.

1 |3000

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

Eric Olsen avatar image
Eric Olsen answered

Jon,

Here's how we're doing it:

1). Use "List Company Phone Numbers" API and select the appropriate flags under UsageType to list the numbers you need. Gather the internal number ID for the number you want.
2). Create extension - gather extensionID from response body
3). Create BYOD device (type "OtherPhone") and assign to the extensionID from step 1. Attach the internal number id from step 1. This will add an RC App with DL and phone number to the extension from step 2. If you need to attach a physical phone to the extension, capture the internal device ID and proceed to step 4. Otherwise, you're done.
4). You will need the internal device ID of the hardphone you wish to swap for the Softphone created in step 3. You can get this by using GET "https://platform.ringcentral.com/restapi/v1.0/account/:accountId/device?serial={ {serial}}" (double braces for Postman)

5). Swap phones with the target device ID being the one you grabbed from step 4, and device ID being the internal ID from step 3.

You now have a hardphone with the desired phone number assigned to the extension you just created.

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