When we send POST request to /subscription endpoint
with this payload:
{'eventFilters': ['/restapi/v1.0/account/~/extension/~/missed-calls', '/restapi/v1.0/account/~/extension/~/start-ring', '/restapi/v1.0/account/~/extension/~/stop-ring', '/restapi/v1.0/account/~/extension/~/incoming-call-pickup', '/restapi/v1.0/account/~/extension/~/voicemail', '/restapi/v1.0/account/~/extension/~/message-store'], 'deliveryMode': {'transportType': 'WebHook', 'address': 'https://1e............315', 'verificationToken': '75...........2e986'}, 'expiresIn': 630720000}
the address is successfully registered
but it is then visible then like:
{ "uri": "https://platform.ringcentral.com/restapi/v1.0/subscription/626ea38.............0c561f", "id": "626ea384-4576-433b-b9b2-44af300c561f", "creationTime": "2020-08-04T14:53:59.642Z", "status": "Active", "eventFilters": [ "/restapi/v1.0/account/2460114020/extension/2744114015/incoming-call-pickup", "/restapi/v1.0/account/2460114020/extension/2744114015/voicemail", "/restapi/v1.0/account/2460114020/extension/2744114015/message-store", "/restapi/v1.0/account/2460114020/extension/2744114015/start-ring", "/restapi/v1.0/account/2460114020/extension/2744114015/stop-ring", "/restapi/v1.0/account/2460114020/extension/2744114015/missed-calls" ], "expirationTime": "2036-06-08T15:47:19.642Z", "expiresIn": 499998021, "deliveryMode": { "transportType": "WebHook", "encryption": false, "address": "https://1............315" } }
why '~' was replaced with 2460...020 and 2744...015?
I wanted to register for a subscription of events about all phone numbers/extensions.