Create phone Via API

i was searching for creating WebRTC phone via API but i couldn't find where i can do that

can you show me where i can find some Docs, or if it's even possible

Thank You!

See the documentation and this forum post.

when i tried to use that i got 401 error
because we don't use edge groups

i want to add another webRTC to this path Telephony \Phone Management\ Phones

401 means unauthorized, aka you didn't send the authorization header.

i am sorry i meant 404

i have an app to create users and assign roles already in use

but when i am using

response = requests.get('https://api.mypurecloud.com/api/v2/configuration/edgegroups', headers=requestHeaders)

# Check response
if response.status_code == 200:

	print (response.content)
	print (response)
else:
	print ('Failure: ' + str(response.status_code) + ' - ' + response.reason)
	sys.exit(response.status_code)

FYI
the doc you doesn't work

i found some doc below and it seems to be responding as it should
https://developer.mypurecloud.com/api/rest/v2/telephonyprovidersedge/

on the documentation

the links has api/v2/telephony/providers/edge/.... but the right one should be api/v2/telephony/providers/edges/ ...
hopefully that will be fixed

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.