\n"}],"x-error-codes":[{"httpCode":"404","errorCode":"ACT-333","message":"Profile image is not found for scale size [92]"}]}},"/restapi/v1.0/account/{accountId}/extension/{extensionId}/conferencing":{"get":{"tags":["User Settings"],"summary":"Get User Conferencing Settings","description":"Returns the information on the Free Conference Calling (FCC) feature for a given extension.","operationId":"readConferencingSettings","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"countryId","in":"query","description":"Internal identifier of a country. If not specified, the response is returned for the brand country","schema":{"type":"string"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a conferencing"},"allowJoinBeforeHost":{"type":"boolean","description":"Determines if host user allows conference participants to join before the host"},"hostCode":{"type":"string","description":"Access code for a host user"},"mode":{"type":"string","description":"Internal parameter specifying conferencing engine"},"participantCode":{"type":"string","description":"Access code for any participant"},"phoneNumber":{"type":"string","description":"Primary conference phone number for user's home country returned in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format"},"tapToJoinUri":{"type":"string","description":"Short URL leading to the service web page Tap to Join for audio conference bridge"},"phoneNumbers":{"type":"array","description":"List of multiple dial-in phone numbers to connect to audio conference service, relevant for user's brand. Each number is given with the country and location information, in order to let the user choose the less expensive way to connect to a conference. The first number in the list is the primary conference number, that is default and domestic","items":{"type":"object","properties":{"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a country"},"uri":{"type":"string","description":"Canonical URI of a country"},"callingCode":{"type":"string","description":"Country calling code defined by ITU-T recommendations [E.123](https://www.itu.int/rec/T-REC-E.123-200102-I/en) and [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)"},"emergencyCalling":{"type":"boolean","description":"Emergency calling feature availability/emergency address requirement indicator"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a country"}},"description":"Information on a home country of a conference phone number"},"default":{"type":"boolean","description":"'True' if the number is default for the conference. Default conference number is a domestic number that can be set by user (otherwise it is set by the system). Only one default number per country is allowed"},"hasGreeting":{"type":"boolean","description":"'True' if the greeting message is played on this number"},"location":{"type":"string","description":"Location (city, region, state) of a conference phone number"},"phoneNumber":{"type":"string","description":"Dial-in phone number to connect to a conference"},"premium":{"type":"boolean","description":"Indicates if the number is 'premium' (account phone number with the `ConferencingNumber` usageType)"}}}}}}}}}},"x-api-group":"extension/conferencing","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"OrganizeConference","x-feature":"Conferencing","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/extension/~/conferencing?countryId=15\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/400767215008/extension/400767215008/conferencing?countryId=15\",\n \"phoneNumber\": \"+61386720111\",\n \"hostCode\": \"4007672150081\",\n \"participantCode\": \"4007672150082\",\n \"allowJoinBeforeHost\": false,\n \"tapToJoinUri\": \"http://rcconf.net/4ec24a8\",\n \"supportUri\": \"https://rcconf.net/1L06Hd5\",\n \"mode\": \"FCC\",\n \"phoneNumbers\": [\n {\n \"phoneNumber\": \"+61386720111\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/15\",\n \"id\": \"15\",\n \"name\": \"Australia\",\n \"isoCode\": \"AU\",\n \"callingCode\": \"61\"\n },\n \"hasGreeting\": true,\n \"default\": true\n },\n {\n \"phoneNumber\": \"+543814085011\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/11\",\n \"id\": \"11\",\n \"name\": \"Argentina\",\n \"isoCode\": \"AR\",\n \"callingCode\": \"54\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+4312650505\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/16\",\n \"id\": \"16\",\n \"name\": \"Austria\",\n \"isoCode\": \"AT\",\n \"callingCode\": \"43\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+97316568305\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/19\",\n \"id\": \"19\",\n \"name\": \"Bahrain\",\n \"isoCode\": \"BH\",\n \"callingCode\": \"973\"\n },\n \"hasGreeting\": false,\n \"default\": false\n }, ...\n ]\n} \n"}],"x-error-codes":null},"put":{"tags":["User Settings"],"summary":"Update User Conferencing Settings","description":"Updates the default conferencing number for the current extension. The number can be selected from conferencing numbers of the current extension. Updates the setting, allowing participants join the conference before host.","operationId":"updateConferencingSettings","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"phoneNumbers":{"type":"array","description":"Multiple dial-in phone numbers to connect to audio conference service, relevant for user's brand. Each number is given with the country and location information, in order to let the user choose the less expensive way to connect to a conference. The first number in the list is the primary conference number, that is default and domestic","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Dial-in phone number to connect to a conference"},"default":{"type":"boolean","description":"'True' if the number is default for the conference. Default conference number is a domestic number that can be set by user (otherwise it is set by the system). Only one default number per country is allowed"}}}},"allowJoinBeforeHost":{"type":"boolean","description":"Determines if host user allows conference participants to join before the host"}}}}},"required":true},"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a conferencing"},"allowJoinBeforeHost":{"type":"boolean","description":"Determines if host user allows conference participants to join before the host"},"hostCode":{"type":"string","description":"Access code for a host user"},"mode":{"type":"string","description":"Internal parameter specifying conferencing engine"},"participantCode":{"type":"string","description":"Access code for any participant"},"phoneNumber":{"type":"string","description":"Primary conference phone number for user's home country returned in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format"},"tapToJoinUri":{"type":"string","description":"Short URL leading to the service web page Tap to Join for audio conference bridge"},"phoneNumbers":{"type":"array","description":"List of multiple dial-in phone numbers to connect to audio conference service, relevant for user's brand. Each number is given with the country and location information, in order to let the user choose the less expensive way to connect to a conference. The first number in the list is the primary conference number, that is default and domestic","items":{"type":"object","properties":{"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a country"},"uri":{"type":"string","description":"Canonical URI of a country"},"callingCode":{"type":"string","description":"Country calling code defined by ITU-T recommendations [E.123](https://www.itu.int/rec/T-REC-E.123-200102-I/en) and [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)"},"emergencyCalling":{"type":"boolean","description":"Emergency calling feature availability/emergency address requirement indicator"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a country"}},"description":"Information on a home country of a conference phone number"},"default":{"type":"boolean","description":"'True' if the number is default for the conference. Default conference number is a domestic number that can be set by user (otherwise it is set by the system). Only one default number per country is allowed"},"hasGreeting":{"type":"boolean","description":"'True' if the greeting message is played on this number"},"location":{"type":"string","description":"Location (city, region, state) of a conference phone number"},"phoneNumber":{"type":"string","description":"Dial-in phone number to connect to a conference"},"premium":{"type":"boolean","description":"Indicates if the number is 'premium' (account phone number with the `ConferencingNumber` usageType)"}}}}}}}}}},"x-api-group":"extension/conferencing","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-user-permission":"OrganizeConference","x-feature":"Conferencing","x-app-permission":"EditExtensions","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"title":"Update Default Conferencing Phone Number","request":"PUT /restapi/v1.0/account/~/extension/~/conferencing\n\n{\n \"phoneNumbers\": [\n {\n \"phoneNumber\": \"+17605697171\",\n \"default\": true\n }\n ]\n}\n","response":"{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/411020634004/extension/411020634004/conferencing\",\n \"phoneNumber\": \"+16055623180\",\n \"hostCode\": \"4110206340041\",\n \"participantCode\": \"4110206340042\",\n \"allowJoinBeforeHost\": false,\n \"tapToJoinUri\": \"http://rcconf.net/4915472\",\n \"supportUri\": \"https://rcconf.net/1L06Hd5\",\n \"mode\": \"FCC\",\n \"phoneNumbers\": [\n {\n \"phoneNumber\": \"+16055623180\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"hasGreeting\": true,\n \"default\": true\n },\n {\n \"phoneNumber\": \"+543814085011\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.comrestapi/v1.0/dictionary/country/11\",\n \"id\": \"11\",\n \"name\": \"Argentina\",\n \"isoCode\": \"AR\",\n \"callingCode\": \"54\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+61386720111\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/15\",\n \"id\": \"15\",\n \"name\": \"Australia\",\n \"isoCode\": \"AU\",\n \"callingCode\": \"61\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+4312650505\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/16\",\n \"id\": \"16\",\n \"name\": \"Austria\",\n \"isoCode\": \"AT\",\n \"callingCode\": \"43\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+97316568305\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/19\",\n \"id\": \"19\",\n \"name\": \"Bahrain\",\n \"isoCode\": \"BH\",\n \"callingCode\": \"973\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+3232941165\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/23\",\n \"id\": \"23\",\n \"name\": \"Belgium\",\n \"isoCode\": \"BE\",\n \"callingCode\": \"32\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+552123914719\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/31\",\n \"id\": \"31\",\n \"name\": \"Brazil\",\n \"isoCode\": \"BR\",\n \"callingCode\": \"55\"\n },\n \"hasGreeting\": false,\n \"default\": false\n }, ...\n ]\n}\n"},{"title":"Update Allow Join Before Host Setting","request":"PUT /restapi/v1.0/account/~/extension/~/conferencing\n\n{\n \"allowJoinBeforeHost\" : true\n}\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/174443004/extension/174443004/conferencing\",\n \"phoneNumber\": \"+16055623180\",\n \"hostCode\": \"1744430041\",\n \"participantCode\": \"1744430042\",\n \"allowJoinBeforeHost\": true,\n \"tapToJoinUri\": \"http://rcconf.net/4915472\",\n \"supportUri\": \"https://rcconf.net/1L06Hd5\",\n \"mode\": \"FCC\",\n \"phoneNumbers\": [\n {\n \"phoneNumber\": \"+16055623180\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"hasGreeting\": true,\n \"default\": true\n },\n {\n \"phoneNumber\": \"+543814085011\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/11\",\n \"id\": \"11\",\n \"name\": \"Argentina\",\n \"isoCode\": \"AR\",\n \"callingCode\": \"54\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+61386720111\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/15\",\n \"id\": \"15\",\n \"name\": \"Australia\",\n \"isoCode\": \"AU\",\n \"callingCode\": \"61\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+4312650505\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/16\",\n \"id\": \"16\",\n \"name\": \"Austria\",\n \"isoCode\": \"AT\",\n \"callingCode\": \"43\"\n },\n \"hasGreeting\": false,\n \"default\": false\n },\n {\n \"phoneNumber\": \"+97316568305\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/19\",\n \"id\": \"19\",\n \"name\": \"Bahrain\",\n \"isoCode\": \"BH\",\n \"callingCode\": \"973\"\n },\n \"hasGreeting\": false,\n \"default\": false\n }, ...\n ]\n}\n"}],"x-error-codes":[{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [accountId] is not found"}]}},"/restapi/v1.0/account/{accountId}":{"get":{"tags":["Company"],"summary":"Get Account Info","description":"Returns basic information about a particular RingCentral customer account.","operationId":"readAccountInfo","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of an account"},"uri":{"type":"string","description":"Canonical URI of an account"},"bsid":{"type":"string","description":"Internal identifier of an account in the billing system"},"mainNumber":{"type":"string","description":"Main phone number of the current account"},"operator":{"type":"object","properties":{"uri":{"type":"string","description":"Link to an operator extension resource"},"id":{"type":"integer","description":"Internal identifier of an operator extension"},"extensionNumber":{"type":"string","description":"Number of an operator extension"}},"description":"Operator's extension information. This extension will receive all calls and messages intended for the operator."},"partnerId":{"type":"string","description":"Additional account identifier, created by partner application and applied on client side"},"serviceInfo":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a service info resource"},"billingPlan":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a billing plan"},"name":{"type":"string","description":"Billing plan name"},"durationUnit":{"type":"string","description":"Duration period","enum":["Day","Month","Year"]},"duration":{"type":"integer","description":"Number of duration units"},"type":{"type":"string","description":"Billing plan type","enum":["Initial","Regular","Suspended","Trial","TrialNoCC","Free"]},"includedPhoneLines":{"type":"integer","description":"Included digital lines count"}},"description":"Information on account billing plan"},"brand":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a brand"},"name":{"type":"string","description":"Brand name, for example RingCentral UK , ClearFax "},"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"}},"description":"Information on account brand"},"servicePlan":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a service plan"},"name":{"type":"string","description":"Name of a service plan"},"edition":{"type":"string","description":"Edition of a service plan"},"freemiumProductType":{"type":"string","enum":["Freyja","Phoenix"]}},"description":"Information on account service plan"},"targetServicePlan":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a target service plan"},"name":{"type":"string","description":"Name of a target service plan"},"edition":{"type":"string","description":"Edition of a service plan"},"freemiumProductType":{"type":"string","enum":["Freyja","Phoenix"]}},"description":"Information on account target service plan"},"contractedCountry":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of a contracted country"},"uri":{"type":"string","description":"Canonical URI of a contracted country"}},"description":"Information on the contracted country of account"}},"description":"Account service information, including brand, service plan and billing plan"},"setupWizardState":{"type":"string","description":"Specifies account configuration wizard state (web service setup)","default":"NotStarted","enum":["NotStarted","Incomplete","Completed"]},"signupInfo":{"type":"object","properties":{"tosAccepted":{"type":"boolean","default":false},"signupState":{"type":"array","items":{"type":"string","enum":["AccountCreated","BillingEntered","CreditCardApproved","AccountConfirmed","PhoneVerificationRequired","PhoneVerificationPassed"]}},"verificationReason":{"type":"string","enum":["CC_Failed","Phone_Suspicious","CC_Phone_Not_Match","AVS_Not_Available","MaxMind","CC_Blacklisted","Email_Blacklisted","Phone_Blacklisted","Cookie_Blacklisted","Device_Blacklisted","IP_Blacklisted","Agent_Instance_Blacklisted","Charge_Limit","Other_Country","Unknown"]},"marketingAccepted":{"type":"boolean","description":"Updates 'Send Marketing Information' flag on web interface"}},"description":"Account sign up data"},"status":{"type":"string","description":"Status of the current account","enum":["Initial","Confirmed","Unconfirmed","Disabled"]},"statusInfo":{"type":"object","properties":{"comment":{"type":"string","description":"A free-form user comment, describing the status change reason"},"reason":{"type":"string","description":"Type of suspension","enum":["SuspendedVoluntarily","SuspendedInvoluntarily","UserResumed"]},"till":{"type":"string","description":"Date until which the account will get deleted. The default value is 30 days since current date"}},"description":"Status information (reason, comment, lifetime). Returned for 'Disabled' status only"},"regionalSettings":{"type":"object","properties":{"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"},"timezone":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a timezone"},"uri":{"type":"string","description":"Canonical URI of a timezone"},"name":{"type":"string","description":"Short name of a timezone"},"description":{"type":"string","description":"Meaningful description of the timezone"},"bias":{"type":"string"}},"description":"Extension timezone information"},"language":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a language"},"uri":{"type":"string","description":"Canonical URI of a language"},"greeting":{"type":"boolean","description":"Indicates whether a language is available as greeting language"},"formattingLocale":{"type":"boolean","description":"Indicates whether a language is available as formatting locale"},"localeCode":{"type":"string","description":"Localization code of a language"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a language"},"ui":{"type":"boolean","description":"Indicates whether a language is available as UI language"}},"description":"User interface language data"},"greetingLanguage":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a greeting language"},"localeCode":{"type":"string","description":"Localization code of a greeting language"},"name":{"type":"string","description":"Official name of a greeting language"}},"description":"Information on language used for telephony greetings"},"formattingLocale":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a formatting language"},"localeCode":{"type":"string","description":"Localization code of a formatting language"},"name":{"type":"string","description":"Official name of a formatting language"}},"description":"Formatting language preferences for numbers, dates and currencies"},"timeFormat":{"type":"string","description":"Time format setting. The default value is '12h' = ['12h', '24h']","enum":["12h","24h"]},"currency":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a currency"},"code":{"type":"string","description":"Official code of a currency"},"name":{"type":"string","description":"Official name of a currency"},"symbol":{"type":"string","description":"Graphic symbol of a currency"},"minorSymbol":{"type":"string","description":"Minor graphic symbol of a currency"}},"description":"Currency information"}},"description":"Account level region data (web service Auto-Receptionist settings)"},"federated":{"type":"boolean","description":"Specifies whether an account is included into any federation of accounts or not"},"outboundCallPrefix":{"type":"integer","description":"If outbound call prefix is not specified, or set to null (0), then the parameter is not returned; the supported value range is 2-9"},"cfid":{"type":"string","description":"Customer facing identifier. Returned for accounts with the turned off PBX features. Equals to main company number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (without '+' sign)format "},"limits":{"type":"object","properties":{"freeSoftPhoneLinesPerExtension":{"type":"integer","description":"Max number of free softphone phone lines per user extension"},"meetingSize":{"type":"integer","description":"Max number of participants in RingCentral meeting hosted by this account's user"},"cloudRecordingStorage":{"type":"integer","description":"Meetings recording cloud storage limitaion in Gb"},"maxMonitoredExtensionsPerUser":{"type":"integer","description":"Max number of extensions which can be included in the list of users monitored for Presence"},"maxExtensionNumberLength":{"type":"integer","description":"Max length of extension numbers of an account; the supported value is up to 8 symbols, depends on account type"},"siteCodeLength":{"type":"integer","description":"Length of a site code"},"shortExtensionNumberLength":{"type":"integer","description":"Length of a short extension number"}},"description":"Limits which are effective for the account"}}}}}}},"x-api-group":"account","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyInfo","x-feature":"ReadCompanyInfo","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/12133895004\",\n \"id\": 12133895004,\n \"serviceInfo\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/12133895004/service-info\",\n \"brand\": {\n \"id\": \"1210\",\n \"name\": \"RingCentral\",\n \"homeCountry\": {\n \"id\": \"1\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n }\n },\n \"contractedCountry\": {\n \"id\": \"224\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/224\"\n },\n \"servicePlan\": {\n \"id\": \"1216\",\n \"name\": \"Professional\",\n \"edition\": \"Unknown\"\n },\n \"billingPlan\": {\n \"id\": \"159\",\n \"name\": \"Monthly\",\n \"durationUnit\": \"Month\",\n \"duration\": 1,\n \"type\": \"Regular\",\n \"includedPhoneLines\": 100\n }\n },\n \"operator\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/12133895004/extension/12133895004\",\n \"id\": 12133895004,\n \"extensionNumber\": \"101\"\n },\n \"mainNumber\": \"+18772003451\",\n \"status\": \"Confirmed\",\n \"signupInfo\": {\n \"tosAccepted\": true,\n \"signupState\": [\n \"BillingEntered\",\n \"AccountCreated\",\n \"AccountConfirmed\",\n \"CreditCardApproved\"\n ],\n \"verificationReason\": \"Unknown\"\n },\n \"setupWizardState\": \"Completed\",\n \"regionalSettings\": {\n \"timezone\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/58\",\n \"id\": \"58\",\n \"name\": \"US/Pacific\",\n \"description\": \"Pacific Time (US & Canada)\",\n \"bias\": \"-480\" \n },\n \"currency\": {\n \"id\": 1,\n \"code\": \"USD\",\n \"name\": \"United States Dollars\",\n \"symbol\": \"$\",\n \"minorSymbol\": \"¢\"\n }\n \"homeCountry\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\"\n },\n \"language\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"greetingLanguage\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"formattingLocale\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"timeFormat\": \"12h\"\n },\n \"federated\": false,\n \"cfid\": \"18002010310\"\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"},{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [accountId] is not found"}]}},"/restapi/v1.0/account/{accountId}/business-address":{"get":{"tags":["Company"],"summary":"Get Account Business Address","description":"Returns business address of a company.","operationId":"readAccountBusinessAddress","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","format":"uri"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"company":{"type":"string"},"email":{"type":"string"},"mainSiteName":{"type":"string","description":"Custom site name"}}}}}}},"x-api-group":"account/business-address","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyInfo","x-feature":"ReadCompanyInfo","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/business-address\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1215058004/business-address\",\n \"businessAddress\" : {\n \"street\" : \"13 Elm Street\",\n \"city\" : \"Foster City\",\n \"state\" : \"CA\",\n \"zip\" : \"94404\",\n \"country\" : \"United States\"\n },\n \"company\" : \"Example, Inc.\",\n \"email\" : \"example@example.com\",\n \"mainSiteName\" : \"Main Site\"\n} \n"}],"x-error-codes":[{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"}]},"put":{"tags":["Company"],"summary":"Update Company Business Address","description":"Updates the business address of a company that account is linked to. Batch request is supported.","operationId":"updateAccountBusinessAddress","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"string","description":"Company business name"},"email":{"type":"string","description":"Company business email address"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Name of a country"},"state":{"type":"string","description":"Name of a state/province"},"city":{"type":"string","description":"Name of a city"},"street":{"type":"string","description":"Street address"},"zip":{"type":"string","description":"Zip code"}},"description":"Company business address"},"mainSiteName":{"type":"string","description":"Custom site name"}}}}},"required":true},"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","format":"uri"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"company":{"type":"string"},"email":{"type":"string"},"mainSiteName":{"type":"string","description":"Custom site name"}}}}}}},"x-api-group":"account/business-address","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"EditAccounts","x-user-permission":"EditCompanyInfo","x-feature":"EditCompanyInfo","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT /restapi/v1.0/account/~/business-address\n\n{\n \"company\": \"Example, Inc.\",\n \"email\": \"example@example.com\",\n \"mainSiteName\" : \"Main Site\",\n \"businessAddress\": {\n \"country\": \"United States\",\n \"state\": \"CA\",\n \"city\": \"Belmont\",\n \"street\": \"20 Davis Drive\",\n \"zip\": \"94002\"\n }\n}\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1215058004/business-address\",\n \"businessAddress\" : {\n \"street\" : \"13 Elm Street\",\n \"city\" : \"Foster City\",\n \"state\" : \"CA\",\n \"zip\" : \"94404\",\n \"country\" : \"United States\"\n },\n \"company\" : \"Example, Inc.\",\n \"email\" : \"example@example.com\",\n \"mainSiteName\" : \"Main Site\"\n}\n"}],"x-error-codes":[{"httpCode":"403","errorCode":"CMN-401","message":"In order to call this API endpoint, application needs to have [EditAccounts] permission"},{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [accountId] is not found"}]}},"/restapi/v1.0/account/{accountId}/service-info":{"get":{"tags":["Company"],"summary":"Get Account Service Info","description":"Returns the information about service plan, available features and limitations for a particular RingCentral customer account.","operationId":"readAccountServiceInfo","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of the account Service Info resource"},"servicePlanName":{"type":"string","description":"Account Service Plan name"},"brand":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a brand"},"name":{"type":"string","description":"Brand name, for example RingCentral UK , ClearFax "},"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"}},"description":"Information on account brand"},"contractedCountry":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of a contracted country"},"uri":{"type":"string","description":"Canonical URI of a contracted country"}},"description":"Information on the contracted country of account"},"servicePlan":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a service plan"},"name":{"type":"string","description":"Name of a service plan"},"edition":{"type":"string","description":"Edition of a service plan"},"freemiumProductType":{"type":"string","enum":["Freyja","Phoenix"]}},"description":"Information on account service plan"},"targetServicePlan":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a target service plan"},"name":{"type":"string","description":"Name of a target service plan"},"edition":{"type":"string","description":"Edition of a service plan"},"freemiumProductType":{"type":"string","enum":["Freyja","Phoenix"]}},"description":"Information on account target service plan"},"billingPlan":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a billing plan"},"name":{"type":"string","description":"Billing plan name"},"durationUnit":{"type":"string","description":"Duration period","enum":["Day","Month","Year"]},"duration":{"type":"integer","description":"Number of duration units"},"type":{"type":"string","description":"Billing plan type","enum":["Initial","Regular","Suspended","Trial","TrialNoCC","Free"]},"includedPhoneLines":{"type":"integer","description":"Included digital lines count"}},"description":"Information on account billing plan"},"serviceFeatures":{"type":"array","description":"Service features information, see Service Feature List","items":{"type":"object","properties":{"featureName":{"type":"string","description":"Feature name","enum":["AccountFederation","Archiver","AutomaticCallRecordingMute","AutomaticInboundCallRecording","AutomaticOutboundCallRecording","BlockedMessageForwarding","Calendar","CallerIdControl","CallForwarding","CallPark","CallParkLocations","CallSupervision","CallSwitch","CallQualitySurvey","Conferencing","ConferencingNumber","ConfigureDelegates","DeveloperPortal","DND","DynamicConference","EmergencyAddressAutoUpdate","EmergencyCalling","EncryptionAtRest","ExternalDirectoryIntegration","Fax","FaxReceiving","FreeSoftPhoneLines","HDVoice","HipaaCompliance","Intercom","InternationalCalling","InternationalSMS","LinkedSoftphoneLines","MMS","MobileVoipEmergencyCalling","OnDemandCallRecording","Pager","PagerReceiving","Paging","PasswordAuth","PromoMessage","Reports","Presence","RCTeams","RingOut","SalesForce","SharedLines","SingleExtensionUI","SiteCodes","SMS","SMSReceiving","SoftPhoneUpdate","TelephonySessions","UserManagement","VideoConferencing","VoipCalling","VoipCallingOnMobile","Voicemail","VoicemailToText","WebPhone"]},"enabled":{"type":"boolean","description":"Feature status, shows feature availability for the extension"}}}},"limits":{"type":"object","properties":{"freeSoftPhoneLinesPerExtension":{"type":"integer","description":"Max number of free softphone phone lines per user extension"},"meetingSize":{"type":"integer","description":"Max number of participants in RingCentral meeting hosted by this account's user"},"cloudRecordingStorage":{"type":"integer","description":"Meetings recording cloud storage limitaion in Gb"},"maxMonitoredExtensionsPerUser":{"type":"integer","description":"Max number of extensions which can be included in the list of users monitored for Presence"},"maxExtensionNumberLength":{"type":"integer","description":"Max length of extension numbers of an account; the supported value is up to 8 symbols, depends on account type"},"siteCodeLength":{"type":"integer","description":"Length of a site code"},"shortExtensionNumberLength":{"type":"integer","description":"Length of a short extension number"}},"description":"Limits which are effective for the account"},"package":{"type":"object","properties":{"version":{"type":"string","description":"Billing package version"},"id":{"type":"string","description":"Billing package identifier"}}}}}}}}},"x-beta-api":true,"x-api-group":"account/service-info","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadServicePlanInfo","x-feature":"ReadServicePlan","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/service-info\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402682017008/service-info\",\n \"servicePlanName\": \"RingCentral Office Ultimate\",\n \"brand\": {\n \"id\": \"1210\",\n \"name\": \"RingCentral\",\n \"homeCountry\": {\n \"id\": \"1\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n }\n },\n \"contractedCountry\": {\n \"id\": \"224\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/224\"\n },\n \"servicePlan\": {\n \"id\": \"4485\",\n \"name\": \"Office\",\n \"edition\": \"Enterprise\"\n },\n \"billingPlan\": {\n \"id\": \"3029\",\n \"name\": \"Monthly\",\n \"durationUnit\": \"Month\",\n \"duration\": 1,\n \"type\": \"Regular\",\n \"includedPhoneLines\": 1\n },\n \"serviceFeatures\": [\n {\n \"featureName\": \"MMS\",\n \"enabled\": true\n },\n {\n \"featureName\": \"AutomaticCallRecordingMute\",\n \"enabled\": false\n },\n {\n \"featureName\": \"SMS\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Intercom\",\n \"enabled\": true\n },\n {\n \"featureName\": \"SoftPhoneUpdate\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Presence\",\n \"enabled\": true\n },\n {\n \"featureName\": \"SMSReceiving\",\n \"enabled\": true\n },\n {\n \"featureName\": \"VideoConferencing\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Calendar\",\n \"enabled\": true\n },\n {\n \"featureName\": \"DND\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Conferencing\",\n \"enabled\": true\n },\n {\n \"featureName\": \"OnDemandCallRecording\",\n \"enabled\": true\n },\n {\n \"featureName\": \"VoipCalling\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Reports\",\n \"enabled\": true\n },\n {\n \"featureName\": \"AccountFederation\",\n \"enabled\": false\n },\n {\n \"featureName\": \"EmergencyCalling\",\n \"enabled\": false\n },\n {\n \"featureName\": \"PasswordAuth\",\n \"enabled\": true\n },\n {\n \"featureName\": \"LinkedSoftphoneLines\",\n \"enabled\": false\n },\n {\n \"featureName\": \"CallerIdControl\",\n \"enabled\": false\n },\n {\n \"featureName\": \"InternationalCalling\",\n \"enabled\": false\n },\n {\n \"featureName\": \"RCTeams\",\n \"enabled\": true\n },\n {\n \"featureName\": \"BlockedMessageForwarding\",\n \"enabled\": false\n },\n {\n \"featureName\": \"AutomaticOutboundCallRecording\",\n \"enabled\": true\n },\n {\n \"featureName\": \"FaxReceiving\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Paging\",\n \"enabled\": false\n },\n {\n \"featureName\": \"UserManagement\",\n \"enabled\": false\n },\n {\n \"featureName\": \"SingleExtensionUI\",\n \"enabled\": false\n },\n {\n \"featureName\": \"FreeSoftPhoneLines\",\n \"enabled\": true\n },\n {\n \"featureName\": \"CallQualitySurvey\",\n \"enabled\": false\n },\n {\n \"featureName\": \"CallPark\",\n \"enabled\": true\n },\n {\n \"featureName\": \"AutomaticInboundCallRecording\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Pager\",\n \"enabled\": true\n },\n {\n \"featureName\": \"VoicemailToText\",\n \"enabled\": true\n },\n {\n \"featureName\": \"HDVoice\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Voicemail\",\n \"enabled\": true\n },\n {\n \"featureName\": \"CallForwarding\",\n \"enabled\": true\n },\n {\n \"featureName\": \"HipaaCompliance\",\n \"enabled\": false\n },\n {\n \"featureName\": \"InternationalSMS\",\n \"enabled\": false,\n \"reason\": \"AccountLimitation\"\n },\n {\n \"featureName\": \"DeveloperPortal\",\n \"enabled\": true\n },\n {\n \"featureName\": \"Fax\",\n \"enabled\": true\n },\n {\n \"featureName\": \"PagerReceiving\",\n \"enabled\": true\n },\n {\n \"featureName\": \"SalesForce\",\n \"enabled\": true\n },\n {\n \"featureName\": \"RingOut\",\n \"enabled\": true\n },\n {\n \"featureName\": \"EncryptionAtRest\",\n \"enabled\": false\n },\n {\n \"featureName\": \"WebPhone\",\n \"enabled\": false\n },\n {\n \"featureName\": \"CallSupervision\",\n \"enabled\": true\n },\n {\n \"featureName\": \"CallParkLocations\",\n \"enabled\": true\n },\n {\n \"featureName\": \"PromoMessage\",\n \"enabled\": true\n },\n {\n \"featureName\": \"ExternalDirectoryIntegration\",\n \"enabled\": false\n },\n {\n \"featureName\": \"CallSwitch\",\n \"enabled\": false\n },\n {\n \"featureName\": \"SiteCodes\",\n \"enabled\": false\n }\n ],\n \"limits\": {\n \"freeSoftPhoneLinesPerExtension\": 1,\n \"meetingSize\": 50,\n \"maxMonitoredExtensionsPerUser\": 100,\n \"maxExtensionNumberLength\": 5,\n \"siteCodeLength\": 2,\n \"shortExtensionNumberLength\": 3\n }\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/restapi/v1.0/dictionary/language":{"get":{"tags":["Regional Settings"],"summary":"Get Language List","description":"Returns the information about supported languages.","operationId":"listLanguages","responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of the language list resource"},"records":{"type":"array","description":"Language data","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a language"},"uri":{"type":"string","description":"Canonical URI of a language"},"greeting":{"type":"boolean","description":"Indicates whether a language is available as greeting language"},"formattingLocale":{"type":"boolean","description":"Indicates whether a language is available as formatting locale"},"localeCode":{"type":"string","description":"Localization code of a language"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a language"},"ui":{"type":"boolean","description":"Indicates whether a language is available as UI language"}},"description":"User interface language data"}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"dictionary/language","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/language\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language?page=1&perPage=100\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1028\",\n \"id\": \"1028\",\n \"name\": \"Chinese (Taiwan)\",\n \"isoCode\": \"zh\",\n \"localeCode\": \"zh-TW\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1031\",\n \"id\": \"1031\",\n \"name\": \"German (Standard)\",\n \"isoCode\": \"de\",\n \"localeCode\": \"de-DE\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1033\",\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"isoCode\": \"en\",\n \"localeCode\": \"en-US\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1036\",\n \"id\": \"1036\",\n \"name\": \"French (Standard)\",\n \"isoCode\": \"fr\",\n \"localeCode\": \"fr-FR\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1040\",\n \"id\": \"1040\",\n \"name\": \"Italian (Standard)\",\n \"isoCode\": \"it\",\n \"localeCode\": \"it-IT\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1041\",\n \"id\": \"1041\",\n \"name\": \"Japanese\",\n \"isoCode\": \"ja\",\n \"localeCode\": \"ja-JP\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1046\",\n \"id\": \"1046\",\n \"name\": \"Portuguese (Brazil)\",\n \"isoCode\": \"pt\",\n \"localeCode\": \"pt-BR\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/2052\",\n \"id\": \"2052\",\n \"name\": \"Chinese (PRC)\",\n \"isoCode\": \"zh\",\n \"localeCode\": \"zh-CN\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/2057\",\n \"id\": \"2057\",\n \"name\": \"English (United Kingdom)\",\n \"isoCode\": \"en\",\n \"localeCode\": \"en-GB\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/22538\",\n \"id\": \"22538\",\n \"name\": \"Spanish (Latin America)\",\n \"isoCode\": \"es\",\n \"localeCode\": \"es-419\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/3076\",\n \"id\": \"3076\",\n \"name\": \"Chinese (Hong Kong SAR, PRC)\",\n \"isoCode\": \"zh\",\n \"localeCode\": \"zh-HK\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/3082\",\n \"id\": \"3082\",\n \"name\": \"Spanish (Spain, Modern Sort)\",\n \"isoCode\": \"es\",\n \"localeCode\": \"es-ES\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/3084\",\n \"id\": \"3084\",\n \"name\": \"French (Canadian)\",\n \"isoCode\": \"fr\",\n \"localeCode\": \"fr-CA\",\n \"ui\": true,\n \"greeting\": true,\n \"formattingLocale\": true\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 100,\n \"totalElements\": 13,\n \"pageStart\": 0,\n \"pageEnd\": 12\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language?page=1&perPage=100\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language?page=1&perPage=100\"\n }\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"400","errorCode":"OAU-236","message":"Extension is disabled or frozen"},{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]}},"/restapi/v1.0/dictionary/language/{languageId}":{"get":{"tags":["Regional Settings"],"summary":"Get Language","description":"Returns language by ID.","operationId":"readLanguage","parameters":[{"name":"languageId","in":"path","description":"Internal identifier of a language","required":true,"schema":{"type":"integer"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a language"},"uri":{"type":"string","description":"Canonical URI of a language"},"greeting":{"type":"boolean","description":"Indicates whether a language is available as greeting language"},"formattingLocale":{"type":"boolean","description":"Indicates whether a language is available as formatting locale"},"localeCode":{"type":"string","description":"Localization code of a language"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a language"},"ui":{"type":"boolean","description":"Indicates whether a language is available as UI language"}},"description":"User interface language data"}}}}},"x-api-group":"dictionary/language","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/language/1033\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/language/1033\",\n \"id\" : \"1033\",\n \"name\" : \"English (United States)\",\n \"isoCode\" : \"en\",\n \"localeCode\" : \"en-US\",\n \"ui\" : true,\n \"greeting\" : true,\n \"formattingLocale\" : true\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]}},"/restapi/v1.0/dictionary/country":{"get":{"tags":["Regional Settings"],"summary":"Get Country List","description":"Returns all the countries available for calling.","operationId":"listCountries","parameters":[{"name":"loginAllowed","in":"query","description":"Specifies whether login with the phone numbers of this country is enabled or not","schema":{"type":"boolean"}},{"name":"signupAllowed","in":"query","description":"Indicates whether signup/billing is allowed for a country. If not specified all countries are returned (according to other filters specified if any)","schema":{"type":"boolean"}},{"name":"numberSelling","in":"query","description":"Specifies if RingCentral sells phone numbers of this country","schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}},{"name":"freeSoftphoneLine","in":"query","description":"Specifies if free phone line for softphone is available for a country or not","schema":{"type":"boolean"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records"],"type":"object","properties":{"uri":{"type":"string","description":"Link to the list of countries supported"},"records":{"type":"array","description":"List of countries with the country data","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a country"},"uri":{"type":"string","description":"Canonical URI of a country"},"callingCode":{"type":"string","description":"Country calling code defined by ITU-T recommendations [E.123](https://www.itu.int/rec/T-REC-E.123-200102-I/en) and [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)"},"emergencyCalling":{"type":"boolean","description":"Emergency calling feature availability/emergency address requirement indicator"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a country"},"numberSelling":{"type":"boolean","description":"Determines whether phone numbers are available for a country"},"loginAllowed":{"type":"boolean","description":"Specifies whether login with the phone numbers of this country is enabled or not"},"signupAllowed":{"type":"boolean","description":"Indicates whether signup/billing is allowed for a country"},"freeSoftphoneLine":{"type":"boolean","description":"Specifies if free phone line for softphone is available for a country or not"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"dictionary/country","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"title":"The header 'If-None-Match' is not specified","request":"GET /restapi/v1.0/dictionary/country?page=1&perPage=4&numberSelling=true&freeSoftphoneLine=true&loginAllowed=true&signupAllowed=true\n","response":"HTTP 200 OK\nETag: \"1059645308\"\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country?numberSelling=true&loginAllowed=true&freeSoftphoneLine=true&signupAllowed=true&page=1&perPage=4\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/39\",\n \"id\": \"39\",\n \"name\": \"Canada\",\n \"isoCode\": \"CA\",\n \"callingCode\": \"1\",\n \"emergencyCalling\": false,\n \"numberSelling\": true,\n \"loginAllowed\": true,\n \"freeSoftphoneLine\": true,\n \"signupAllowed\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/224\",\n \"id\": \"224\",\n \"name\": \"United Kingdom\",\n \"isoCode\": \"GB\",\n \"callingCode\": \"44\",\n \"emergencyCalling\": true,\n \"numberSelling\": true,\n \"loginAllowed\": true,\n \"freeSoftphoneLine\": true,\n \"signupAllowed\": true\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\",\n \"emergencyCalling\": false,\n \"numberSelling\": true,\n \"loginAllowed\": true,\n \"freeSoftphoneLine\": true,\n \"signupAllowed\": true\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 4,\n \"totalElements\": 3,\n \"pageStart\": 0,\n \"pageEnd\": 2\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country?numberSelling=true&loginAllowed=true&freeSoftphoneLine=true&signupAllowed=true&page=1&perPage=4\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country?numberSelling=true&loginAllowed=true&freeSoftphoneLine=true&signupAllowed=true&page=1&perPage=4\"\n }\n }\n}\n"},{"title":"The header 'If-None-Match' is specified and the Country list has not been changed","request":"GET /restapi/v1.0/dictionary/country\nIf-None-Match: \"1059645308\"\n","response":"HTTP 304 Not Modified\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"401","errorCode":"OAU-127","message":"Invalid application"},{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"},{"httpCode":"429","errorCode":"CMN-304","message":"Duplicate concurrent request. Try again later"}]}},"/restapi/v1.0/dictionary/country/{countryId}":{"get":{"tags":["Regional Settings"],"summary":"Get Country","description":"Returns the information on a specific country.","operationId":"readCountry","parameters":[{"name":"countryId","in":"path","description":"Internal identifier of a country","required":true,"schema":{"type":"integer"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a country"},"uri":{"type":"string","description":"Canonical URI of a country"},"callingCode":{"type":"string","description":"Country calling code defined by ITU-T recommendations [E.123](https://www.itu.int/rec/T-REC-E.123-200102-I/en) and [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)"},"emergencyCalling":{"type":"boolean","description":"Emergency calling feature availability/emergency address requirement indicator"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a country"},"numberSelling":{"type":"boolean","description":"Determines whether phone numbers are available for a country"},"loginAllowed":{"type":"boolean","description":"Specifies whether login with the phone numbers of this country is enabled or not"},"signupAllowed":{"type":"boolean","description":"Indicates whether signup/billing is allowed for a country"},"freeSoftphoneLine":{"type":"boolean","description":"Specifies if free phone line for softphone is available for a country or not"}}}}}}},"x-api-group":"dictionary/country","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/country/75\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/75\",\n \"id\" : \"75\",\n \"name\" : \"France\",\n \"isoCode\" : \"FR\",\n \"callingCode\" : \"33\",\n \"emergencyCalling\" : false,\n \"numberSelling\" : true,\n \"loginAllowed\" : true,\n \"signupAllowed\" : true,\n \"freeSoftphoneLine\" : true\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]}},"/restapi/v1.0/dictionary/location":{"get":{"tags":["Regional Settings"],"summary":"Get Location List","description":"Returns all available locations for a certain state.","operationId":"listLocations","parameters":[{"name":"orderBy","in":"query","description":"Sorts results by the property specified","schema":{"type":"string","default":"City","enum":["Npa","City"]}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}},{"name":"stateId","in":"query","description":"Internal identifier of a state","schema":{"type":"string"}},{"name":"withNxx","in":"query","description":"Specifies if nxx codes are returned","schema":{"type":"boolean"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging"],"type":"object","properties":{"uri":{"type":"string","description":"Link to the location list resource"},"records":{"type":"array","description":"List of locations","items":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a location"},"areaCode":{"type":"string","description":"Area code of the location"},"city":{"type":"string","description":"Official name of the city, belonging to the certain state"},"npa":{"type":"string","description":"Area code of the location (3-digit usually), according to the NANP number format, that can be summarized as NPA-NXX-xxxx and covers Canada, the United States, parts of the Caribbean Sea, and some Atlantic and Pacific islands. See for details North American Numbering Plan"},"nxx":{"type":"string","description":"Central office code of the location, according to the NANP number format, that can be summarized as NPA-NXX-xxxx and covers Canada, the United States, parts of the Caribbean Sea, and some Atlantic and Pacific islands. See for details North American Numbering Plan"},"state":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a state"},"uri":{"type":"string","description":"Link to a state resource"}},"description":"Information on the state this location belongs to"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"dictionary/location","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/location?page=60&perPage=5&stateId=16\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/location?stateId=16&withNxx=true&orderBy=city&page=60&perPage=5\",\n \"records\" : [ {\n \"city\" : \"Beverly Hills\",\n \"areaCode\" : \"310\",\n \"npa\" : \"310\",\n \"nxx\" : \"284\",\n \"state\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/16\",\n \"id\" : \"16\"\n }\n }, {\n \"city\" : \"Beverly Hills\",\n \"areaCode\" : \"310\",\n \"npa\" : \"310\",\n \"nxx\" : \"288\",\n \"state\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/16\",\n \"id\" : \"16\"\n }\n }, {\n \"city\" : \"Beverly Hills\",\n \"areaCode\" : \"310\",\n \"npa\" : \"310\",\n \"nxx\" : \"299\",\n \"state\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/16\",\n \"id\" : \"16\"\n }\n }, {\n \"city\" : \"Beverly Hills\",\n \"areaCode\" : \"310\",\n \"npa\" : \"310\",\n \"nxx\" : \"360\",\n \"state\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/16\",\n \"id\" : \"16\"\n }\n }, {\n \"city\" : \"Beverly Hills\",\n \"areaCode\" : \"310\",\n \"npa\" : \"310\",\n \"nxx\" : \"388\",\n \"state\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/16\",\n \"id\" : \"16\"\n }\n } ],\n \"paging\" : {\n \"page\" : 60,\n \"totalPages\" : 1068,\n \"perPage\" : 5,\n \"totalElements\" : 5339,\n \"pageStart\" : 295,\n \"pageEnd\" : 299\n },\n \"navigation\" : {\n \"nextPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/location?stateId=16&withNxx=true&orderBy=city&page=61&perPage=5\"\n },\n \"previousPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/location?stateId=16&withNxx=true&orderBy=city&page=59&perPage=5\"\n },\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/location?stateId=16&withNxx=true&orderBy=city&page=1&perPage=5\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/location?stateId=16&withNxx=true&orderBy=city&page=1068&perPage=5\"\n }\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/restapi/v1.0/dictionary/state":{"get":{"tags":["Regional Settings"],"summary":"Get States List","description":"Returns all the states of a certain country","operationId":"listStates","parameters":[{"name":"allCountries","in":"query","description":"If set to 'True' then states for all countries are returned and `countryId` is ignored, even if specified. If the value is empty then the parameter is ignored","schema":{"type":"boolean"}},{"name":"countryId","in":"query","description":"Internal identifier of a country","schema":{"type":"integer"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}},{"name":"withPhoneNumbers","in":"query","description":"If 'True', the list of states with phone numbers available for buying is returned","schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to the states list resource"},"records":{"type":"array","description":"List of states","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a state"},"uri":{"type":"string","description":"Canonical URI of a state"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a state"},"uri":{"type":"string","description":"Canonical URI of a state"}},"description":"Information on a country the state belongs to"},"isoCode":{"type":"string","description":"Short code for a state (2-letter usually)"},"name":{"type":"string","description":"Official name of a state"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"dictionary/state","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/state?countryId=1&page=1&perPage=5\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state?countryId=1&withPhoneNumbers=false&page=1&perPage=5\",\n \"records\" : [ {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/12\",\n \"id\" : \"12\",\n \"name\" : \"Alabama\",\n \"isoCode\" : \"AL\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\"\n }\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/13\",\n \"id\" : \"13\",\n \"name\" : \"Alaska\",\n \"isoCode\" : \"AK\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\"\n }\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/14\",\n \"id\" : \"14\",\n \"name\" : \"Arizona\",\n \"isoCode\" : \"AZ\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\"\n }\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/15\",\n \"id\" : \"15\",\n \"name\" : \"Arkansas\",\n \"isoCode\" : \"AR\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\"\n }\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/401\",\n \"id\" : \"401\",\n \"name\" : \"American Samoa\",\n \"isoCode\" : \"AM\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\"\n }\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 11,\n \"perPage\" : 5,\n \"totalElements\" : 55,\n \"pageStart\" : 0,\n \"pageEnd\" : 4\n },\n \"navigation\" : {\n \"nextPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state?countryId=1&withPhoneNumbers=false&page=2&perPage=5\"\n },\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state?countryId=1&withPhoneNumbers=false&page=1&perPage=5\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state?countryId=1&withPhoneNumbers=false&page=11&perPage=5\"\n }\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/restapi/v1.0/dictionary/state/{stateId}":{"get":{"tags":["Regional Settings"],"summary":"Get State","description":"Returns the information on a specific state.","operationId":"readState","parameters":[{"name":"stateId","in":"path","description":"Internal identifier of a state","required":true,"schema":{"type":"integer"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a state"},"uri":{"type":"string","description":"Canonical URI of a state"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a state"},"uri":{"type":"string","description":"Canonical URI of a state"}},"description":"Information on a country the state belongs to"},"isoCode":{"type":"string","description":"Short code for a state (2-letter usually)"},"name":{"type":"string","description":"Official name of a state"}}}}}}},"x-api-group":"dictionary/state","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/state/16\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/state/16\",\n \"id\" : \"16\",\n \"name\" : \"California\",\n \"isoCode\" : \"CA\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/dictionary/timezone":{"get":{"tags":["Regional Settings"],"summary":"Get Timezone List","description":"Returns all available timezones.","operationId":"listTimezones","parameters":[{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"string","default":"1"}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"string","default":"100"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records"],"type":"object","properties":{"uri":{"type":"string","description":"Link to the timezone list resource"},"records":{"type":"array","description":"List of timezones","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a timezone"},"uri":{"type":"string","description":"Canonical URI of a timezone"},"name":{"type":"string","description":"Short name of a timezone"},"description":{"type":"string","description":"Description of a timezone"},"bias":{"type":"string"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"dictionary/timezone","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/timezone?page=11&perPage=5\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone?page=11&perPage=5\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/51\",\n \"id\": \"51\",\n \"name\": \"US/Eastern\",\n \"description\": \"Eastern Time (US & Canada)\",\n \"bias\": \"-300\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/52\",\n \"id\": \"52\",\n \"name\": \"America/Indianapolis\",\n \"description\": \"Indiana (East)\",\n \"bias\": \"-300\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/53\",\n \"id\": \"53\",\n \"name\": \"US/Central\",\n \"description\": \"Central Time (US & Canada)\",\n \"bias\": \"-360\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/54\",\n \"id\": \"54\",\n \"name\": \"America/Mexico_City\",\n \"description\": \"Guadalajara, Mexico City, Monterrey\",\n \"bias\": \"-360\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/55\",\n \"id\": \"55\",\n \"name\": \"Canada/Saskatchewan\",\n \"description\": \"Saskatchewan\",\n \"bias\": \"-360\"\n }\n ],\n \"paging\": {\n \"page\": 11,\n \"totalPages\": 19,\n \"perPage\": 5,\n \"totalElements\": 91,\n \"pageStart\": 50,\n \"pageEnd\": 54\n },\n \"navigation\": {\n \"nextPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone?page=12&perPage=5\"\n },\n \"previousPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone?page=10&perPage=5\"\n },\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone?page=1&perPage=5\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone?page=19&perPage=5\"\n }\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/restapi/v1.0/dictionary/timezone/{timezoneId}":{"get":{"tags":["Regional Settings"],"summary":"Get Timezone","description":"Returns the information on a certain timezone.","operationId":"readTimezone","parameters":[{"name":"timezoneId","in":"path","description":"Internal identifier of a timezone","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"string","default":"1"}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"string","default":"100"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a timezone"},"uri":{"type":"string","description":"Canonical URI of a timezone"},"name":{"type":"string","description":"Short name of a timezone"},"description":{"type":"string","description":"Description of a timezone"},"bias":{"type":"string"}}}}}}},"x-api-group":"dictionary/timezone","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/dictionary/timezone/58\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/58\",\n \"id\": \"58\",\n \"name\": \"US/Pacific\",\n \"description\": \"Pacific Time (US & Canada)\",\n \"bias\": \"-480\"\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/restapi/v1.0/account/{accountId}/phone-number":{"get":{"tags":["Phone Numbers"],"summary":"Get Company Phone Number List","description":"Returns the list of phone numbers assigned to RingCentral customer account. Both company-level and extension-level numbers are returned.","operationId":"listAccountPhoneNumbers","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}},{"name":"usageType","in":"query","description":"Usage type of a phone number","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["MainCompanyNumber","AdditionalCompanyNumber","CompanyNumber","DirectNumber","CompanyFaxNumber","ForwardedNumber","ForwardedCompanyNumber","ContactCenterNumber","ConferencingNumber","MeetingsNumber","BusinessMobileNumber","ExternalMobileNumber"]}}},{"name":"status","in":"query","description":"Status of a phone number. Multiple values are supported","schema":{"type":"string","enum":["Normal","Pending","PortedIn","Temporary"]}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to the list of account phone numbers"},"records":{"type":"array","description":"List of account phone numbers","items":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a company phone number resource"},"id":{"type":"integer","description":"Internal identifier of a phone number"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"},"extension":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}}},"label":{"type":"string","description":"Custom user name of a phone number, if any"},"location":{"type":"string","description":"Location (City, State). Filled for local US numbers"},"paymentType":{"type":"string","description":"Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system","enum":["External","TollFree","Local","BusinessMobileNumberProvider","ExternalNumberProvider"]},"phoneNumber":{"type":"string","description":"Phone number"},"status":{"type":"string","description":"Status of a phone number. If the value is 'Normal', the phone number is ready to be used. Otherwise it is an external number not yet ported to RingCentral"},"type":{"type":"string","description":"Phone number type","enum":["VoiceFax","FaxOnly","VoiceOnly"]},"usageType":{"type":"string","description":"Usage type of a phone number. Usage type of a phone number. Numbers of 'NumberPool' type wont't be returned for phone number list requests","enum":["MainCompanyNumber","AdditionalCompanyNumber","CompanyNumber","DirectNumber","CompanyFaxNumber","ForwardedNumber","ForwardedCompanyNumber","ContactCenterNumber","ConferencingNumber","MeetingsNumber","NumberPool","BusinessMobileNumber","ExternalMobileNumber"]},"temporaryNumber":{"type":"object","properties":{"id":{"type":"string","description":"Temporary phone number identifier"},"phoneNumber":{"type":"string","description":"Temporary phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"}},"description":"Temporary phone number, if any. Returned for phone numbers in `Pending` porting status only"},"contactCenterProvider":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of the provider"},"name":{"type":"string","description":"Provider's name"}},"description":"CCRN (Contact Center Routing Number) provider. If not specified then the default value 'InContact/North America' is used, its ID is '1'"},"vanityPattern":{"type":"string","description":"Vanity pattern for this number. Returned only when vanity search option is requested. Vanity pattern corresponds to request parameters nxx plus line or numberPattern"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/phone-number","x-throttling-group":"Heavy","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyPhoneNumbers","x-feature":"ReadAccountPhoneNumbers","x-docs-level":"Public","x-http-examples":[{"request":"GET /restapi/v1.0/account/1717093004/phone-number?perPage=4\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number?page=1&perPage=4\",\n \"records\" : [ {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162821004\",\n \"id\" : 1162821004,\n \"phoneNumber\" : \"+18002024080\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"VoiceOnly\",\n \"usageType\" : \"DirectNumber\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/extension/1717095004\",\n \"id\" : 1717095004,\n \"extensionNumber\" : \"102\"\n },\n \"status\" : \"Normal\"\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162822004\",\n \"id\" : 1162822004,\n \"phoneNumber\" : \"+18332023665\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"VoiceOnly\",\n \"usageType\" : \"DirectNumber\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/extension/1717096004\",\n \"id\" : 1717096004,\n \"extensionNumber\" : \"103\"\n },\n \"status\" : \"Normal\"\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162820004\",\n \"id\" : 1162820004,\n \"phoneNumber\" : \"+18552023884\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"FaxOnly\",\n \"usageType\" : \"CompanyFaxNumber\",\n \"status\" : \"Normal\"\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162818004\",\n \"id\" : 1162818004,\n \"phoneNumber\" : \"+18662023455\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"VoiceFax\",\n \"usageType\" : \"MainCompanyNumber\",\n \"status\" : \"Normal\"\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 2,\n \"perPage\" : 4,\n \"totalElements\" : 5,\n \"pageStart\" : 0,\n \"pageEnd\" : 3\n },\n \"navigation\" : {\n \"nextPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number?page=2&perPage=4\"\n },\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number?page=1&perPage=4\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number?page=2&perPage=4\"\n }\n } \n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"}]}},"/restapi/v1.0/account/{accountId}/phone-number/{phoneNumberId}":{"get":{"tags":["Phone Numbers"],"summary":"Get Phone Number","description":"Returns the phone number(s) belonging to a certain account or extension by phoneNumberId(s). Batch request is supported.","operationId":"readAccountPhoneNumber","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"phoneNumberId","in":"path","description":"Internal identifier of a phone number","required":true,"schema":{"type":"integer"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a company phone number resource"},"id":{"type":"integer","description":"Internal identifier of a phone number"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"},"extension":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}}},"label":{"type":"string","description":"Custom user name of a phone number, if any"},"location":{"type":"string","description":"Location (City, State). Filled for local US numbers"},"paymentType":{"type":"string","description":"Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system","enum":["External","TollFree","Local","BusinessMobileNumberProvider","ExternalNumberProvider"]},"phoneNumber":{"type":"string","description":"Phone number"},"status":{"type":"string","description":"Status of a phone number. If the value is 'Normal', the phone number is ready to be used. Otherwise it is an external number not yet ported to RingCentral"},"type":{"type":"string","description":"Phone number type","enum":["VoiceFax","FaxOnly","VoiceOnly"]},"usageType":{"type":"string","description":"Usage type of a phone number. Usage type of a phone number. Numbers of 'NumberPool' type wont't be returned for phone number list requests","enum":["MainCompanyNumber","AdditionalCompanyNumber","CompanyNumber","DirectNumber","CompanyFaxNumber","ForwardedNumber","ForwardedCompanyNumber","ContactCenterNumber","ConferencingNumber","MeetingsNumber","NumberPool","BusinessMobileNumber","ExternalMobileNumber"]},"temporaryNumber":{"type":"object","properties":{"id":{"type":"string","description":"Temporary phone number identifier"},"phoneNumber":{"type":"string","description":"Temporary phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"}},"description":"Temporary phone number, if any. Returned for phone numbers in `Pending` porting status only"},"contactCenterProvider":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of the provider"},"name":{"type":"string","description":"Provider's name"}},"description":"CCRN (Contact Center Routing Number) provider. If not specified then the default value 'InContact/North America' is used, its ID is '1'"},"vanityPattern":{"type":"string","description":"Vanity pattern for this number. Returned only when vanity search option is requested. Vanity pattern corresponds to request parameters nxx plus line or numberPattern"}}}}}}},"x-api-group":"account/phone-number","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyPhoneNumbers","x-feature":"ReadAccountPhoneNumbers","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"title":"Single Phone Number","request":"GET /restapi/v1.0/account/1717093004/phone-number/1162821004\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162821004\",\n \"id\" : 1162821004,\n \"phoneNumber\" : \"+18002024080\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"VoiceOnly\",\n \"usageType\" : \"DirectNumber\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/extension/1717095004\",\n \"id\" : 1717095004,\n \"extensionNumber\" : \"102\"\n },\n \"status\" : \"Normal\"\n}\n"},{"title":"Multiple Phone Numbers","request":"GET /restapi/v1.0/account/1717093004/phone-number/1162821004%2C%201162818004%2C%201162820004%20\n","response":"HTTP 207 \n\n--Boundary_1_1014758142_1536940506949\nContent-Type: application/json\n\n{\n \"response\" : [ {\n \"href\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162821004\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n }, {\n \"href\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162818004\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n }, {\n \"href\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162820004\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n } ]\n}\n--Boundary_1_1014758142_1536940506949\nContent-Type: application/json\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162821004\",\n \"id\" : 1162821004,\n \"phoneNumber\" : \"+18002024080\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"VoiceOnly\",\n \"usageType\" : \"DirectNumber\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/extension/1717095004\",\n \"id\" : 1717095004,\n \"extensionNumber\" : \"102\"\n },\n \"status\" : \"Normal\"\n}\n--Boundary_1_1014758142_1536940506949\nContent-Type: application/json\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162818004\",\n \"id\" : 1162818004,\n \"phoneNumber\" : \"+18662023455\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"VoiceFax\",\n \"usageType\" : \"MainCompanyNumber\",\n \"status\" : \"Normal\"\n}\n--Boundary_1_1014758142_1536940506949\nContent-Type: application/json\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1717093004/phone-number/1162820004\",\n \"id\" : 1162820004,\n \"phoneNumber\" : \"+18552023884\",\n \"paymentType\" : \"TollFree\",\n \"type\" : \"FaxOnly\",\n \"usageType\" : \"CompanyFaxNumber\",\n \"status\" : \"Normal\"\n}\n--Boundary_1_1014758142_1536940506949--\n"}],"x-error-codes":[{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [phoneNumberId] is not found"}]}},"/restapi/v1.0/account/{accountId}/extension":{"get":{"tags":["Extensions"],"summary":"Get Extension List","description":"Returns the list of extensions created for a particular account. All types of extensions are included in this list.","operationId":"listExtensions","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionNumber","in":"query","description":"Number of extension to be retrieved","schema":{"type":"string"}},{"name":"email","in":"query","description":"Extension email address","schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are allowed","schema":{"type":"integer","format":"int64","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","format":"int64","default":100}},{"name":"status","in":"query","description":"Extension current state. Multiple values are supported. If 'Unassigned' is specified, then extensions without `extensionNumber` attribute are returned. If not specified, then all extensions are returned.","allowEmptyValue":true,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["Enabled","Disabled","NotActivated","Unassigned"]}}},{"name":"type","in":"query","description":"Extension type. Multiple values are supported. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","allowEmptyValue":true,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["User","FaxUser","VirtualUser","DigitalUser","Department","Announcement","Voicemail","SharedLinesGroup","PagingOnly","IvrMenu","ApplicationExtension","ParkLocation","Limited","Bot","ProxyAdmin","DelegatedLinesGroup"]}}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["records"],"type":"object","properties":{"uri":{"type":"string","description":"Link to the extension list resource"},"records":{"type":"array","description":"List of extensions with extension information","items":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of an extension","format":"int64"},"uri":{"type":"string","description":"Canonical URI of an extension"},"contact":{"type":"object","properties":{"firstName":{"type":"string","description":"For User extension type only. Extension user first name"},"lastName":{"type":"string","description":"For User extension type only. Extension user last name"},"company":{"type":"string","description":"Extension user company name"},"jobTitle":{"type":"string"},"email":{"type":"string","description":"Email of extension user"},"businessPhone":{"type":"string","description":"Extension user contact phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"},"mobilePhone":{"type":"string","description":"Extension user mobile (**non** Toll Free) phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"emailAsLoginName":{"type":"boolean","description":"If 'True' then contact email is enabled as login name for this user. Please note that email should be unique in this case.","default":false},"pronouncedName":{"type":"object","properties":{"type":{"type":"string","description":"Voice name type. 'Default' - default extension name; first name and last name specified in user profile; 'TextToSpeech' - custom text; user name spelled the way it sounds and specified by user; 'Recorded' - custom audio, user name recorded in user's own voice (supported only for extension retrieval)","enum":["Default","TextToSpeech","Recorded"]},"text":{"type":"string","description":"Custom text"},"prompt":{"type":"object","properties":{"id":{"type":"string"},"contentUri":{"type":"string","description":"Link to a prompt resource"},"contentType":{"type":"string","description":"Content media type","enum":["audio/mpeg","audio/wav"]}}}}},"department":{"type":"string","description":"Extension user department, if any"}},"description":"Contact detailed information"},"extensionNumber":{"type":"string","description":"Number of an extension"},"name":{"type":"string","description":"Extension name. For user extension types the value is a combination of the specified first name and last name"},"permissions":{"type":"object","properties":{"admin":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Specifies if a permission is enabled or not"}},"description":"Admin permission"},"internationalCalling":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Specifies if a permission is enabled or not"}},"description":"International Calling permission"}},"description":"Extension permissions, corresponding to the Service Web permissions 'Admin' and 'InternationalCalling'"},"profileImage":{"required":["uri"],"type":"object","properties":{"uri":{"type":"string","description":"Link to a profile image. If an image is not uploaded for an extension, only uri is returned"},"etag":{"type":"string","description":"Identifier of an image"},"lastModified":{"type":"string","description":"The datetime when an image was last updated in ISO 8601 format, for example 2016-03-10T18:07:52.534Z","format":"date-time"},"contentType":{"type":"string","description":"The type of an image"},"scales":{"type":"array","description":"List of URIs to profile images in different dimensions","items":{"type":"object","properties":{"uri":{"type":"string"}}}}},"description":"Information on profile image"},"status":{"type":"string","description":"Extension current state. If 'Unassigned' is specified, then extensions without ‘extensionNumber’ are returned. If not specified, then all extensions are returned","enum":["Enabled","Disabled","Frozen","NotActivated","Unassigned"]},"type":{"type":"string","description":"Extension type. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","enum":["User","FaxUser","VirtualUser","DigitalUser","Department","Announcement","Voicemail","SharedLinesGroup","PagingOnly","IvrMenu","ApplicationExtension","ParkLocation","Bot","Room","Limited","Site","ProxyAdmin","DelegatedLinesGroup","GroupCallPickup"]},"callQueueInfo":{"type":"object","properties":{"slaGoal":{"type":"integer","description":"Target percentage of calls that must be answered by agents within the service level time threshold"},"slaThresholdSeconds":{"type":"integer","description":"Period of time in seconds that is considered to be an acceptable service level"},"includeAbandonedCalls":{"type":"boolean","description":"If 'True' abandoned calls (hanged up prior to being served) are included into service level calculation"},"abandonedThresholdSeconds":{"type":"integer","description":"Period of time in seconds specifying abandoned calls duration - calls that are shorter will not be included into the calculation of service level.; zero value means that abandoned calls of any duration will be included into calculation"}},"description":"For Call Queue extension type only. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology"},"hidden":{"type":"boolean","description":"Hides extension from showing in company directory. Supported for extensions of User type only"},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a site"},"uri":{"type":"string","description":"Link to a site resource"},"name":{"type":"string","description":"Name of a site"},"code":{"type":"string","description":"Site code value. Returned only if specified"}},"description":"Site data. If multi-site feature is turned on for the account, then ID of a site must be specified. In order to assign a wireless point to the main site (company) site ID should be set to `main-site`"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"extension","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-docs-level":"Public","x-notifications":[{"type":"object","properties":{"uuid":{"type":"string","description":"Universally unique identifier of a notification"},"event":{"type":"string","description":"Event filter URI"},"timestamp":{"type":"string","description":"Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z*"},"subscriptionId":{"type":"string","description":"Internal identifier of a subscription"},"body":{"type":"object","properties":{"extensionId":{"type":"string","description":"Internal identifier of an extension"},"eventType":{"type":"string","description":"Type of extension info change","enum":["Create","Update","Delete"]},"ownerId":{"type":"string","description":"Internal identifier of a subscription owner extension"}},"description":"Notification payload body"}}}],"x-service-level":1000,"x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/extension?page=1&perPage=2\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401836781008/extension?page=1&perPage=2\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401836781008/extension/401864056008\",\n \"id\": 401864056008,\n \"extensionNumber\": \"102\",\n \"contact\": {\n \"firstName\": \"Bob\",\n \"lastName\": \"Johnson\",\n \"email\": \"bob.johnson@example.com\",\n \"emailAsLoginName\": true\n },\n \"name\": \"Bob Johnson\",\n \"type\": \"User\",\n \"status\": \"Enabled\",\n \"permissions\": {\n \"admin\": {\n \"enabled\": false\n },\n \"internationalCalling\": {\n \"enabled\": true\n }\n },\n \"profileImage\": {\n \"uri\": \"https://media.ringcentral.com/restapi/v1.0/account/401836781008/extension/401864056008/profile-image\"\n }\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401836781008/extension/401836781008\",\n \"id\": 401836781008,\n \"extensionNumber\": \"101\",\n \"contact\": {\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\",\n \"company\": \"Example, Inc.\",\n \"email\": \"alice.smith@example.com\",\n \"businessPhone\": \"+16025809302\",\n \"emailAsLoginName\": true\n },\n \"name\": \"Alice Smith\",\n \"type\": \"User\",\n \"status\": \"Enabled\",\n \"permissions\": {\n \"admin\": {\n \"enabled\": true\n },\n \"internationalCalling\": {\n \"enabled\": true\n }\n },\n \"profileImage\": {\n \"uri\": \"https://media.ringcentral.com/restapi/v1.0/account/401836781008/extension/401836781008/profile-image\",\n \"etag\": \"7a1decb8efda89d7c0acff42f061d99d\",\n \"contentType\": \"image/gif\",\n \"lastModified\": \"2016-02-26T09:29:45.316Z\",\n \"scales\": [\n {\n \"uri\": \"https://media.ringcentral.com/restapi/v1.0/account/401836781008/extension/401836781008/profile-image/90x90\"\n },\n {\n \"uri\": \"https://media.ringcentral.com/restapi/v1.0/account/401836781008/extension/401836781008/profile-image/195x195\"\n },\n {\n \"uri\": \"https://media.ringcentral.com/restapi/v1.0/account/401836781008/extension/401836781008/profile-image/584x584\"\n }\n ]\n }\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 2,\n \"totalElements\": 2,\n \"pageStart\": 0,\n \"pageEnd\": 1\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401836781008/extension?page=1&perPage=2\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401836781008/extension?page=1&perPage=2\"\n }\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [page] value is invalid."},{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"},{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [accountId] is not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]},"post":{"tags":["Extensions"],"summary":"Create Extension","description":"Creates an extension.","operationId":"createExtension","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"type":"object","properties":{"firstName":{"type":"string","description":"For User extension type only. Extension user first name"},"lastName":{"type":"string","description":"For User extension type only. Extension user last name"},"company":{"type":"string","description":"Extension user company name"},"jobTitle":{"type":"string"},"email":{"type":"string","description":"Email of extension user"},"businessPhone":{"type":"string","description":"Extension user contact phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format"},"mobilePhone":{"type":"string","description":"Extension user mobile (**non** Toll Free) phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"emailAsLoginName":{"type":"boolean","description":" If 'True' then contact email is enabled as login name for this user. Please note that email should be unique in this case. The default value is 'False'"},"pronouncedName":{"type":"object","properties":{"type":{"type":"string","description":"Voice name type. 'Default' - default extension name; first name and last name specified in user profile; 'TextToSpeech' - custom text; user name spelled the way it sounds and specified by user; 'Recorded' - custom audio, user name recorded in user's own voice (supported only for extension retrieval)","enum":["Default","TextToSpeech","Recorded"]},"text":{"type":"string","description":"Custom text"},"prompt":{"type":"object","properties":{"id":{"type":"string"},"contentUri":{"type":"string","description":"Link to a prompt resource"},"contentType":{"type":"string","description":"Content media type","enum":["audio/mpeg","audio/wav"]}}}}},"department":{"type":"string","description":"Extension user department, if any"}},"description":"Contact Information"},"extensionNumber":{"type":"string","description":"Number of extension"},"customFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a custom field"},"value":{"type":"string","description":"Custom field value"},"displayName":{"type":"string"}}}},"password":{"type":"string","description":"Password for extension. If not specified, the password is auto-generated"},"references":{"type":"array","description":"List of non-RC internal identifiers assigned to an extension","items":{"type":"object","properties":{"ref":{"type":"string","description":"Non-RC identifier of an extension"},"type":{"type":"string","description":"Type of external identifier","enum":["PartnerId","CustomerDirectoryId"]}}}},"regionalSettings":{"type":"object","properties":{"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"},"timezone":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a timezone"},"uri":{"type":"string","description":"Canonical URI of a timezone"},"name":{"type":"string","description":"Short name of a timezone"},"description":{"type":"string","description":"Meaningful description of the timezone"},"bias":{"type":"string"}},"description":"Extension timezone information"},"language":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a language"},"uri":{"type":"string","description":"Canonical URI of a language"},"greeting":{"type":"boolean","description":"Indicates whether a language is available as greeting language"},"formattingLocale":{"type":"boolean","description":"Indicates whether a language is available as formatting locale"},"localeCode":{"type":"string","description":"Localization code of a language"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a language"},"ui":{"type":"boolean","description":"Indicates whether a language is available as UI language"}},"description":"User interface language data"},"greetingLanguage":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a greeting language"},"localeCode":{"type":"string","description":"Localization code of a greeting language"},"name":{"type":"string","description":"Official name of a greeting language"}},"description":"Information on language used for telephony greetings"},"formattingLocale":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a formatting language"},"localeCode":{"type":"string","description":"Localization code of a formatting language"},"name":{"type":"string","description":"Official name of a formatting language"}},"description":"Formatting language preferences for numbers, dates and currencies"},"timeFormat":{"type":"string","description":"Time format setting. The default value is '12h' = ['12h', '24h']","enum":["12h","24h"]}},"description":"Regional data (timezone, home country, language) of an extension/account. The default is Company (Auto-Receptionist) settings"},"partnerId":{"type":"string","description":"Additional extension identifier, created by partner application and applied on client side"},"ivrPin":{"type":"string","description":"IVR PIN"},"setupWizardState":{"type":"string","description":"Specifies extension configuration wizard state (web service setup).","default":"NotStarted","enum":["NotStarted","Incomplete","Completed"]},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal idetifier of a site extension"},"uri":{"type":"string","description":"Link to a site resource"},"name":{"type":"string","description":"Extension user first name"},"extensionNumber":{"type":"string","description":"Extension number"},"callerIdName":{"type":"string","description":"Custom name of a caller. Max number of characters is 15 (only alphabetical symbols, numbers and commas are supported)"},"email":{"type":"string","description":"Exetnsion user email"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"regionalSettings":{"type":"object","properties":{"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"},"timezone":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a timezone"},"uri":{"type":"string","description":"Canonical URI of a timezone"},"name":{"type":"string","description":"Short name of a timezone"},"description":{"type":"string","description":"Meaningful description of the timezone"},"bias":{"type":"string"}},"description":"Extension timezone information"},"language":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a language"},"uri":{"type":"string","description":"Canonical URI of a language"},"greeting":{"type":"boolean","description":"Indicates whether a language is available as greeting language"},"formattingLocale":{"type":"boolean","description":"Indicates whether a language is available as formatting locale"},"localeCode":{"type":"string","description":"Localization code of a language"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a language"},"ui":{"type":"boolean","description":"Indicates whether a language is available as UI language"}},"description":"User interface language data"},"greetingLanguage":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a greeting language"},"localeCode":{"type":"string","description":"Localization code of a greeting language"},"name":{"type":"string","description":"Official name of a greeting language"}},"description":"Information on language used for telephony greetings"},"formattingLocale":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a formatting language"},"localeCode":{"type":"string","description":"Localization code of a formatting language"},"name":{"type":"string","description":"Official name of a formatting language"}},"description":"Formatting language preferences for numbers, dates and currencies"},"timeFormat":{"type":"string","description":"Time format setting. The default value is '12h' = ['12h', '24h']","enum":["12h","24h"]}},"description":"Regional data (timezone, home country, language) of an extension/account. The default is Company (Auto-Receptionist) settings"},"operator":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an operator"},"uri":{"type":"string","description":"Link to an operator resource"},"extensionNumber":{"type":"string","description":"Extension number (pin)"},"name":{"type":"string","description":"Operator extension user full name"}},"description":"Site Fax/SMS recipient (operator) reference. Multi-level IVR should be enabled"},"code":{"type":"string","description":"Site code value. Returned only if specified"}}},"status":{"type":"string","description":"Extension current state","enum":["Enabled","Disabled","NotActivated","Unassigned","Frozen"]},"statusInfo":{"type":"object","properties":{"comment":{"type":"string","description":"A free-form user comment, describing the status change reason"},"reason":{"type":"string","description":"Type of suspension","enum":["Voluntarily","Involuntarily","SuspendedVoluntarily","SuspendedVoluntarily2"]}},"description":"Status information (reason, comment). Returned for 'Disabled' status only"},"type":{"type":"string","description":"Extension type. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","enum":["User","VirtualUser","DigitalUser","Department","Announcement","Voicemail","SharedLinesGroup","PagingOnly","ParkLocation","Limited"]},"hidden":{"type":"boolean","description":"Hides extension from showing in company directory. Supported for extensions of User type only. For unassigned extensions the value is set to 'True' by default. For assigned extensions the value is set to 'False' by default"}}}}},"required":true},"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of an extension","format":"int64"},"uri":{"type":"string","description":"Canonical URI of an extension"},"contact":{"type":"object","properties":{"firstName":{"type":"string","description":"For User extension type only. Extension user first name"},"lastName":{"type":"string","description":"For User extension type only. Extension user last name"},"company":{"type":"string","description":"Extension user company name"},"jobTitle":{"type":"string"},"email":{"type":"string","description":"Email of extension user"},"businessPhone":{"type":"string","description":"Extension user contact phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"},"mobilePhone":{"type":"string","description":"Extension user mobile (**non** Toll Free) phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"emailAsLoginName":{"type":"boolean","description":"If 'True' then contact email is enabled as login name for this user. Please note that email should be unique in this case.","default":false},"pronouncedName":{"type":"object","properties":{"type":{"type":"string","description":"Voice name type. 'Default' - default extension name; first name and last name specified in user profile; 'TextToSpeech' - custom text; user name spelled the way it sounds and specified by user; 'Recorded' - custom audio, user name recorded in user's own voice (supported only for extension retrieval)","enum":["Default","TextToSpeech","Recorded"]},"text":{"type":"string","description":"Custom text"},"prompt":{"type":"object","properties":{"id":{"type":"string"},"contentUri":{"type":"string","description":"Link to a prompt resource"},"contentType":{"type":"string","description":"Content media type","enum":["audio/mpeg","audio/wav"]}}}}},"department":{"type":"string","description":"Extension user department, if any"}},"description":"Contact detailed information"},"customFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a custom field"},"value":{"type":"string","description":"Custom field value"},"displayName":{"type":"string"}}}},"extensionNumber":{"type":"string","description":"Number of extension"},"name":{"type":"string","description":"Extension name. For user extension types the value is a combination of the specified first name and last name"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"},"permissions":{"type":"object","properties":{"admin":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Specifies if a permission is enabled or not"}},"description":"Admin permission"},"internationalCalling":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Specifies if a permission is enabled or not"}},"description":"International Calling permission"}},"description":"Extension permissions, corresponding to the Service Web permissions 'Admin' and 'InternationalCalling'"},"profileImage":{"required":["uri"],"type":"object","properties":{"uri":{"type":"string","description":"Link to a profile image. If an image is not uploaded for an extension, only uri is returned"},"etag":{"type":"string","description":"Identifier of an image"},"lastModified":{"type":"string","description":"The datetime when an image was last updated in ISO 8601 format, for example 2016-03-10T18:07:52.534Z","format":"date-time"},"contentType":{"type":"string","description":"The type of an image"},"scales":{"type":"array","description":"List of URIs to profile images in different dimensions","items":{"type":"object","properties":{"uri":{"type":"string"}}}}},"description":"Information on profile image"},"references":{"type":"array","description":"List of non-RC internal identifiers assigned to an extension","items":{"type":"object","properties":{"ref":{"type":"string","description":"Non-RC identifier of an extension"},"type":{"type":"string","description":"Type of external identifier","enum":["PartnerId","CustomerDirectoryId"]}}}},"regionalSettings":{"type":"object","properties":{"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"},"isoCode":{"type":"string","description":"ISO code of a country"},"callingCode":{"type":"string","description":"Calling code of a country"}},"description":"Country information"},"timezone":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a timezone"},"uri":{"type":"string","description":"Canonical URI of a timezone"},"name":{"type":"string","description":"Short name of a timezone"},"description":{"type":"string","description":"Meaningful description of the timezone"},"bias":{"type":"string"}},"description":"Extension timezone information"},"language":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a language"},"uri":{"type":"string","description":"Canonical URI of a language"},"greeting":{"type":"boolean","description":"Indicates whether a language is available as greeting language"},"formattingLocale":{"type":"boolean","description":"Indicates whether a language is available as formatting locale"},"localeCode":{"type":"string","description":"Localization code of a language"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html)"},"name":{"type":"string","description":"Official name of a language"},"ui":{"type":"boolean","description":"Indicates whether a language is available as UI language"}},"description":"User interface language data"},"greetingLanguage":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a greeting language"},"localeCode":{"type":"string","description":"Localization code of a greeting language"},"name":{"type":"string","description":"Official name of a greeting language"}},"description":"Information on language used for telephony greetings"},"formattingLocale":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a formatting language"},"localeCode":{"type":"string","description":"Localization code of a formatting language"},"name":{"type":"string","description":"Official name of a formatting language"}},"description":"Formatting language preferences for numbers, dates and currencies"},"timeFormat":{"type":"string","description":"Time format setting. The default value is '12h' = ['12h', '24h']","enum":["12h","24h"]}},"description":"Regional data (timezone, home country, language) of an extension/account. The default is Company (Auto-Receptionist) settings"},"serviceFeatures":{"type":"array","description":"Extension service features returned in response only when the logged-in user requests his/her own extension info, see also Extension Service Features","items":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Feature status; shows feature availability for an extension"},"featureName":{"type":"string","description":"Feature name","enum":["AccountFederation","Archiver","AutomaticCallRecordingMute","AutomaticInboundCallRecording","AutomaticOutboundCallRecording","BlockedMessageForwarding","Calendar","CallerIdControl","CallForwarding","CallPark","CallParkLocations","CallSupervision","CallSwitch","CallQualitySurvey","Conferencing","ConferencingNumber","ConfigureDelegates","DeveloperPortal","DND","DynamicConference","EmergencyAddressAutoUpdate","EmergencyCalling","EncryptionAtRest","ExternalDirectoryIntegration","Fax","FaxReceiving","FreeSoftPhoneLines","HDVoice","HipaaCompliance","Intercom","InternationalCalling","InternationalSMS","LinkedSoftphoneLines","MMS","MobileVoipEmergencyCalling","OnDemandCallRecording","Pager","PagerReceiving","Paging","PasswordAuth","PromoMessage","Reports","Presence","RCTeams","RingOut","SalesForce","SharedLines","SingleExtensionUI","SiteCodes","SMS","SMSReceiving","SoftPhoneUpdate","TelephonySessions","UserManagement","VideoConferencing","VoipCalling","VoipCallingOnMobile","Voicemail","VoicemailToText","WebPhone"]},"reason":{"type":"string","description":"Reason for limitation of a particular service feature. Returned only if the enabled parameter value is 'False', see Service Feature Limitations and Reasons. When retrieving service features for an extension, the reasons for the limitations, if any, are returned in response"}}}},"setupWizardState":{"type":"string","description":"Specifies extension configuration wizard state (web service setup). The default value is 'NotStarted'","enum":["NotStarted","Incomplete","Completed"]},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a site"},"uri":{"type":"string","description":"Link to a site resource"},"name":{"type":"string","description":"Name of a site"},"code":{"type":"string","description":"Site code value. Returned only if specified"}},"description":"Site data. If multi-site feature is turned on for the account, then ID of a site must be specified. In order to assign a wireless point to the main site (company) site ID should be set to `main-site`"},"status":{"type":"string","description":"Extension current state. If 'Unassigned' is specified, then extensions without ‘extensionNumber’ are returned. If not specified, then all extensions are returned","enum":["Enabled","Disabled","Frozen","NotActivated","Unassigned"]},"statusInfo":{"type":"object","properties":{"comment":{"type":"string","description":"A free-form user comment, describing the status change reason"},"reason":{"type":"string","description":"Type of suspension","enum":["Voluntarily","Involuntarily","SuspendedVoluntarily","SuspendedVoluntarily2"]}},"description":"Status information (reason, comment). Returned for 'Disabled' status only"},"type":{"type":"string","description":"Extension type. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","enum":["User","VirtualUser","DigitalUser","Department","Announcement","Voicemail","SharedLinesGroup","PagingOnly","ParkLocation","Limited"]},"hidden":{"type":"boolean","description":"Hides extension from showing in company directory. Supported for extensions of User type only"}}}}}}},"x-api-group":"extension","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"EditAccounts","x-user-permission":"AddRemoveUsers","x-feature":"EditUsers","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"title":"Create User Extension","request":"POST /restapi/v1.0/account/~/extension\n\n{\n \"contact\": {\n \"firstName\": \"Frank\",\n \"lastName\": \"Davis\",\n \"email\": \"frank.davis@example.com\"\n },\n \"type\": \"User\",\n \"regionalSettings\": {\n \"timeFormat\": \"24h\"\n }\n}\n","response":"{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402533461008/extension/402533467008\",\n \"id\": 402533467008,\n \"extensionNumber\": \"106\",\n \"contact\": {\n \"firstName\": \"Frank\",\n \"lastName\": \"Davis\",\n \"email\": \"frank.davis@example.com\",\n \"emailAsLoginName\": true,\n \"pronouncedName\": {\n \"type\": \"Default\",\n \"text\": \"Frank Davis\"\n }\n },\n \"name\": \"Frank Davis\",\n \"type\": \"User\",\n \"status\": \"NotActivated\",\n \"regionalSettings\": {\n \"timezone\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/58\",\n \"id\": \"58\",\n \"name\": \"US/Pacific\",\n \"description\": \"Pacific Time (US & Canada)\",\n \"bias\": \"-480\"\n },\n \"homeCountry\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"language\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"greetingLanguage\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"formattingLocale\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"timeFormat\": \"24h\"\n },\n \"setupWizardState\": \"NotStarted\",\n \"permissions\": {\n \"admin\": {\n \"enabled\": false\n },\n \"internationalCalling\": {\n \"enabled\": true\n }\n },\n \"profileImage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402533461008/extension/402533467008/profile-image\"\n }\n}\n"},{"title":"Create Call Queue Extension","request":"POST /restapi/v1.0/account/~/extension\n\n{\n \"extensionNumber\": \"107\",\n \"type\": \"Department\",\n \"contact\": {\n \"firstName\": \"Sales\",\n \"email\": \"sales@example.com\"\n }\n}\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/404888975008/extension/405099182008\",\n \"id\": 405099182008,\n \"extensionNumber\": \"107\",\n \"contact\": {\n \"firstName\": \"Sales\",\n \"email\": \"sales@example.com\",\n \"pronouncedName\": {\n \"type\": \"Default\",\n \"text\": \"Sales\"\n }\n },\n \"name\": \"Sales\",\n \"type\": \"Department\",\n \"status\": \"NotActivated\",\n \"regionalSettings\": {\n \"timezone\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/timezone/58\",\n \"id\": \"58\",\n \"name\": \"US/Pacific\",\n \"description\": \"Pacific Time (US & Canada)\",\n \"bias\": \"-480\"\n },\n \"homeCountry\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"language\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"greetingLanguage\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"formattingLocale\": {\n \"id\": \"1033\",\n \"name\": \"English (United States)\",\n \"localeCode\": \"en-US\"\n },\n \"timeFormat\": \"12h\"\n },\n \"setupWizardState\": \"NotStarted\",\n \"permissions\": {\n \"admin\": {\n \"enabled\": false\n },\n \"internationalCalling\": {\n \"enabled\": false\n }\n },\n \"profileImage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/404888975008/extension/405099182008/profile-image\"\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [contact.email] value is invalid."},{"httpCode":"400","errorCode":"EXT-356","message":"[lastName] cannot be specified for non-user extension."}]}},"/restapi/v1.0/account/{accountId}/templates":{"get":{"tags":["Extensions"],"summary":"Get User Template List","description":"Returns the list of user templates for the current account.","operationId":"listUserTemplates","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string","enum":["UserSettings","CallHandling"]}},{"name":"page","in":"query","schema":{"type":"string"}},{"name":"perPage","in":"query","schema":{"type":"string"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records"],"type":"object","properties":{"uri":{"type":"string","description":"Link to user templates resource"},"records":{"type":"array","description":"List of user templates","items":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a template"},"id":{"type":"string","description":"Internal identifier of a template"},"type":{"type":"string","enum":["UserSettings","CallHandling"]},"name":{"type":"string","description":"Name of a template"},"creationTime":{"type":"string","description":"Time of a template creation"},"lastModifiedTime":{"type":"string","description":"Time of the last template modification"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/templates","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyInfo","x-feature":"ReadCompanyInfo","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-http-examples":[{"request":"GET /restapi/v1.0/account/403283863008/templates?type=UserSettings\n\n","response":"HTTP 200 OK\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/403283863008/templates?type=UserSettings&page=1&perPage=100\",\n \"records\": [ \n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/403283863008/templates/697008\",\n \"id\": \"697008\",\n \"name\": \"Template #1\",\n \"type\": \"UserSettings\",\n \"creationTime\": \"2019-04-18T19:00:34Z\",\n \"lastModifiedTime\": \"2019-04-18T19:00:34Z\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 100,\n \"totalElements\": 1,\n \"pageStart\": 0,\n \"pageEnd\": 0\n },\n \"navigation\": {\n \"firstPage\": {\"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/403283863008/templates?type=UserSettings&page=1&perPage=100\"},\n \"lastPage\": {\"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/403283863008/templates?type=UserSettings&page=1&perPage=100\"}\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/templates/{templateId}":{"get":{"tags":["Extensions"],"summary":"Get User Template","description":"Returns the user template by ID.","operationId":"readUserTemplate","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"templateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a template"},"id":{"type":"string","description":"Internal identifier of a template"},"type":{"type":"string","enum":["UserSettings","CallHandling"]},"name":{"type":"string","description":"Name of a template"},"creationTime":{"type":"string","description":"Time of a template creation"},"lastModifiedTime":{"type":"string","description":"Time of the last template modification"}}}}}}},"x-api-group":"account/templates","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyInfo","x-feature":"ReadCompanyInfo","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/403283863008/templates/697008\n\n``` \n### Response\n```HTTP\nHTTP 200 OK \n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403283863008/templates/697008\",\n \"id\" : \"697008\",\n \"name\" : \"Template #1\",\n \"type\" : \"UserSettings\",\n \"creationTime\" : \"2019-04-18T19:00:34Z\",\n \"lastModifiedTime\" : \"2019-04-18T19:00:34Z\"\n}\n","response":""},{"request":"GET /restapi/v1.0/account/401180509008/emergency-address-auto-update/users\n\n``` \n### Response\n```HTTP\nHTTP/1.1 200 OK\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401180509008/emergency-address-auto-update/users?orderBy=%2BfullName&page=1&perPage=100\",\n \"records\": [\n {\n \"id\": \"401180512008\",\n \"fullName\": \"Alice Brown\",\n \"extensionNumber\": \"103\",\n \"featureEnabled\": false,\n \"type\": \"User\",\n \"site\": {\n \"id\": \"main-site\",\n \"name\": \"Main Site\"\n }\n },\n {\n \"id\": \"401180511008\",\n \"fullName\": \"Bob Johnson\",\n \"extensionNumber\": \"102\",\n \"featureEnabled\": false,\n \"type\": \"User\",\n \"site\": {\n \"id\": \"main-site\",\n \"name\": \"Main Site\"\n }\n },\n {\n \"id\": \"401180509008\",\n \"fullName\": \"Charlie Williams\",\n \"extensionNumber\": \"101\",\n \"featureEnabled\": false,\n \"type\": \"User\",\n \"site\": {\n \"id\": \"main-site\",\n \"name\": \"Main Site\"\n }\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 100,\n \"totalElements\": 3,\n \"pageStart\": 0,\n \"pageEnd\": 2\n },\n \"navigation\": {\n \"firstPage\": {\"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401180509008/emergency-address-auto-update/users?orderBy=%2BfullName&page=1&perPage=100\"},\n \"lastPage\": {\"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/401180509008/emergency-address-auto-update/users?orderBy=%2BfullName&page=1&perPage=100\"}\n }\n}\n","response":""},{"request":"POST /restapi/v1.0/account/401180509008/emergency-address-auto-update/users/bulk-assign\n\n {\n \"enabledUserIds\": \n [\n \"401180509008\",\n \"401180511008\"\n ],\n \"disabledUserIds\":\n [\"401180512008\"\n ]\n}\n","response":"HTTP/1.1 204 No Content\n\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/extension/{extensionId}/video-configuration":{"get":{"tags":["Video Configuration"],"summary":"Get User Video Configuration","description":"Returns information about video configuration of the current user.","operationId":"readUserVideoConfiguration","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the current session account","required":true,"schema":{"type":"string","default":"~"}}],"responses":{"200":{"description":"User Video Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"Video provider of the user","enum":["RCMeetings","RCVideo","None"]},"userLicenseType":{"type":"string","description":"Specifies if the user is 'paid' (has meeting license) or 'free' (w/o meeting license)","enum":["Paid","Free"]}}}}}}},"x-api-group":"account/extension/video-configuration","x-app-permission":"Meetings","x-user-permission":"Meetings","x-throttling-group":"Light","x-docs-level":"Public","x-metered-api":true,"x-metering-group":"System","x-availability":"High","x-error-codes":null},"put":{"tags":["Video Configuration"],"summary":"Update User Video Configuration","description":"Allows to update user video settings, for example video provider.","operationId":"updateUserVideoConfiguration","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the current session account","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"Video provider of the user","enum":["RCMeetings","RCVideo","None"]},"userLicenseType":{"type":"string","description":"Specifies if the user is 'paid' (has meeting license) or 'free' (w/o meeting license)","enum":["Paid","Free"]}}}}},"required":true},"responses":{"200":{"description":"Video Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"Video provider of the user","enum":["RCMeetings","RCVideo","None"]},"userLicenseType":{"type":"string","description":"Specifies if the user is 'paid' (has meeting license) or 'free' (w/o meeting license)","enum":["Paid","Free"]}}}}}}},"x-api-group":"account/extension/video-configuration","x-app-permission":"Meetings","x-feature":"Meetings, EditMeetingsProvider","x-throttling-group":"Light","x-docs-level":"Public","x-metered-api":true,"x-metering-group":"System","x-availability":"High","x-codegen-request-body-name":"body","x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [provider] value is invalid."},{"httpCode":"403","errorCode":"BIL-101","message":"Feature [EditMeetingsProvider] is not available for current service plan"},{"httpCode":"403","errorCode":"BIL-103","message":"Feature [Meetings] is not available for current account"}]}},"/restapi/v1.0/account/{accountId}/call-queues":{"get":{"tags":["Call Queues"],"summary":"Get Call Queue List","description":"Returns call queue group list.","operationId":"listCallQueues","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}},{"name":"memberExtensionId","in":"query","description":"Internal identifier of an extension that is a member of every group within the result","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records","uri"],"type":"object","properties":{"uri":{"type":"string","description":"Link to a call queues resource"},"records":{"type":"array","description":"List of call queues","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call queue"},"name":{"type":"string","description":"Name of a call queue"},"extensionNumber":{"type":"string","description":"Extension number of a call queue"},"editableMemberStatus":{"type":"boolean","description":"Flag allow members to change their queue status"}},"description":"Call queue information"}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/call-queues","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-throttling-group":"Medium","x-docs-level":"Public","x-service-level":1000,"x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/call-queues?perPage=20\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/230919004/call-queues?page=1&perPage=20\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/26456001/extension/41004\",\n \"id\": \"41004\",\n \"extensionNumber\": \"102\",\n \"name\": \"Support\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/26456001/extension/41023\",\n \"id\": \"41023\",\n \"extensionNumber\": \"106\",\n \"name\": \"Sales\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 20,\n \"totalElements\": 2\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/230919004/call-queues?page=1&perPage=20\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/230919004/call-queues?page=1&perPage=20\"\n }\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/call-queues/{groupId}":{"get":{"tags":["Call Queues"],"summary":"Get Call Queue","description":"Returns basic information on a call queue group extension.","operationId":"readCallQueueInfo","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Call Queue Info","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call queue"},"name":{"type":"string","description":"Call queue name"},"extensionNumber":{"type":"string","description":"Call queue extension number"},"status":{"type":"string","description":"Call queue status","enum":["Enabled","Disabled","NotActivated"]},"serviceLevelSettings":{"type":"object","properties":{"slaGoal":{"type":"integer","description":"Target percentage of calls that must be answered by agents within the service level time threshold"},"slaThresholdSeconds":{"type":"integer","description":"The period of time in seconds that is considered to be an acceptable service level"},"includeAbandonedCalls":{"type":"boolean","description":"Includes abandoned calls (when callers hang up prior to being served by an agent) into service-level calculation"},"abandonedThresholdSeconds":{"type":"integer","description":"Abandoned calls that are shorter than the defined period of time in seconds will not be included into the calculation of Service Level"}},"description":"Call queue service level settings"},"editableMemberStatus":{"type":"boolean","description":"Allows members to change their queue status"}}}}}}},"x-api-group":"account/call-queues","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-throttling-group":"Light","x-docs-level":"Public","x-feature":"ReadExtensions","x-http-examples":[{"request":"GET /restapi/v1.0/account/401154466044/call-queues/401154469044\n\n","response":"HTTP 200 OK\n\n{\n \"id\" : \"401154469044\",\n \"name\" : \"John Smith\",\n \"extensionNumber\" : \"103\",\n \"status\" : \"Enabled\"\n\n}\n\n"}],"x-error-codes":null},"put":{"tags":["Call Queues"],"summary":"Update Call Queue","description":"Updates information on a call queue group extension.","operationId":"updateCallQueueInfo","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"serviceLevelSettings":{"type":"object","properties":{"slaGoal":{"type":"integer","description":"Target percentage of calls that must be answered by agents within the service level time threshold"},"slaThresholdSeconds":{"type":"integer","description":"The period of time in seconds that is considered to be an acceptable service level"},"includeAbandonedCalls":{"type":"boolean","description":"Includes abandoned calls (when callers hang up prior to being served by an agent) into service-level calculation"},"abandonedThresholdSeconds":{"type":"integer","description":"Abandoned calls that are shorter than the defined period of time in seconds will not be included into the calculation of Service Level"}},"description":"Call queue service level settings"},"editableMemberStatus":{"type":"boolean","description":"Allows members to change their queue status"}}}}},"required":true},"responses":{"200":{"description":"Updated Call Queue Info","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call queue"},"name":{"type":"string","description":"Call queue name"},"extensionNumber":{"type":"string","description":"Call queue extension number"},"status":{"type":"string","description":"Call queue status","enum":["Enabled","Disabled","NotActivated"]},"serviceLevelSettings":{"type":"object","properties":{"slaGoal":{"type":"integer","description":"Target percentage of calls that must be answered by agents within the service level time threshold"},"slaThresholdSeconds":{"type":"integer","description":"The period of time in seconds that is considered to be an acceptable service level"},"includeAbandonedCalls":{"type":"boolean","description":"Includes abandoned calls (when callers hang up prior to being served by an agent) into service-level calculation"},"abandonedThresholdSeconds":{"type":"integer","description":"Abandoned calls that are shorter than the defined period of time in seconds will not be included into the calculation of Service Level"}},"description":"Call queue service level settings"},"editableMemberStatus":{"type":"boolean","description":"Allows members to change their queue status"}}}}}}},"x-api-group":"account/call-queues","x-app-permission":"EditExtensions","x-user-permission":"EditUserInfo","x-throttling-group":"Light","x-docs-level":"Public","x-feature":"EditExtensionInfo","x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT /restapi/v1.0/account/401154466044/call-queues/401154469044\n\n{\n \"serviceLevelSettings\": {\n \"slaGoal\": 80,\n \"slaThresholdSeconds\": 60,\n \"includeAbandonedCalls\": true,\n \"abandonedThresholdSeconds\": 60\n }\n}\n\n","response":"HTTP 200 OK\n\n{\n \"id\" : \"401154469044\",\n \"name\" : \"John Smith\",\n \"extensionNumber\" : \"103\",\n \"status\" : \"Enabled\",\n \"serviceLevelSettings\": {\n \"slaGoal\": 80,\n \"slaThresholdSeconds\": 60,\n \"includeAbandonedCalls\": true,\n \"abandonedThresholdSeconds\": 60\n },\n \"editableMemberStatus\": true\n}\n\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/call-queues/{groupId}/members":{"get":{"tags":["Call Queues"],"summary":"Get Call Queue Members","description":"Returns call queue group members.","operationId":"listCallQueueMembers","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are allowed","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records","uri"],"type":"object","properties":{"uri":{"type":"string","description":"Link to a call queue members resource"},"records":{"type":"array","description":"List of call queue members","items":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a call queue member"},"id":{"type":"integer","description":"Internal identifier of a call queue member"},"extensionNumber":{"type":"string","description":"Extension number of a call queue member"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/call-queues/members","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-throttling-group":"Light","x-docs-level":"Public","x-service-level":1000,"x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/call-queues/754234008/members\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/754224008/call-queues/754234008/members?page=1&perPage=100\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/754224008/extension/754227008\",\n \"id\": 754227008,\n \"extensionNumber\": \"103\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/754224008/extension/754226008\",\n \"id\": 754226008,\n \"extensionNumber\": \"102\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 100,\n \"totalElements\": 2,\n \"pageStart\": 0,\n \"pageEnd\": 1\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/754224008/call-queues/754234008/members?page=1&perPage=100\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/754224008/call-queues/754234008/members?page=1&perPage=100\"\n }\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/call-queues/{groupId}/bulk-assign":{"post":{"tags":["Call Queues"],"summary":"Assign Multiple Call Queue Members","description":"Updates a call queue group.","operationId":"assignMultipleCallQueueMembers","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Changes for the given group","content":{"application/json":{"schema":{"type":"object","properties":{"addedExtensionIds":{"type":"array","items":{"type":"string"}},"removedExtensionIds":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"204":{"description":"Success","content":{}},"400":{"description":"Extension of type [${extensionType}] cannot be included into call queue","content":{}}},"x-api-group":"account/call-queues/call-queues","x-app-permission":"EditExtensions","x-user-permission":"Groups","x-feature":"EditGroups","x-throttling-group":"Heavy","x-docs-level":"Public","x-service-level":1000,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/call-queues/41004/bulk-assign\n\n{\n \"addedExtensionIds\": [\n \"289481004\",\n \"289485004\"\n ],\n \"removedExtensionIds\": [\n \"289483004\",\n \"289487004\"\n ]\n}\n","response":"HTTP 204 No Content\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/extension/{extensionId}/call-queues":{"put":{"tags":["Call Queues"],"summary":"Update User Call Queues","description":"Updates the list of call queues where the user is an agent. This is a full update request, which means that if any queue where the user is an agent is not mentioned in request, then the user is automatically removed from this queue.","operationId":"updateUserCallQueues","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","description":"List of the queues where the extension is an agent","items":{"type":"object","properties":{"id":{"type":"string","description":"Call queue extension identifier"},"name":{"type":"string","description":"Call queue name (read-only)"}}}}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","description":"List of the queues where the extension is an agent","items":{"type":"object","properties":{"id":{"type":"string","description":"Call queue extension identifier"},"name":{"type":"string","description":"Call queue name (read-only)"}}}}}}}}}},"x-service-name":"pas","x-service-interface":"rest","x-service-version":"v1","x-auth-required":true,"x-api-group":"extension/call-queues","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-user-permission":"JoinLeaveCallQueue","x-feature":"JoinLeaveCallQueue","x-app-permission":"Accounts","x-docs-level":"Public","x-internal-api":false,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT /restapi/v1.0/account/~/extension/~/call-queues\n\n{\n \"records\": [ {\n \"id\": \"12345678\"\n }, {\n \"id\": \"87654321\" \n } ]\n}\n","response":"HTTP 200 OK\n\n\n{\n \"records\": [ {\n \"id\": \"12345678\",\n \"name\": \"Bakery\"\n }, {\n \"id\": \"87654321\",\n \"name\": \"Cafe\"\n } ]\n}\n\n\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/department/{departmentId}/members":{"get":{"tags":["Call Queues"],"summary":"Get Department Member List","description":"Viewing user account info (including name, business name, address and phone number/account number). Please note, that this method is deprecated and legacy 'Department' entity corresponds to 'Call Queue' in modern RingCentral product terminology. In order to retrieve call queue members please use the following method `GET/restapi/v1.0/account/{accountId}/call-queues/{groupId}/members`.","operationId":"listDepartmentMembers","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"departmentId","in":"path","description":"Internal identifier of a Department extension (same as extensionId but only the ID of a department extension is valid). Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","description":"Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","properties":{"uri":{"type":"string","description":"Link to the list of department members"},"records":{"type":"array","description":"List of department members extensions","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"deprecated":true,"x-api-group":"account/department/members","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-http-examples":[{"request":"GET /restapi/v1.0/account/~/department/754234008/members\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/account/754224008/department/754234008/members?page=1&perPage=100\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/account/754224008/extension/754227008\",\n \"id\": 754227008,\n \"extensionNumber\": \"103\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/account/754224008/extension/754226008\",\n \"id\": 754226008,\n \"extensionNumber\": \"102\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 100,\n \"totalElements\": 2,\n \"pageStart\": 0,\n \"pageEnd\": 1\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/account/754224008/department/754234008/members?page=1&perPage=100\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/account/754224008/department/754234008/members?page=1&perPage=100\"\n }\n }\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [page] value is invalid."},{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"},{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [departmentId] is not found"}]}},"/restapi/v1.0/account/{accountId}/department/bulk-assign":{"post":{"tags":["Call Queues"],"summary":"Assign Multiple Department Members","description":"Adds and/or removes multiple call queue members. Please note, that this method is deprecated and legacy 'Department' entity corresponds to 'Call Queue' in modern RingCentral product terminology. In order to assign multiple call queue members please use the following method `POST/restapi/v1.0/account/{accountId}/call-queues/{groupId}/bulk-assign`.","operationId":"assignMultipleDepartmentMembers","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","properties":{"items":{"type":"array","items":{"type":"object","properties":{"departmentId":{"type":"string"},"addedExtensionIds":{"type":"array","items":{"type":"string"}},"removedExtensionIds":{"type":"array","items":{"type":"string"}}}}}}}}},"required":false},"responses":{"default":{"description":"successful operation","content":{}}},"deprecated":true,"x-api-group":"account/department","x-throttling-group":"Heavy","x-metered-api":true,"x-metering-group":"System","x-app-permission":"EditAccounts","x-user-permission":"UserGroups","x-feature":"EditUserGroups","x-docs-level":"Public","x-service-level":1000,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/289481004/department/bulk-assign\n\n{\n \"items\": [\n {\n \"departmentId\": \"289484004\",\n \"addedExtensionIds\": [\n \"289481004\",\n \"289485004\"\n ],\n \"removedExtensionIds\": [\n \"289483004\",\n \"289487004\"\n ]\n }\n ]\n}\n","response":"HTTP 204 No Content\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/users":{"get":{"tags":["Paging Only Groups"],"summary":"Get Paging Group Users","description":"Returns the list of users allowed to page this group.","operationId":"listPagingGroupUsers","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string"}},{"name":"pagingOnlyGroupId","in":"path","description":"Internal identifier of a paging group","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to the list of users allowed to page the Paging Only group"},"records":{"type":"array","description":"List of users allowed to page the Paging Only group","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a paging group user extension"},"uri":{"type":"string","description":"Link to a paging group user extension"},"extensionNumber":{"type":"string","description":"Extension number of a paging group user"},"name":{"type":"string","description":"Name of a paging group user"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/paging-only-groups/users","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadUserInfo","x-feature":"ReadExtensionInfo","x-docs-level":"Public","x-service-level":1000,"x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/paging-only-groups/402361066008/users\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402361054008/paging-only-group/402361066008/users?page=1&perPage=100\",\n \"records\": [\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402361054008/extension/402361054008\",\n \"id\": \"402361054008\",\n \"extensionNumber\": \"101\",\n \"name\": \"Alice Smith\"\n },\n {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402361054008/extension/402361056008\",\n \"id\": \"402361056008\",\n \"extensionNumber\": \"102\",\n \"name\": \"Bob Johnson\"\n }\n ],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 100,\n \"totalElements\": 2,\n \"pageStart\": 0,\n \"pageEnd\": 1\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402361054008/paging-only-group/402361066008/users?page=1&perPage=100\"\n },\n \"lastPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402361054008/paging-only-group/402361066008/users?page=1&perPage=100\"\n }\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/devices":{"get":{"tags":["Paging Only Groups"],"summary":"Get Paging Group Devices","description":"Returns the list of paging devices assigned to this group.","operationId":"listPagingGroupDevices","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string"}},{"name":"pagingOnlyGroupId","in":"path","description":"Internal identifier of a paging group","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are accepted","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to the list of devices assigned to the paging only group"},"records":{"type":"array","description":"List of paging devices assigned to this group","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a paging device"},"uri":{"type":"string","description":"Link to a paging device resource"},"name":{"type":"string","description":"Name of a paging device"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/paging-only-groups/devices","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyDevices","x-feature":"ReadAccountDevices","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-http-examples":[{"request":"GET /restapi/v1.0/account/~/paging-only-groups/402439693008/devices?perPage=1\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402439675008/paging-only-group/402439693008/devices?page=1&perPage=1\",\n \"records\" : [ {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402439675008/device/400342469008\",\n \"id\" : \"400342469008\",\n \"name\" : \"My Paging Device #1\"\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 1,\n \"perPage\" : 1,\n \"totalElements\" : 1,\n \"pageStart\" : 0,\n \"pageEnd\" : 0\n },\n \"navigation\" : {\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402439675008/paging-only-group/402439693008/devices?page=1&perPage=1\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402439675008/paging-only-group/402439693008/devices?page=1&perPage=1\"\n }\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/bulk-assign":{"post":{"tags":["Paging Only Groups"],"summary":"Assign Paging Group Users and Devices","description":"Adds and/or removes paging group users and devices.","operationId":"assignMultiplePagingGroupUsersDevices","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string"}},{"name":"pagingOnlyGroupId","in":"path","description":"Internal identifier of a paging group","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"addedUserIds":{"type":"array","description":"List of users that will be allowed to page a group specified","items":{"type":"string"}},"removedUserIds":{"type":"array","description":"List of users that will be unallowed to page a group specified","items":{"type":"string"}},"addedDeviceIds":{"type":"array","description":"List of account devices that will be assigned to a paging group specified","items":{"type":"string"}},"removedDeviceIds":{"type":"array","description":"List of account devices that will be unassigned from a paging group specified","items":{"type":"string"}}}}}},"required":false},"responses":{"default":{"description":"Success","content":{}}},"x-api-group":"account/paging-only-groups/bulk-assign","x-throttling-group":"Heavy","x-metered-api":true,"x-metering-group":"System","x-app-permission":"EditAccounts","x-user-permission":"Groups","x-feature":"EditGroups","x-docs-level":"Public","x-service-level":1000,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/paging-only-groups/402439693008/bulk-assign\n\n{\n \"addedUserIds\": [\n \"402439675008\"\n ],\n \"removedUserIds\": [\n \"402439679008\"\n ],\n \"addedDeviceIds\": [\n \"400342469008\",\n \"400342465008\"\n ],\n \"removedDeviceIds\": [\n \"400342469778\"\n ]\n}\n","response":"HTTP 204 No Content\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/call-monitoring-groups":{"get":{"tags":["Call Monitoring Groups"],"summary":"Get Call Monitoring Groups List","description":"Returns call monitoring groups that can be filtered by some extension.","operationId":"listCallMonitoringGroups","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are allowed","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}},{"name":"memberExtensionId","in":"query","description":"Internal identifier of an extension that is a member of every group within the result","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records","uri"],"type":"object","properties":{"uri":{"type":"string","description":"Link to a call monitoring groups resource"},"records":{"type":"array","description":"List of call monitoring group members","items":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a call monitoring group resource"},"id":{"type":"string","description":"Internal identifier of a group"},"name":{"type":"string","description":"Name of a group"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/call-monitoring-groups","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-throttling-group":"Medium","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/403221597008/call-monitoring-groups?perPage=3\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403221597008/call-monitoring-groups?page=1&perPage=3\",\n \"records\" : [ {\n \"id\" : \"5790008\",\n \"name\" : \"Group #1\"\n }, {\n \"id\" : \"5791008\",\n \"name\" : \"Group #2\"\n }, {\n \"id\" : \"5792008\",\n \"name\" : \"Group #3\"\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 1,\n \"perPage\" : 3,\n \"totalElements\" : 3,\n \"pageStart\" : 0,\n \"pageEnd\" : 2\n },\n \"navigation\" : {\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403221597008/call-monitoring-groups?page=1&perPage=3\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403221597008/call-monitoring-groups?page=1&perPage=3\"\n }\n }\n}\n"}],"x-error-codes":null},"post":{"tags":["Call Monitoring Groups"],"summary":"Create Call Monitoring Group","description":"Creates a new call monitoring group.","operationId":"createCallMonitoringGroup","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Parameters of a call monitoring group that will be created","content":{"application/json":{"schema":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Name of a group"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a call monitoring group resource"},"id":{"type":"string","description":"Internal identifier of a group"},"name":{"type":"string","description":"Name of a group"}}}}}}},"x-api-group":"account/call-monitoring-groups","x-app-permission":"EditExtensions","x-user-permission":"Groups","x-feature":"EditGroups","x-throttling-group":"Medium","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/403510447008/call-monitoring-groups\n\n{\n \"name\": \"Group #1\"\n}\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/call-monitoring-groups/5894008\",\n \"id\" : \"5894008\",\n \"name\" : \"Group #1\"\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}":{"put":{"tags":["Call Monitoring Groups"],"summary":"Updates Call Monitoring Group","description":"Updates call monitoring group name by ID.","operationId":"updateCallMonitoringGroup","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","description":"Internal identifier of a call monitoring group","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Parameters of a call monitoring group that will be updated","content":{"application/json":{"schema":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Name of a group"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a call monitoring group resource"},"id":{"type":"string","description":"Internal identifier of a group"},"name":{"type":"string","description":"Name of a group"}}}}}},"400":{"description":"Value for group name is unacceptable.","content":{}},"403":{"description":"User has no permissions to create groups.","content":{}},"404":{"description":"Group with the given identifier doesn't belong to the account.","content":{}}},"x-api-group":"account/call-monitoring-groups","x-app-permission":"EditExtensions","x-user-permission":"Groups","x-feature":"EditGroups","x-throttling-group":"Medium","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT /restapi/v1.0/account/403510447008/call-monitoring-groups/5893008\n\n{\n \"name\": \"Group #2\"\n \n}\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/call-monitoring-groups/5893008\",\n \"id\" : \"5893008\",\n \"name\" : \"Group #2\"\n}\n"}],"x-error-codes":null},"delete":{"tags":["Call Monitoring Groups"],"summary":"Delete Call Monitoring Group","description":"Remove infromation about the given call monitoring group.","operationId":"deleteCallMonitoringGroup","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}},"404":{"description":"Group with the given identifier doesn't belong to the account.","content":{}}},"x-api-group":"account/call-monitoring-groups","x-app-permission":"EditExtensions","x-user-permission":"Groups","x-feature":"EditGroups","x-throttling-group":"Medium","x-docs-level":"Public","x-service-level":1000,"x-access-level":"Advanced","x-error-codes":null}},"/restapi/v1.0/account/{accountId}/extension/{extensionId}/features":{"get":{"tags":["Features"],"summary":"Get User Features","description":"Returns the list of supported features and information on their availability for the current extension. Specific feature(s) might be checked by providing `featureId` query param. Multiple values supported, format: `?featureId=Feature1&featureId=Feature2`. To get only available features in order to decrease response size, `availableOnly=true` query param might be specified.\nIn case the feature is available for the current user, `\"available\": true` is returned in the response for the record with corresponding feature `id`. Otherwise, additional attribute `reason` is returned with the appropriate code:\n* `ServicePlanLimitation` - the feature not included to the account service plan;\n* `AccountLimitation` - the feature is turned off for the account;\n* `ExtensionTypeLimitation` - the feature is not applicable for the extension type;\n* `ExtensionLimitation` - the feature is not available for the extension, e.g., additional license required;\n* `InsufficientPermissions` - required permission not granted to the current user (not the one, who is specified in the URL, but the one who's access token is used);\n* `ConfigurationLimitation` - the feature is turned off for the extension, e.g., by the account administrator.\n\nAlso, some feature may have some additional parameters, e.g., limits, which are returned in `params` attribute as a name-value collection:\n\n {\n \"id\": \"HUD\",\n \"available\": true,\n \"params\": [\n {\n \"name\": \"limitMax\",\n \"value\": \"100\"\n }\n ]\n }","operationId":"readUserFeatures","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"extensionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"availableOnly","in":"query","schema":{"type":"boolean","default":false}},{"name":"featureId","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Feature List","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a feature"},"available":{"type":"boolean","description":"Specifies if the feature is available for the current user according to services enabled for the account, type, entitlements and permissions of the extension. If the authorized user gets features of the other extension, only features that can be delegated are returned (such as configuration by administrators)."},"params":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Parameter name"},"value":{"type":"string","description":"Parameter value"}}}},"reason":{"type":"object","properties":{"code":{"type":"string","description":"Reason code","enum":["ServicePlanLimitation","AccountLimitation","ExtensionTypeLimitation","ExtensionLimitation","InsufficientPermissions","ConfigurationLimitation"]},"message":{"type":"string","description":"Reason description"},"permission":{"type":"string"}},"description":"Reason for the feature unavailability. Returned only if `available` is set to 'false'"}}}}}}}}}},"x-throttling-group":"Medium","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-api-group":"features","x-availability":"High","x-docs-level":"Public","x-http-examples":[{"request":"GET /restapi/v1.0/account/402638136004/extension/402638136004/features?availableOnly=true\n","response":"HTTP 200 OK\n\n{\n \"records\" : [ {\n \"id\" : \"CallScreening\",\n \"available\" : true\n }, {\n \"id\" : \"EditCallScreening\",\n \"available\" : true\n }, {\n \"id\" : \"SimultaneousRingingMode\",\n \"available\" : true\n }, {\n \"id\" : \"EditSimultaneousRingingMode\",\n \"available\" : true\n }, {\n \"id\" : \"RingGroups\",\n \"available\" : true\n }, {\n \"id\" : \"EditRingGroups\",\n \"available\" : true\n }, {\n \"id\" : \"ExternalForwarding\",\n \"available\" : true\n }, {\n \"id\" : \"EditExternalForwarding\",\n \"available\" : true\n }, {\n \"id\" : \"CallFlip\",\n \"available\" : true\n }, {\n \"id\" : \"EditCallFlip\",\n \"available\" : true\n }, {\n \"id\" : \"InboundCnam\",\n \"available\" : true\n }, {\n \"id\" : \"OnDemandCallRecording\",\n \"available\" : true\n }, {\n \"id\" : \"EditOnDemandCallRecording\",\n \"available\" : true\n }, {\n \"id\" : \"RingOut\",\n \"available\" : true\n }, {\n \"id\" : \"RingMe\",\n \"available\" : true\n }, {\n \"id\" : \"EditRingMe\",\n \"available\" : true\n }, {\n \"id\" : \"FaxSending\",\n \"available\" : true\n }, {\n \"id\" : \"EditFaxSettings\",\n \"available\" : true\n }, {\n \"id\" : \"FaxReceiving\",\n \"available\" : true\n }, {\n \"id\" : \"HardPhones\",\n \"available\" : true\n }, {\n \"id\" : \"EditHardPhones\",\n \"available\" : true\n }, {\n \"id\" : \"SoftPhones\",\n \"available\" : true\n }, {\n \"id\" : \"EditSoftPhones\",\n \"available\" : true\n }, {\n \"id\" : \"RCPhoneDesktop\",\n \"available\" : true\n }, {\n \"id\" : \"RCPhoneMobile\",\n \"available\" : true\n }, {\n \"id\" : \"RCAppDesktop\",\n \"available\" : true\n }, {\n \"id\" : \"RCAppMobile\",\n \"available\" : true\n }, {\n \"id\" : \"Glip\",\n \"available\" : true,\n \"params\" : [ {\n \"name\" : \"tabPosition\",\n \"value\" : \"First\"\n } ]\n }, {\n \"id\" : \"RCIntegrationApps\",\n \"available\" : true\n }, {\n \"id\" : \"ThirdPartyApps\",\n \"available\" : true\n }, {\n \"id\" : \"EditServiceStatusNotifications\",\n \"available\" : true\n }, {\n \"id\" : \"Calendar\",\n \"available\" : true\n }, {\n \"id\" : \"CallForwarding\",\n \"available\" : true\n }, {\n \"id\" : \"CallPark\",\n \"available\" : true\n }, {\n \"id\" : \"DND\",\n \"available\" : true\n }, {\n \"id\" : \"ExternalAuth\",\n \"available\" : true\n }, {\n \"id\" : \"HDVoice\",\n \"available\" : true\n }, {\n \"id\" : \"UserManagement\",\n \"available\" : true\n }, {\n \"id\" : \"Voicemail\",\n \"available\" : true\n }, {\n \"id\" : \"VoipCalling\",\n \"available\" : true\n }, {\n \"id\" : \"WebPhone\",\n \"available\" : true\n }, {\n \"id\" : \"SoftPhoneUpdate\",\n \"available\" : true\n }, {\n \"id\" : \"PromoMessage\",\n \"available\" : true\n }, {\n \"id\" : \"VoipCallingOnMobile\",\n \"available\" : true\n }, {\n \"id\" : \"AccountAdministration\",\n \"available\" : true\n }, {\n \"id\" : \"EditServiceWebAppearance\",\n \"available\" : true\n }, {\n \"id\" : \"EditCompanyInfo\",\n \"available\" : true\n }, {\n \"id\" : \"ReadCompanyInfo\",\n \"available\" : true\n }, {\n \"id\" : \"AccountValidation\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionGrants\",\n \"available\" : true\n }, {\n \"id\" : \"EditAssignedRoles\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAssignedRoles\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAccountPhoneNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"EditDeviceOrders\",\n \"available\" : true\n }, {\n \"id\" : \"EditInternationalDestinations\",\n \"available\" : true\n }, {\n \"id\" : \"EditPaymentMethod\",\n \"available\" : true\n }, {\n \"id\" : \"ReadPaymentMethod\",\n \"available\" : true\n }, {\n \"id\" : \"EditServicePlan\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionGrants\",\n \"available\" : true\n }, {\n \"id\" : \"ReadServicePlan\",\n \"available\" : true\n }, {\n \"id\" : \"EditAccountDevices\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAccountDevices\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionDevices\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionDevices\",\n \"available\" : true\n }, {\n \"id\" : \"EditAccountPhoneNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"AddRemovePhoneNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionPhoneNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"EditDirectoryAssistance\",\n \"available\" : true\n }, {\n \"id\" : \"EditGroups\",\n \"available\" : true\n }, {\n \"id\" : \"EditUsers\",\n \"available\" : true\n }, {\n \"id\" : \"EditRoles\",\n \"available\" : true\n }, {\n \"id\" : \"ReadRoles\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensions\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionInfo\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionInfo\",\n \"available\" : true\n }, {\n \"id\" : \"EditUserHours\",\n \"available\" : true\n }, {\n \"id\" : \"EditCredentials\",\n \"available\" : true\n }, {\n \"id\" : \"EditMessageAndNotificationSettings\",\n \"available\" : true\n }, {\n \"id\" : \"ReadMessageAndNotificationSettings\",\n \"available\" : true\n }, {\n \"id\" : \"ReadOutboundCallerId\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionPhonesAndNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"EditPersonalContacts\",\n \"available\" : true\n }, {\n \"id\" : \"ReadPersonalContacts\",\n \"available\" : true\n }, {\n \"id\" : \"DomesticCalling\",\n \"available\" : true\n }, {\n \"id\" : \"InternalCalling\",\n \"available\" : true\n }, {\n \"id\" : \"EditAutoReceptionist\",\n \"available\" : true\n }, {\n \"id\" : \"EditAccountAnsweringRules\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionPhoneNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"EditOutboundCallerId\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAccountAnsweringRules\",\n \"available\" : true\n }, {\n \"id\" : \"EditAccountGreetings\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAccountGreetings\",\n \"available\" : true\n }, {\n \"id\" : \"EditCallScreeningAndGreetings\",\n \"available\" : true\n }, {\n \"id\" : \"ReadCallScreeningAndGreetings\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionAnsweringRules\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionAnsweringRules\",\n \"available\" : true\n }, {\n \"id\" : \"EditIncomingCallInfo\",\n \"available\" : true\n }, {\n \"id\" : \"CallTransfer\",\n \"available\" : true\n }, {\n \"id\" : \"Hold\",\n \"available\" : true\n }, {\n \"id\" : \"EditBlockedNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"ReadBlockedNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAccountCallRecordings\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionCallRecordings\",\n \"available\" : true\n }, {\n \"id\" : \"ReadAccountCallLog\",\n \"available\" : true\n }, {\n \"id\" : \"EditAccountCallLogDelivery\",\n \"available\" : true\n }, {\n \"id\" : \"EditAccountCallLog\",\n \"available\" : true\n }, {\n \"id\" : \"ReadExtensionCallLog\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionCallLog\",\n \"available\" : true\n }, {\n \"id\" : \"EditExtensionCallLogDelivery\",\n \"available\" : true\n }, {\n \"id\" : \"EditPresenceStatus\",\n \"available\" : true\n }, {\n \"id\" : \"ReadPresenceStatus\",\n \"available\" : true\n }, {\n \"id\" : \"ReadMessages\",\n \"available\" : true\n }, {\n \"id\" : \"EditMessages\",\n \"available\" : true\n }, {\n \"id\" : \"ReadFaxSettings\",\n \"available\" : true\n }, {\n \"id\" : \"BotInstall\",\n \"available\" : true\n }, {\n \"id\" : \"BotUninstall\",\n \"available\" : true\n }, {\n \"id\" : \"ServiceWebAccess\",\n \"available\" : true\n }, {\n \"id\" : \"ReassignPhoneNumbers\",\n \"available\" : true\n }, {\n \"id\" : \"JoinLeaveCallQueue\",\n \"available\" : true\n }, {\n \"id\" : \"EditCallQueueMembers\",\n \"available\" : true\n }, {\n \"id\" : \"AddRemoveDevices\",\n \"available\" : true\n } ]\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [featureId] value is invalid."}]}},"/restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}/members":{"get":{"tags":["Call Monitoring Groups"],"summary":"Get Call Monitoring Group Member List","description":"Returns call monitoring group members.","operationId":"listCallMonitoringGroupMembers","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Indicates the page number to retrieve. Only positive number values are allowed","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Indicates the page size (number of items)","schema":{"type":"integer","default":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records","uri"],"type":"object","properties":{"uri":{"type":"string","description":"Link to a call monitoring group members resource"},"records":{"type":"array","description":"List of a call monitoring group members","items":{"type":"object","properties":{"uri":{"type":"string","description":"Link to a call monitoring group member"},"id":{"type":"string","description":"Internal identifier of a call monitoring group member"},"extensionNumber":{"type":"string","description":"Extension number of a call monitoring group member"},"permissions":{"type":"array","items":{"type":"string","description":"Call monitoring permission; mltiple values are allowed: * `Monitoring` - User can monitor a group * `Monitored` - User can be monitored\n","enum":["Monitoring","Monitored"]}}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"account/call-monitoring-groups/members","x-app-permission":"ReadAccounts","x-user-permission":"ReadExtensions","x-feature":"ReadExtensions","x-throttling-group":"Medium","x-docs-level":"Public","x-availability":"High","x-service-level":1000,"x-http-examples":[{"request":"GET /restapi/v1.0/account/403510447008/call-monitoring-groups/5893008/members?perPage=4\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/call-monitoring-groups/5893008/members?page=1&perPage=4\",\n \"records\" : [ {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/extension/403510447008\",\n \"id\" : \"403510447008\",\n \"extensionNumber\" : \"101\",\n \"permissions\" : [ \"Monitoring\", \"Monitored\" ]\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/extension/403510449008\",\n \"id\" : \"403510449008\",\n \"extensionNumber\" : \"102\",\n \"permissions\" : [ \"Monitored\" ]\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/extension/403510469008\",\n \"id\" : \"403510469008\",\n \"extensionNumber\" : \"109\",\n \"permissions\" : [ \"Monitoring\" ]\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/extension/403510471008\",\n \"id\" : \"403510471008\",\n \"extensionNumber\" : \"111\",\n \"permissions\" : [ \"Monitoring\" ]\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 2,\n \"perPage\" : 4,\n \"totalElements\" : 5,\n \"pageStart\" : 0,\n \"pageEnd\" : 3\n },\n \"navigation\" : {\n \"nextPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/call-monitoring-groups/5893008/members?page=2&perPage=4\"\n },\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/call-monitoring-groups/5893008/members?page=1&perPage=4\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/403510447008/call-monitoring-groups/5893008/members?page=2&perPage=4\"\n }\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}/bulk-assign":{"post":{"tags":["Call Monitoring Groups"],"summary":"Update Call Monitoring Group List","description":"Updates call monitoring groups.","operationId":"updateCallMonitoringGroupList","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Changes for the given group","content":{"application/json":{"schema":{"type":"object","properties":{"addedExtensions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension. Only the following extension types are allowed: User, DigitalUser, VirtualUser, FaxUser, Limited"},"permissions":{"type":"array","description":"Set of call monitoring group permissions granted to the specified extension. In order to remove the specified extension from a call monitoring group use an empty value","items":{"type":"string","enum":["Monitoring","Monitored"]}}}}},"updatedExtensions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension. Only the following extension types are allowed: User, DigitalUser, VirtualUser, FaxUser, Limited"},"permissions":{"type":"array","description":"Set of call monitoring group permissions granted to the specified extension. In order to remove the specified extension from a call monitoring group use an empty value","items":{"type":"string","enum":["Monitoring","Monitored"]}}}}},"removedExtensions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension. Only the following extension types are allowed: User, DigitalUser, VirtualUser, FaxUser, Limited"},"permissions":{"type":"array","description":"Set of call monitoring group permissions granted to the specified extension. In order to remove the specified extension from a call monitoring group use an empty value","items":{"type":"string","enum":["Monitoring","Monitored"]}}}}}}}}},"required":true},"responses":{"204":{"description":"No Content","content":{}},"400":{"description":"Extension of type [ParkLocation] could not be a member of [call monitoring]","content":{}}},"x-api-group":"account/call-monitoring-groups/bulk-assign","x-app-permission":"EditExtensions","x-user-permission":"Groups","x-feature":"EditGroups","x-throttling-group":"Heavy","x-docs-level":"Public","x-service-level":1000,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/403510447008/call-monitoring-groups/5893008/bulk-assign\n\n{\n \"addedExtensions\": [{\"id\": \"403510469008\", \"permissions\": [\"Monitoring\"]}, {\"id\": \"403510447008\", \"permissions\": [\"Monitoring\", \"Monitored\"]}],\n \"updatedExtensions\": [{\"id\": \"403510449008\", \"permissions\": [\"Monitored\"]}, {\"id\": \"403510471008\", \"permissions\": [\"Monitoring\"]}],\n \"removedExtensions\": [{\"id\": \"403510472008\"}, {\"id\": \"403510473008\"}]\n}\n","response":"HTTP 204 No Content\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/extension-bulk-update":{"post":{"tags":["Extensions"],"summary":"Update Multiple Extensions","description":"Updates multiple extensions at once. Maximum 500 extensions can be updated per request.","operationId":"extensionBulkUpdate","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["records"],"description":"List of extensions to be updated","type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"status":{"type":"string","enum":["Disabled","Enabled","NotActivated","Frozen"]},"statusInfo":{"type":"object","properties":{"comment":{"type":"string","description":"A free-form user comment, describing the status change reason"},"reason":{"type":"string","description":"Type of suspension","enum":["Voluntarily","Involuntarily","SuspendedVoluntarily","SuspendedVoluntarily2"]}},"description":"Status information (reason, comment). Returned for 'Disabled' status only"},"reason":{"type":"string","description":"Type of suspension"},"comment":{"type":"string","description":"Free form user comment"},"extensionNumber":{"type":"string","description":"Extension number available"},"contact":{"type":"object","properties":{"firstName":{"type":"string","description":"For User extension type only. Extension user first name"},"lastName":{"type":"string","description":"For User extension type only. Extension user last name"},"company":{"type":"string","description":"Extension user company name"},"jobTitle":{"type":"string"},"email":{"type":"string","description":"Email of extension user"},"businessPhone":{"type":"string","description":"Extension user contact phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format"},"mobilePhone":{"type":"string","description":"Extension user mobile (**non** Toll Free) phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format"},"businessAddress":{"type":"object","properties":{"country":{"type":"string","description":"Country name of an extension user company"},"state":{"type":"string","description":"State/province name of an extension user company. Mandatory for the USA, UK and Canada"},"city":{"type":"string","description":"City name of an extension user company"},"street":{"type":"string","description":"Street address of an extension user company"},"zip":{"type":"string","description":"Zip code of an extension user company"}},"description":"Extension user business address. The default is Company (Auto-Receptionist) settings"},"emailAsLoginName":{"type":"boolean","description":" If 'True' then contact email is enabled as login name for this user. Please note that email should be unique in this case. The default value is 'False'"},"pronouncedName":{"type":"object","properties":{"type":{"type":"string","description":"Voice name type. 'Default' - default extension name; first name and last name specified in user profile; 'TextToSpeech' - custom text; user name spelled the way it sounds and specified by user; 'Recorded' - custom audio, user name recorded in user's own voice (supported only for extension retrieval)","enum":["Default","TextToSpeech","Recorded"]},"text":{"type":"string","description":"Custom text"},"prompt":{"type":"object","properties":{"id":{"type":"string"},"contentUri":{"type":"string","description":"Link to a prompt resource"},"contentType":{"type":"string","description":"Content media type","enum":["audio/mpeg","audio/wav"]}}}}},"department":{"type":"string","description":"Extension user department, if any"}}},"regionalSettings":{"type":"object","properties":{"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"internal Identifier of a country"}}},"timezone":{"type":"object","properties":{"id":{"type":"string","description":"internal Identifier of a timezone"}}},"language":{"type":"object","properties":{"id":{"type":"string","description":"internal Identifier of a language"}}},"greetingLanguage":{"type":"object","properties":{"id":{"type":"string","description":"internal Identifier of a greeting language"}}},"formattingLocale":{"type":"object","properties":{"id":{"type":"string","description":"Internal Identifier of a formatting language"}}},"timeFormat":{"type":"string","description":"Time format setting","default":"12h","enum":["12h","24h"]}}},"setupWizardState":{"type":"string","enum":["NotStarted","Incomplete","Completed"]},"partnerId":{"type":"string","description":"Additional extension identifier created by partner application and applied on client side"},"ivrPin":{"type":"string","description":"IVR PIN"},"password":{"type":"string","description":"Password for extension"},"callQueueInfo":{"type":"object","properties":{"slaGoal":{"type":"integer","description":"Target percentage of calls that must be answered by agents within the service level time threshold"},"slaThresholdSeconds":{"type":"integer"},"includeAbandonedCalls":{"type":"boolean"},"abandonedThresholdSeconds":{"type":"integer"}},"description":"For Call Queue extension type only. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology"},"transition":{"type":"object","items":{"type":"object","properties":{"sendWelcomeEmailsToUsers":{"type":"boolean","description":"Specifies if a welcome/activation email is sent to the existing users during account confirmation"},"sendWelcomeEmail":{"type":"boolean","description":"Specifies if a welcome/activation email is sent to the new users (within extension status changing from 'Unsassigned' to 'NotActivated/Disabled')"}},"description":"For NotActivated extensions only. Welcome email settings"}},"customFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a custom field"},"value":{"type":"string","description":"Custom field value"},"displayName":{"type":"string"}}}},"hidden":{"type":"boolean","description":"Hides extension from showing in company directory. Supported for extensions of User type only"},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a site"},"uri":{"type":"string","description":"Link to a site resource"},"name":{"type":"string","description":"Name of a site"},"code":{"type":"string","description":"Site code value. Returned only if specified"}},"description":"Site data. If multi-site feature is turned on for the account, then ID of a site must be specified. In order to assign a wireless point to the main site (company) site ID should be set to `main-site`"},"type":{"type":"string","description":"Extension type. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology","enum":["User","Fax User","VirtualUser","DigitalUser","Department","Announcement","Voicemail","SharedLinesGroup","PagingOnly","IvrMenu","ApplicationExtension","ParkLocation","DelegatedLinesGroup"]},"references":{"type":"array","description":"List of non-RC internal identifiers assigned to an extension","items":{"type":"object","properties":{"ref":{"type":"string","description":"Non-RC identifier of an extension"},"type":{"type":"string","description":"Type of external identifier","enum":["PartnerId","CustomerDirectoryId"]}}}}}}}}}}},"required":true},"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["creationTime","id","lastModifiedTime","status","uri"],"type":"object","description":"Information on a task for updating multiple extensions","properties":{"uri":{"type":"string","description":"Link to a task resource"},"id":{"type":"string","description":"Internal identifier of a task"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed"]},"creationTime":{"type":"string","description":"Task creation datetime"},"lastModifiedTime":{"type":"string","description":"Task latest update datetime"},"result":{"type":"object","description":"Result record on multiple extension update task","properties":{"affectedItems":{"type":"array","items":{"type":"object","properties":{"extensionId":{"type":"string","description":"Internal identifier of an extension"},"status":{"type":"string","description":"Extension update status","enum":["Fail","Success"]},"errors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"parameterName":{"type":"string","description":"Name of invalid parameter"},"parameterValue":{"type":"string"}}}}}}},"errors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"parameterName":{"type":"string","description":"Name of invalid parameter"},"parameterValue":{"type":"string"}}}}}}}}}}}},"x-api-group":"account/extension-bulk-update","x-app-permission":"EditExtensions","x-user-permission":"EditExtensionInfo","x-feature":"EditExtensionInfo","x-throttling-group":"Heavy","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-team":"PLA IPA","x-beta-api":true,"x-codegen-request-body-name":"body","x-error-codes":null}},"/restapi/v1.0/account/{accountId}/extension-bulk-update/tasks/{taskId}":{"get":{"tags":["Extensions"],"summary":"Get Update Task Status","description":"Returns the status of multiple extension update task","operationId":"getExtensionBulkUpdateTask","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"taskId","in":"path","description":"Internal identifier of a task","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["creationTime","id","lastModifiedTime","status","uri"],"type":"object","description":"Information on a task for updating multiple extensions","properties":{"uri":{"type":"string","description":"Link to a task resource"},"id":{"type":"string","description":"Internal identifier of a task"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed"]},"creationTime":{"type":"string","description":"Task creation datetime"},"lastModifiedTime":{"type":"string","description":"Task latest update datetime"},"result":{"type":"object","description":"Result record on multiple extension update task","properties":{"affectedItems":{"type":"array","items":{"type":"object","properties":{"extensionId":{"type":"string","description":"Internal identifier of an extension"},"status":{"type":"string","description":"Extension update status","enum":["Fail","Success"]},"errors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"parameterName":{"type":"string","description":"Name of invalid parameter"},"parameterValue":{"type":"string"}}}}}}},"errors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"parameterName":{"type":"string","description":"Name of invalid parameter"},"parameterValue":{"type":"string"}}}}}}}}}}}},"x-api-group":"account/extension-bulk-update","x-app-permission":"EditExtensions","x-user-permission":"EditExtensionInfo","x-feature":"EditExtensionInfo","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-beta-api":true,"x-team":"PLA IPA","x-http-examples":[{"request":"GET /restapi/v1.0/account/accountId/extension-bulk-update/tasks/147043006-147043006-5b3109afbd06443b840167d0808d8b4f\n","response":"HTTP 200 OK\n{\n \"id\": \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"uri\": \"/restapi/v1.0/account/accountId/extension-bulk-update/tasks/147043006-147043006-5b3109afbd06443b840167d0808d8b4fI\",\n \"status\": \"Completed\",\n \"creationTime\": \"2019-02-20T13:30:09Z\",\n \"lastModifiedTime\": \"2019-02-20T13:30:09Z\",\n \"result\": {\n \"affectedItems\": [\n {\n \"extensionId\": \"123456789\",\n \"status\": \"Success\"\n },\n {\n \"extensionId\": \"987654321\",\n \"status\": \"Fail\",\n \"errors\": [\n {\n \"errorCode\": \"CMN-000\",\n \"message\": \"Some msg here\"\n }\n ]\n }\n ],\n \"errors\": []\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/address-book-bulk-upload":{"post":{"tags":["External Contacts"],"summary":"Update Multiple Contacts","description":"Uploads multiple contacts for multiple extensions at once. Maximum 500 extension, each up to 10000 contacts, can be updated per request.","operationId":"addressBookBulkUpload","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["records"],"type":"object","properties":{"records":{"type":"array","description":"List of extensions which contacts have to be updated","items":{"required":["extensionId","contacts"],"type":"object","properties":{"extensionId":{"type":"string","description":"Internal identifier of an extension"},"contacts":{"type":"array","description":"List of contacts to be added to extension address book","items":{"type":"object","description":"Contact resource","properties":{"email":{"type":"string","description":"Email of a contact","example":"charlie.williams@example.com"},"notes":{"type":"string","description":"Notes for a contact","example":"#1 Customer"},"company":{"type":"string","description":"Company name of a contact","example":"Example, Inc."},"firstName":{"type":"string","description":"First name of a contact","example":"Charlie"},"lastName":{"type":"string","description":"Last name of a contact","example":"Williams"},"jobTitle":{"type":"string","description":"Job title of a contact","example":"CEO"},"birthday":{"type":"string","description":"Date of birth of a contact","format":"date-time"},"webPage":{"type":"string","description":"Link to a contact home page","example":"http://www.example.com"},"middleName":{"type":"string","description":"Middle name of a contact","example":"J"},"nickName":{"type":"string","description":"Nick name of a contact","example":"The Boss"},"email2":{"type":"string","description":"Second email of a contact","example":"charlie-example@gmail.com"},"email3":{"type":"string","description":"Third email of a contact","example":"theboss-example@hotmail.com"},"homePhone":{"type":"string","description":"Home phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"homePhone2":{"type":"string","description":"2nd home phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessPhone":{"type":"string","description":"Business phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessPhone2":{"type":"string","description":"2nd business phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"mobilePhone":{"type":"string","description":"Mobile phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessFax":{"type":"string","description":"Business fax number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"companyPhone":{"type":"string","description":"Company number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"assistantPhone":{"type":"string","description":"Phone number of a contact assistant in e.164 (with \"+\") format","example":"+15551234567"},"carPhone":{"type":"string","description":"Car phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"otherPhone":{"type":"string","description":"Other phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"otherFax":{"type":"string","description":"Other fax number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"callbackPhone":{"type":"string","description":"Callback phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}},"homeAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}},"otherAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}}}}}}}}}}}},"required":true},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"description":"Information on a task for adding multiple contacts to multiple extensions","required":["id","uri","creationTime","lastModifiedTime","status"],"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a task"},"uri":{"type":"string","description":"Link for the task status retrieval"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed"]},"creationTime":{"type":"string","description":"Datetime of a task creation"},"lastModifiedTime":{"type":"string","description":"Datetime of a task latest update"},"results":{"type":"object","description":"Result record on adding multiple contacts to an extension. Returned for completed tasks","properties":{"extensionId":{"type":"string","description":"Internal identifier of an extension"},"contact":{"type":"object","description":"Contact resource","properties":{"email":{"type":"string","description":"Email of a contact","example":"charlie.williams@example.com"},"notes":{"type":"string","description":"Notes for a contact","example":"#1 Customer"},"company":{"type":"string","description":"Company name of a contact","example":"Example, Inc."},"firstName":{"type":"string","description":"First name of a contact","example":"Charlie"},"lastName":{"type":"string","description":"Last name of a contact","example":"Williams"},"jobTitle":{"type":"string","description":"Job title of a contact","example":"CEO"},"birthday":{"type":"string","description":"Date of birth of a contact","format":"date-time"},"webPage":{"type":"string","description":"Link to a contact home page","example":"http://www.example.com"},"middleName":{"type":"string","description":"Middle name of a contact","example":"J"},"nickName":{"type":"string","description":"Nick name of a contact","example":"The Boss"},"email2":{"type":"string","description":"Second email of a contact","example":"charlie-example@gmail.com"},"email3":{"type":"string","description":"Third email of a contact","example":"theboss-example@hotmail.com"},"homePhone":{"type":"string","description":"Home phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"homePhone2":{"type":"string","description":"2nd home phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessPhone":{"type":"string","description":"Business phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessPhone2":{"type":"string","description":"2nd business phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"mobilePhone":{"type":"string","description":"Mobile phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessFax":{"type":"string","description":"Business fax number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"companyPhone":{"type":"string","description":"Company number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"assistantPhone":{"type":"string","description":"Phone number of a contact assistant in e.164 (with \"+\") format","example":"+15551234567"},"carPhone":{"type":"string","description":"Car phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"otherPhone":{"type":"string","description":"Other phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"otherFax":{"type":"string","description":"Other fax number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"callbackPhone":{"type":"string","description":"Callback phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}},"homeAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}},"otherAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}}}},"status":{"type":"string","description":"Adding contact status","enum":["Success","Fail"]},"errors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"parameterName":{"type":"string","description":"Name of invalid parameter"},"parameterValue":{"type":"string"}}}}}}}}}}}},"x-api-group":"account/address-book-bulk-upload","x-app-permission":"Contacts","x-user-permission":"EditPersonalContacts","x-feature":"EditPersonalContacts","x-throttling-group":"Heavy","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-beta-api":true,"x-team":"PLA IPA","x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/accountId/address-book-bulk-upload\n{\n \"records\": [\n {\n \"extensionId\": \"123456789\",\n \"contacts\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"jobTitle\": \"Director\",\n \"businessAddress\": {\n \"city\": \"New York\",\n \"country\": \"USA\"\n },\n \"homePhone\": \"+18763245477\"\n },\n ...\n ]\n }\n ]\n}\n","response":"HTTP 202 Accepted \n{\n \"id\": \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"uri\": \"Task URL\",\n \"status\": \"Accepted\",\n \"creationTime\": \"2019-02-20T13:30:09Z\",\n \"lastModifiedTime\": \"2019-02-20T13:30:09Z\"\n} \n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/address-book-bulk-upload/tasks/{taskId}":{"get":{"tags":["External Contacts"],"summary":"Get Contacts Update Task","description":"Returns the status of a task on adding multiple contacts to multiple extensions.","operationId":"getAddressBookBulkUploadTask","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"taskId","in":"path","description":"Internal identifier of a task","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"description":"Information on a task for adding multiple contacts to multiple extensions","required":["id","uri","creationTime","lastModifiedTime","status"],"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a task"},"uri":{"type":"string","description":"Link for the task status retrieval"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed"]},"creationTime":{"type":"string","description":"Datetime of a task creation"},"lastModifiedTime":{"type":"string","description":"Datetime of a task latest update"},"results":{"type":"object","description":"Result record on adding multiple contacts to an extension. Returned for completed tasks","properties":{"extensionId":{"type":"string","description":"Internal identifier of an extension"},"contact":{"type":"object","description":"Contact resource","properties":{"email":{"type":"string","description":"Email of a contact","example":"charlie.williams@example.com"},"notes":{"type":"string","description":"Notes for a contact","example":"#1 Customer"},"company":{"type":"string","description":"Company name of a contact","example":"Example, Inc."},"firstName":{"type":"string","description":"First name of a contact","example":"Charlie"},"lastName":{"type":"string","description":"Last name of a contact","example":"Williams"},"jobTitle":{"type":"string","description":"Job title of a contact","example":"CEO"},"birthday":{"type":"string","description":"Date of birth of a contact","format":"date-time"},"webPage":{"type":"string","description":"Link to a contact home page","example":"http://www.example.com"},"middleName":{"type":"string","description":"Middle name of a contact","example":"J"},"nickName":{"type":"string","description":"Nick name of a contact","example":"The Boss"},"email2":{"type":"string","description":"Second email of a contact","example":"charlie-example@gmail.com"},"email3":{"type":"string","description":"Third email of a contact","example":"theboss-example@hotmail.com"},"homePhone":{"type":"string","description":"Home phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"homePhone2":{"type":"string","description":"2nd home phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessPhone":{"type":"string","description":"Business phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessPhone2":{"type":"string","description":"2nd business phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"mobilePhone":{"type":"string","description":"Mobile phone of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessFax":{"type":"string","description":"Business fax number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"companyPhone":{"type":"string","description":"Company number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"assistantPhone":{"type":"string","description":"Phone number of a contact assistant in e.164 (with \"+\") format","example":"+15551234567"},"carPhone":{"type":"string","description":"Car phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"otherPhone":{"type":"string","description":"Other phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"otherFax":{"type":"string","description":"Other fax number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"callbackPhone":{"type":"string","description":"Callback phone number of a contact in e.164 (with \"+\") format","example":"+15551234567"},"businessAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}},"homeAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}},"otherAddress":{"type":"object","description":"Contact address information","properties":{"country":{"type":"string","description":"Country name of extension user company. Not returned for Address Book"},"state":{"type":"string","description":"State/province name of extension user company"},"city":{"type":"string","description":"City name of extension user company"},"street":{"type":"string","description":"Street address of extension user company"},"zip":{"type":"string","description":"Zip code of extension user company"}}}}},"status":{"type":"string","description":"Adding contact status","enum":["Success","Fail"]},"errors":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"parameterName":{"type":"string","description":"Name of invalid parameter"},"parameterValue":{"type":"string"}}}}}}}}}}}},"x-api-group":"account/address-book-bulk-upload","x-app-permission":"Contacts","x-user-permission":"EditPersonalContacts","x-feature":"EditPersonalContacts","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-beta-api":true,"x-team":"PLA IPA","x-http-examples":[{"request":"GET /restapi/v1.0/account/accountId/address-book-bulk-upload/tasks/147043006-147043006-5b3109afbd06443b840167d0808d8b4f\n","response":"HTTP 200 OK\n\n{\n \"id\": \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"uri\": \"Task URL\",\n \"status\": \"Completed\",\n \"creationTime\": \"2019-02-20T13:30:09Z\",\n \"lastModifiedTime\": \"2019-02-20T13:30:09Z\",\n \"results\": [\n {\n \"extensionId\": \"123456789\",\n \"contact\": {\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n ...\n },\n \"status\": \"Success\"\n },\n {\n \"extensionId\": \"123456789\",\n \"contact\": {\n \"firstName\": \"Alice\",\n \"lastName\": \"Williams\",\n ...\n },\n \"status\": \"Fail\",\n \"errors\": [\n {\n \"errorCode\": \"CMN-101\", \n \"message\": \"message\": \"Parameter [n] value is invalid\"\n }\n ]\n }\n ]\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/number-parser/parse":{"post":{"tags":["Phone Numbers"],"summary":"Parse Phone Number","description":"Returns one or more parsed and/or formatted phone numbers that are passed as a string.","operationId":"parsePhoneNumber","parameters":[{"name":"homeCountry","in":"query","description":"Internal identifier of a home country. The default value is ISO code (ISO 3166) of the user's home country or brand country, if the user is undefined","schema":{"type":"string"}},{"name":"nationalAsPriority","in":"query","description":"The default value is 'False'. If 'True', the numbers that are closer to the home country are given higher priority","schema":{"type":"boolean"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"originalStrings":{"type":"array","description":"Phone numbers passed in a string. The maximum value of phone numbers is limited to 64. The maximum number of symbols in each phone number in a string is 64","items":{"type":"string"}}}}}},"required":true},"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["homeCountry","phoneNumbers"],"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a resource"},"homeCountry":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a country"},"uri":{"type":"string","description":"Canonical URI of a country"},"callingCode":{"type":"string","description":"Country calling code defined by ITU-T recommendations E.123 and E.164, see Calling Codes"},"emergencyCalling":{"type":"boolean","description":"Emergency calling feature availability/emergency address requirement indicator"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see ISO 3166"},"name":{"type":"string","description":"Official name of a country"}},"description":"Information on a user home country || Information on a country the phone number belongs to"},"phoneNumbers":{"type":"array","description":"Parsed phone numbers data","items":{"type":"object","properties":{"areaCode":{"type":"string","description":"Area code of location. The portion of the [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) number that identifies a specific geographic region/numbering area of the national numbering plan (NANP); that can be summarized as `NPA-NXX-xxxx` and covers Canada, the United States, parts of the Caribbean Sea, and some Atlantic and Pacific islands. See [North American Numbering Plan] (https://en.wikipedia.org/wiki/North_American_Numbering_Plan) for details"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a country"},"uri":{"type":"string","description":"Canonical URI of a country"},"callingCode":{"type":"string","description":"Country calling code defined by ITU-T recommendations E.123 and E.164, see Calling Codes"},"emergencyCalling":{"type":"boolean","description":"Emergency calling feature availability/emergency address requirement indicator"},"isoCode":{"type":"string","description":"Country code according to the ISO standard, see ISO 3166"},"name":{"type":"string","description":"Official name of a country"}},"description":"Information on a user home country || Information on a country the phone number belongs to"},"dialable":{"type":"string","description":"Dialing format of a phone number"},"e164":{"type":"string","description":"Phone number [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format"},"formattedInternational":{"type":"string","description":"International format of a phone number"},"formattedNational":{"type":"string","description":"Domestic format of a phone number"},"originalString":{"type":"string","description":"One of the numbers to be parsed, passed as a string in response"},"special":{"type":"boolean","description":"'True' if the number is in a special format (for example N11 code)"},"normalized":{"type":"string","description":"Phone number [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format without plus sign ('+')"},"tollFree":{"type":"boolean","description":"Specifies if a phone number is toll free or not"},"subAddress":{"type":"string","description":"Sub-Address. The portion of the number that identifies a subscriber into the subscriber internal (non-public) network."},"subscriberNumber":{"type":"string","description":" Subscriber number. The portion of the [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) number that identifies a subscriber in a network or numbering area."},"dtmfPostfix":{"type":"string","description":"DTMF (Dual Tone Multi-Frequency) postfix"}}}}}}}}}},"x-beta-api":true,"x-api-group":"number-parser/parse","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/number-parser/parse\n\n{\n \"originalStrings\": [\n \"8004699269\",\n \"6505234578\",\n \"+496704660908\",\n \"911\"\n ]\n}\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https:.../restapi/v1.0/number-parser/parse\",\n \"homeCountry\": {\n \"uri\": \"https:.../restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"phoneNumbers\": [\n {\n \"originalString\": \"8004699269\",\n \"country\": {\n \"uri\": \"https:.../restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"areaCode\": \"800\",\n \"formattedNational\": \"(800) 469-9269\",\n \"formattedInternational\": \"+1 (800) 469-9269\",\n \"dialable\": \"18004699269\",\n \"e164\": \"+18004699269\",\n \"special\": false,\n \"normalized\": \"18004699269\"\n },\n {\n \"originalString\": \"6505234578\",\n \"country\": {\n \"uri\": \"https:.../restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"areaCode\": \"650\",\n \"formattedNational\": \"(650) 523-4578\",\n \"formattedInternational\": \"+1 (650) 523-4578\",\n \"dialable\": \"16505234578\",\n \"e164\": \"+16505234578\",\n \"special\": false,\n \"normalized\": \"16505234578\"\n },\n {\n \"originalString\": \"+496704660908\",\n \"country\": {\n \"uri\": \"https:.../restapi/v1.0/dictionary/country/83\",\n \"id\": \"83\",\n \"name\": \"Germany\",\n \"isoCode\": \"DE\",\n \"callingCode\": \"49\"\n },\n \"areaCode\": \"\",\n \"formattedNational\": \"+49 6704660908\",\n \"formattedInternational\": \"+49 6704660908\",\n \"dialable\": \"011496704660908\",\n \"e164\": \"+496704660908\",\n \"special\": false,\n \"normalized\": \"496704660908\"\n },\n {\n \"originalString\": \"911\",\n \"country\": {\n \"uri\": \"https:.../restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\",\n \"isoCode\": \"US\",\n \"callingCode\": \"1\"\n },\n \"areaCode\": \"\",\n \"formattedNational\": \"911\",\n \"formattedInternational\": \"911\",\n \"dialable\": \"911\",\n \"e164\": \"911\",\n \"special\": true,\n \"normalized\": \"1911\"\n }\n ]\n}\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [nationalAsPriority] value is invalid."},{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]}},"/restapi/v1.0/account/{accountId}/device/{deviceId}":{"get":{"tags":["Devices"],"summary":"Get Device","description":"Returns account device(s) by their ID(s).","operationId":"readDevice","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"deviceId","in":"path","description":"Internal identifier of a device","required":true,"schema":{"type":"integer"}},{"name":"syncEmergencyAddress","in":"query","description":"Specifies if emergency address should be synchronized or not","schema":{"type":"boolean","default":false}}],"responses":{"default":{"description":"Account Device(s) Info","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a device"},"uri":{"type":"string","description":"Canonical URI of a device"},"sku":{"type":"string","description":"Device identification number (stock keeping unit) in the format TP-ID [-AT-AC], where TP is device type (HP for RC HardPhone, DV for all other devices including softphone); ID - device model ID; AT -addon type ID; AC - addon count (if any). For example 'HP-56-2-2'"},"type":{"type":"string","description":"Device type","default":"HardPhone","enum":["BLA","SoftPhone","OtherPhone","HardPhone","WebPhone","Paging"]},"name":{"type":"string","description":"Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name"},"serial":{"type":"string","description":"Serial number for HardPhone (is returned only when the phone is shipped and provisioned); endpoint_id for softphone and mobile applications"},"status":{"type":"string","description":"Device status","enum":["Offline","Online"]},"computerName":{"type":"string","description":"PC name for softphone"},"model":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a HardPhone device model"},"name":{"type":"string","description":"Device name"},"addons":{"type":"array","description":"Addons description","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"count":{"type":"integer"}}}},"features":{"type":"array","description":"Device feature or multiple features supported","items":{"type":"string","enum":["BLA","CommonPhone","Intercom","Paging","HELD"]}},"lineCount":{"type":"integer","description":"Max supported count of phone lines"}},"description":"HardPhone model information"},"extension":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of an extension","format":"int64"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}},"description":"This attribute can be omitted for unassigned devices"},"emergency":{"type":"object","properties":{"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a customer"},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"zip":{"type":"string","description":"Zip code"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"}}},"location":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of the emergency response location"},"name":{"type":"string","description":"Location name"}},"description":"Company emergency response location details"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"addressStatus":{"type":"string","description":"Emergency address status","enum":["Valid","Invalid"]},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"addressEditableStatus":{"type":"string","description":"Ability to register new emergency address for a phone line using devices sharing this line or only main device (line owner)","enum":["MainDevice","AnyDevice"]}},"description":"Device emergency settings"},"emergencyServiceAddress":{"type":"object","properties":{"street":{"type":"string"},"street2":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"customerName":{"type":"string"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"additionalCustomerName":{"type":"string","description":"Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerEmail":{"type":"string","description":"Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia."},"additionalCustomerEmail":{"type":"string","description":"Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerPhone":{"type":"string","description":"Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia"},"additionalCustomerPhone":{"type":"string","description":"Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia."},"taxId":{"type":"string","description":"Internal identifier of a tax"}},"description":"Address for emergency cases. The same emergency address is assigned to all the numbers of one device"},"phoneLines":{"type":"array","description":"Phone lines information","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a phone line"},"lineType":{"type":"string","description":"Type of phone line","enum":["Standalone","StandaloneFree","BlaPrimary","BlaSecondary"]},"phoneInfo":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of a phone number","format":"int64"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"}},"description":"Brief information on a phone number country"},"extension":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}},"description":"Information on the extension, to which the phone number is assigned. Returned only for the request of Account phone number list"},"label":{"type":"string","description":"Custom user name of a phone number, if any"},"location":{"type":"string","description":"Location (City, State). Filled for local US numbers"},"paymentType":{"type":"string","description":"Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system","enum":["External","TollFree","Local"]},"phoneNumber":{"type":"string","description":"Phone number"},"status":{"type":"string","description":"Status of a phone number. If the value is 'Normal', the phone number is ready to be used. Otherwise it is an external number not yet ported to RingCentral"},"type":{"type":"string","description":"Phone number type","enum":["VoiceFax","FaxOnly","VoiceOnly"]},"usageType":{"type":"string","description":"Usage type of the phone number","enum":["MainCompanyNumber","AdditionalCompanyNumber","CompanyNumber","DirectNumber","CompanyFaxNumber","ForwardedNumber","ForwardedCompanyNumber","ContactCenterNumber"]}},"description":"Phone number information"},"emergencyAddress":{"type":"object","properties":{"required":{"type":"boolean","description":" 'True' if specifying of emergency address is required"},"localOnly":{"type":"boolean","description":" 'True' if only local emergency address can be specified"}}}}}},"shipping":{"type":"object","properties":{"status":{"type":"string","description":"Shipping status of the order item. It is set to 'Initial' when the order is submitted. Then it is changed to 'Accepted' when a distributor starts processing the order. Finally the status is changed to 'Shipped' which means that distributor shipped the device.","enum":["Initial","Accepted","Shipped","Won't ship"]},"carrier":{"type":"string","description":"Shipping carrier name. Appears only if the device status is 'Shipped'"},"trackingNumber":{"type":"string","description":"Carrier-specific tracking number. Appears only if the device status is 'Shipped'"},"method":{"type":"object","properties":{"id":{"type":"string","description":"Method identifier. The default value is 1 (Ground)","enum":["1","2","3"]},"name":{"type":"string","description":"Method name, corresponding to the identifier","enum":["Ground","2 Day","Overnight"]}},"description":"Shipping method information"},"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a primary contact person (receiver)"},"additionalCustomerName":{"type":"string","description":"Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerEmail":{"type":"string","description":"Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia."},"additionalCustomerEmail":{"type":"string","description":"Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerPhone":{"type":"string","description":"Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia"},"additionalCustomerPhone":{"type":"string","description":"Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia."},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"},"zip":{"type":"string","description":"Zip code"},"taxId":{"type":"string","description":"National taxpayer identification number. Should be specified for Brazil (CNPJ/CPF number) and Argentina (CUIT number)."}},"description":"Shipping address for the order. If it coincides with the Emergency Service Address, then can be omitted. By default the same value as the emergencyServiceAddress. Multiple addresses can be specified; in case the order contains several devices, they can be delivered to different addresses"}},"description":"Shipping information, according to which devices (in case of HardPhone ) or e911 stickers (in case of SoftPhone and OtherPhone ) will be delivered to the customer"},"boxBillingId":{"type":"integer","description":"Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone"},"useAsCommonPhone":{"type":"boolean","description":"Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone."},"inCompanyNet":{"type":"boolean","description":"Network location status. 'True' if the device is located in the configured corporate network (On-Net); 'False' for Off-Net location. Parameter is not returned if `EmergencyAddressAutoUpdate` feature is not enabled for the account/user, or if device network location is not determined"},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a site"},"name":{"type":"string","description":"Name of a site"}},"description":"Site data"},"lastLocationReportTime":{"type":"string","description":"Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z"},"linePooling":{"type":"string","description":"Pooling type of a deviceHost - device with standalone paid phone line which can be linked to Glip/Softphone instanceGuest - device with a linked phone lineNone - device without a phone line or with specific line (free, BLA, etc.) = ['Host', 'Guest', 'None']","enum":["Host","Guest","None"]},"billingStatement":{"type":"object","properties":{"currency":{"type":"string","description":"Currency code complying with [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) standard"},"charges":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"amount":{"type":"number"},"feature":{"type":"string"},"freeServiceCredit":{"type":"number"}}}},"fees":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"amount":{"type":"number"},"freeServiceCredit":{"type":"number"}}}},"totalCharged":{"type":"number"},"totalCharges":{"type":"number"},"totalFees":{"type":"number"},"subtotal":{"type":"number"},"totalFreeServiceCredit":{"type":"number"}},"description":"Billing information. Returned for device update request if `prestatement` query parameter is set to 'true'"}}}}}}},"x-api-group":"account/device","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadCompanyDevices","x-feature":"ReadAccountDevices","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/device/155354004\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/1113195004/device/155354004\",\n \"id\": \"155354004\",\n \"type\": \"HardPhone\",\n \"sku\": \"HP-16-2-2\",\n \"model\": {\n \"id\": \"16\",\n \"name\": \"Cisco SPA-508G Desk Phone\",\n \"addons\": [\n {\n \"id\": \"2\",\n \"name\": \"Cisco - 32 lines\",\n \"count\": 2\n }\n ],\n \"features\": [\n \"Intercom\",\n \"Paging\",\n \"BLA\"\n ]\n },\n \"name\": \"Cisco SPA-508G Desk Phone with 2 Expansion Modules\",\n \"status\": \"Offline\",\n \"phoneLines\": [],\n \"shipping\": {\n \"address\": {\n \"street\": \"20 Davis Drive\",\n \"city\": \"Belmont\",\n \"state\": \"CA\",\n \"country\": \"US\",\n \"zip\": \"123456\",\n \"customerName\": \"Dr. Watson\"\n },\n \"method\": {\n \"id\": \"2\",\n \"name\": \"2 Day\"\n },\n \"status\": \"Initial\"\n },\n \"linePooling\": \"None\"\n}\n"}],"x-error-codes":null},"put":{"tags":["Devices"],"summary":"Update Device","description":"Updates account device(s) by their ID(s).","operationId":"updateDevice","parameters":[{"name":"deviceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"prestatement","in":"query","schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"emergencyServiceAddress":{"type":"object","properties":{"street":{"type":"string"},"street2":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"customerName":{"type":"string"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"country":{"type":"string","description":"Country name"},"countryId":{"type":"string","description":"Internal identifier of a country"}},"description":"Address for emergency cases. The same emergency address is assigned to all numbers of a single device. If the emergency address is also specified in `emergency` resource, then this value is ignored"},"emergency":{"type":"object","properties":{"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a customer"},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"zip":{"type":"string","description":"Zip code"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"}}},"location":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of the emergency response location"},"name":{"type":"string","description":"Location name"}},"description":"Company emergency response location details"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"addressStatus":{"type":"string","description":"Emergency address status","enum":["Valid","Invalid"]},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"addressEditableStatus":{"type":"string","description":"Ability to register new emergency address for a phone line using devices sharing this line or only main device (line owner)","enum":["MainDevice","AnyDevice"]}},"description":"Device emergency settings"},"extension":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on extension that the device is assigned to"},"phoneLines":{"type":"object","properties":{"phoneLines":{"type":"array","description":"Information on phone lines added to a device","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a phone number"}}}}},"description":"Information on phone lines added to a device"},"useAsCommonPhone":{"type":"boolean","description":"Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone."}}}}},"required":false},"responses":{"default":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a device"},"uri":{"type":"string","description":"Canonical URI of a device"},"sku":{"type":"string","description":"Device identification number (stock keeping unit) in the format TP-ID [-AT-AC], where TP is device type (HP for RC HardPhone, DV for all other devices including softphone); ID - device model ID; AT -addon type ID; AC - addon count (if any). For example 'HP-56-2-2'"},"type":{"type":"string","description":"Device type","default":"HardPhone","enum":["BLA","SoftPhone","OtherPhone","HardPhone","WebPhone","Paging"]},"name":{"type":"string","description":"Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name"},"serial":{"type":"string","description":"Serial number for HardPhone (is returned only when the phone is shipped and provisioned); endpoint_id for softphone and mobile applications"},"status":{"type":"string","description":"Device status","enum":["Offline","Online"]},"computerName":{"type":"string","description":"PC name for softphone"},"model":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a HardPhone device model"},"name":{"type":"string","description":"Device name"},"addons":{"type":"array","description":"Addons description","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"count":{"type":"integer"}}}},"features":{"type":"array","description":"Device feature or multiple features supported","items":{"type":"string","enum":["BLA","CommonPhone","Intercom","Paging","HELD"]}},"lineCount":{"type":"integer","description":"Max supported count of phone lines"}},"description":"HardPhone model information"},"extension":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of an extension","format":"int64"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}},"description":"This attribute can be omitted for unassigned devices"},"emergency":{"type":"object","properties":{"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a customer"},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"zip":{"type":"string","description":"Zip code"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"}}},"location":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of the emergency response location"},"name":{"type":"string","description":"Location name"}},"description":"Company emergency response location details"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"addressStatus":{"type":"string","description":"Emergency address status","enum":["Valid","Invalid"]},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"addressEditableStatus":{"type":"string","description":"Ability to register new emergency address for a phone line using devices sharing this line or only main device (line owner)","enum":["MainDevice","AnyDevice"]}},"description":"Device emergency settings"},"emergencyServiceAddress":{"type":"object","properties":{"street":{"type":"string"},"street2":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"customerName":{"type":"string"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"additionalCustomerName":{"type":"string","description":"Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerEmail":{"type":"string","description":"Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia."},"additionalCustomerEmail":{"type":"string","description":"Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerPhone":{"type":"string","description":"Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia"},"additionalCustomerPhone":{"type":"string","description":"Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia."},"taxId":{"type":"string","description":"Internal identifier of a tax"}},"description":"Address for emergency cases. The same emergency address is assigned to all the numbers of one device"},"phoneLines":{"type":"array","description":"Phone lines information","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a phone line"},"lineType":{"type":"string","description":"Type of phone line","enum":["Standalone","StandaloneFree","BlaPrimary","BlaSecondary"]},"phoneInfo":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of a phone number","format":"int64"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"}},"description":"Brief information on a phone number country"},"extension":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}},"description":"Information on the extension, to which the phone number is assigned. Returned only for the request of Account phone number list"},"label":{"type":"string","description":"Custom user name of a phone number, if any"},"location":{"type":"string","description":"Location (City, State). Filled for local US numbers"},"paymentType":{"type":"string","description":"Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system","enum":["External","TollFree","Local"]},"phoneNumber":{"type":"string","description":"Phone number"},"status":{"type":"string","description":"Status of a phone number. If the value is 'Normal', the phone number is ready to be used. Otherwise it is an external number not yet ported to RingCentral"},"type":{"type":"string","description":"Phone number type","enum":["VoiceFax","FaxOnly","VoiceOnly"]},"usageType":{"type":"string","description":"Usage type of the phone number","enum":["MainCompanyNumber","AdditionalCompanyNumber","CompanyNumber","DirectNumber","CompanyFaxNumber","ForwardedNumber","ForwardedCompanyNumber","ContactCenterNumber"]}},"description":"Phone number information"},"emergencyAddress":{"type":"object","properties":{"required":{"type":"boolean","description":" 'True' if specifying of emergency address is required"},"localOnly":{"type":"boolean","description":" 'True' if only local emergency address can be specified"}}}}}},"shipping":{"type":"object","properties":{"status":{"type":"string","description":"Shipping status of the order item. It is set to 'Initial' when the order is submitted. Then it is changed to 'Accepted' when a distributor starts processing the order. Finally the status is changed to 'Shipped' which means that distributor shipped the device.","enum":["Initial","Accepted","Shipped","Won't ship"]},"carrier":{"type":"string","description":"Shipping carrier name. Appears only if the device status is 'Shipped'"},"trackingNumber":{"type":"string","description":"Carrier-specific tracking number. Appears only if the device status is 'Shipped'"},"method":{"type":"object","properties":{"id":{"type":"string","description":"Method identifier. The default value is 1 (Ground)","enum":["1","2","3"]},"name":{"type":"string","description":"Method name, corresponding to the identifier","enum":["Ground","2 Day","Overnight"]}},"description":"Shipping method information"},"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a primary contact person (receiver)"},"additionalCustomerName":{"type":"string","description":"Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerEmail":{"type":"string","description":"Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia."},"additionalCustomerEmail":{"type":"string","description":"Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerPhone":{"type":"string","description":"Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia"},"additionalCustomerPhone":{"type":"string","description":"Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia."},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"},"zip":{"type":"string","description":"Zip code"},"taxId":{"type":"string","description":"National taxpayer identification number. Should be specified for Brazil (CNPJ/CPF number) and Argentina (CUIT number)."}},"description":"Shipping address for the order. If it coincides with the Emergency Service Address, then can be omitted. By default the same value as the emergencyServiceAddress. Multiple addresses can be specified; in case the order contains several devices, they can be delivered to different addresses"}},"description":"Shipping information, according to which devices (in case of HardPhone ) or e911 stickers (in case of SoftPhone and OtherPhone ) will be delivered to the customer"},"boxBillingId":{"type":"integer","description":"Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone"},"useAsCommonPhone":{"type":"boolean","description":"Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone."},"inCompanyNet":{"type":"boolean","description":"Network location status. 'True' if the device is located in the configured corporate network (On-Net); 'False' for Off-Net location. Parameter is not returned if `EmergencyAddressAutoUpdate` feature is not enabled for the account/user, or if device network location is not determined"},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a site"},"name":{"type":"string","description":"Name of a site"}},"description":"Site data"},"lastLocationReportTime":{"type":"string","description":"Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z"},"linePooling":{"type":"string","description":"Pooling type of a deviceHost - device with standalone paid phone line which can be linked to Glip/Softphone instanceGuest - device with a linked phone lineNone - device without a phone line or with specific line (free, BLA, etc.) = ['Host', 'Guest', 'None']","enum":["Host","Guest","None"]},"billingStatement":{"type":"object","properties":{"currency":{"type":"string","description":"Currency code complying with [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) standard"},"charges":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"amount":{"type":"number"},"feature":{"type":"string"},"freeServiceCredit":{"type":"number"}}}},"fees":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"amount":{"type":"number"},"freeServiceCredit":{"type":"number"}}}},"totalCharged":{"type":"number"},"totalCharges":{"type":"number"},"totalFees":{"type":"number"},"subtotal":{"type":"number"},"totalFreeServiceCredit":{"type":"number"}},"description":"Billing information. Returned for device update request if `prestatement` query parameter is set to 'true'"}}}}}}},"x-api-group":"account/device","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"EditAccounts","x-user-permission":"EditCompanyDevices","x-feature":"EditAccountDevices","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT /restapi/v1.0/account/~/device/138730004?prestatement=true\n\n{\n \"emergency\": {\n \"address\": {\n \"street\": \"20 DVS DRIVE\",\n \"street2\": \"FL 1\",\n \"city\": \"BELMONT\",\n \"stateId\": \"16\",\n \"state\": \"CA\",\n \"zip\": \"94002\",\n \"countryId\": \"1\",\n \"country\": \"US\",\n \"customerName\": \"...\"\n },\n \"location\": {}\n }\n}\n\n","response":"HTTP 200 OK\n\n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/1033792004/device/138730004\",\n \"id\": \"138730004\",\n \"type\": \"HardPhone\",\n \"sku\": \"HP-16-2-2\",\n \"model\": {\n \"id\": \"16\",\n \"name\": \"Cisco SPA-508G Desk Phone\",\n \"addons\": [\n {\n \"id\": \"2\",\n \"name\": \"Cisco - 32 lines\",\n \"count\": 2\n }\n ],\n \"features\": [\n \"Intercom\",\n \"Paging\",\n \"BLA\"\n ]\n },\n \"name\": \"Cisco SPA-508G Desk Phone with 2 Expansion Modules\",\n \"status\": \"Offline\",\n \"extension\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/1033792004/extension/1033792004\",\n \"id\": 1033792004,\n \"extensionNumber\": \"101\"\n },\n \"billingStatement\": {\n \"currency\" : \"USD\",\n \"charges\": [{\n \"description\": \"Free Digital Line\",\n \"amount\": \"0.00\",\n \"feature\": \"DigitalLineFree\",\n \"freeServiceCredit\": \"0.00\"\n }\n ],\n \"totalCharges\" : \"0.00\",\n \"fees\": [{\n \"description\": \"e911 Service Fee\",\n \"amount\": \"0.99\",\n \"freeServiceCredit\": \"0.99\"\n }, {\n \"description\" : \"State and local taxes and fees\",\n \"amount\" : \"0.09\",\n \"freeServiceCredit\": \"0.09\"\n }\n ],\n \"totalFees\" : \"0.00\",\n \"subtotal\" : \"1.08\",\n \"totalFreeServiceCredit\": \"1.08\",\n \"totalCharged\" : \"0.00\"\n },\n \"phoneLines\": [\n {\n \"lineType\": \"Standalone\",\n \"emergencyAddress\": {\n \"required\": true,\n \"localOnly\": false\n },\n \"phoneInfo\": {\n \"id\": 894906004,\n \"phoneNumber\": \"+18002021371\",\n \"paymentType\": \"TollFree\",\n \"type\": \"VoiceFax\",\n \"usageType\": \"DirectNumber\",\n \"country\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\": \"1\",\n \"name\": \"United States\"\n }\n }\n }\n ],\n \"emergency\": {\n \"address\": {\n \"street\": \"20 DVS DRIVE\",\n \"street2\": \"FL 1\",\n \"city\": \"BELMONT\",\n \"stateId\": \"16\",\n \"state\": \"CA\",\n \"zip\": \"94002\",\n \"countryId\": \"1\",\n \"country\": \"US\",\n \"customerName\": \"Alice Smith\"\n },\n \"location\": {}\n },\n \"shipping\": {\n \"address\": {\n \"street\": \" 12 Street , 138\",\n \"city\": \"New York\",\n \"state\": \"CA\",\n \"country\": \"US\",\n \"zip\": \"123456\",\n \"customerName\": \"Alice Smith\"\n },\n \"method\": {\n \"id\": \"2\",\n \"name\": \"2 Day\"\n },\n \"status\": \"Initial\"\n },\n \"linePooling\": \"Host\"\n}\n"}],"x-error-codes":[{"httpCode":"403","errorCode":"CMN-401","message":"In order to call this API endpoint, application needs to have [EditAccounts] permission"},{"httpCode":"404","errorCode":"CMN-102","message":"Resource for parameter [accountId] is not found"}]}},"/restapi/v1.0/account/{accountId}/extension/{extensionId}/device":{"get":{"tags":["Devices"],"summary":"Get Extension Device List","description":"Returns devices of the extension(s) by their ID(s). Batch request is supported","operationId":"listExtensionDevices","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"linePooling","in":"query","description":"Pooling type of a device","schema":{"type":"string","enum":["Host","Guest","None"]}},{"name":"feature","in":"query","description":"Device feature or multiple features supported","schema":{"type":"string","enum":["Intercom","Paging","BLA","HELD"]}},{"name":"page","in":"query","description":"Number of a page to be returned","schema":{"type":"string","default":"1"}},{"name":"perPage","in":"query","description":"Number of records per page to be returned","schema":{"type":"string","default":"100"}}],"responses":{"default":{"description":"Success","content":{"application/json":{"schema":{"required":["navigation","paging","records"],"type":"object","properties":{"uri":{"type":"string","description":"Link to the list of extension devices"},"records":{"type":"array","description":"List of extension devices","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a device"},"uri":{"type":"string","description":"Canonical URI of a device"},"sku":{"type":"string","description":"Device identification number (stock keeping unit) in the format TP-ID [-AT-AC], where TP is device type (HP for RC HardPhone, DV for all other devices including softphone); ID - device model ID; AT -addon type ID; AC - addon count (if any). For example 'HP-56-2-2'"},"type":{"type":"string","description":"Device type","default":"HardPhone","enum":["SoftPhone","OtherPhone","HardPhone","Paging"]},"name":{"type":"string","description":"Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name "},"status":{"type":"string","description":"Device status","enum":["Offline","Online"]},"serial":{"type":"string","description":"Serial number for HardPhone (is returned only when the phone is shipped and provisioned); endpoint_id for softphone and mobile applications"},"computerName":{"type":"string","description":"PC name for softphone"},"model":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a HardPhone device model"},"name":{"type":"string","description":"Device name"},"addons":{"type":"array","description":"Addons description","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"count":{"type":"integer"}}}},"features":{"type":"array","description":"Device feature or multiple features supported","items":{"type":"string","enum":["BLA","CommonPhone","Intercom","Paging","HELD"]}},"lineCount":{"type":"integer","description":"Max supported count of phone lines"}},"description":"HardPhone model information"},"extension":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of an extension","format":"int64"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}},"description":"This attribute can be omitted for unassigned devices"},"emergencyServiceAddress":{"type":"object","properties":{"street":{"type":"string"},"street2":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"customerName":{"type":"string"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"additionalCustomerName":{"type":"string","description":"Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerEmail":{"type":"string","description":"Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia."},"additionalCustomerEmail":{"type":"string","description":"Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerPhone":{"type":"string","description":"Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia"},"additionalCustomerPhone":{"type":"string","description":"Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia."},"taxId":{"type":"string","description":"Internal identifier of a tax"}},"description":"Address for emergency cases. The same emergency address is assigned to all the numbers of one device"},"emergency":{"type":"object","properties":{"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a customer"},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"zip":{"type":"string","description":"Zip code"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"}}},"location":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of the emergency response location"},"name":{"type":"string","description":"Location name"}},"description":"Company emergency response location details"},"outOfCountry":{"type":"boolean","description":"Specifies if emergency address is out of country"},"addressStatus":{"type":"string","description":"Emergency address status","enum":["Valid","Invalid"]},"syncStatus":{"type":"string","description":"Resulting status of emergency address synchronization. Returned if `syncEmergencyAddress` parameter is set to 'True'","enum":["Verified","Updated","Deleted","NotRequired","Unsupported","Failed"]},"addressEditableStatus":{"type":"string","description":"Ability to register new emergency address for a phone line using devices sharing this line or only main device (line owner)","enum":["MainDevice","AnyDevice"]}},"description":"Device emergency settings"},"phoneLines":{"type":"array","description":"Phone lines information","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a phone line"},"lineType":{"type":"string","description":"Type of phone line","enum":["Standalone","StandaloneFree","BlaPrimary","BlaSecondary"]},"phoneInfo":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of a phone number","format":"int64"},"country":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a home country"},"uri":{"type":"string","description":"Canonical URI of a home country"},"name":{"type":"string","description":"Official name of a home country"}},"description":"Brief information on a phone number country"},"extension":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of an extension"},"uri":{"type":"string","description":"Canonical URI of an extension"},"extensionNumber":{"type":"string","description":"Number of extension"},"partnerId":{"type":"string","description":"For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension"}},"description":"Information on the extension, to which the phone number is assigned. Returned only for the request of Account phone number list"},"label":{"type":"string","description":"Custom user name of a phone number, if any"},"location":{"type":"string","description":"Location (City, State). Filled for local US numbers"},"paymentType":{"type":"string","description":"Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system","enum":["External","TollFree","Local"]},"phoneNumber":{"type":"string","description":"Phone number"},"status":{"type":"string","description":"Status of a phone number. If the value is 'Normal', the phone number is ready to be used. Otherwise it is an external number not yet ported to RingCentral"},"type":{"type":"string","description":"Phone number type","enum":["VoiceFax","FaxOnly","VoiceOnly"]},"usageType":{"type":"string","description":"Usage type of the phone number","enum":["MainCompanyNumber","AdditionalCompanyNumber","CompanyNumber","DirectNumber","CompanyFaxNumber","ForwardedNumber","ForwardedCompanyNumber","ContactCenterNumber"]}},"description":"Phone number information"},"emergencyAddress":{"type":"object","properties":{"required":{"type":"boolean","description":" 'True' if specifying of emergency address is required"},"localOnly":{"type":"boolean","description":" 'True' if only local emergency address can be specified"}}}}}},"shipping":{"type":"object","properties":{"status":{"type":"string","description":"Shipping status of the order item. It is set to 'Initial' when the order is submitted. Then it is changed to 'Accepted' when a distributor starts processing the order. Finally the status is changed to 'Shipped' which means that distributor shipped the device.","enum":["Initial","Accepted","Shipped","Won't ship"]},"carrier":{"type":"string","description":"Shipping carrier name. Appears only if the device status is 'Shipped'"},"trackingNumber":{"type":"string","description":"Carrier-specific tracking number. Appears only if the device status is 'Shipped'"},"method":{"type":"object","properties":{"id":{"type":"string","description":"Method identifier. The default value is 1 (Ground)","enum":["1","2","3"]},"name":{"type":"string","description":"Method name, corresponding to the identifier","enum":["Ground","2 Day","Overnight"]}},"description":"Shipping method information"},"address":{"type":"object","properties":{"customerName":{"type":"string","description":"Name of a primary contact person (receiver)"},"additionalCustomerName":{"type":"string","description":"Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerEmail":{"type":"string","description":"Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia."},"additionalCustomerEmail":{"type":"string","description":"Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia."},"customerPhone":{"type":"string","description":"Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia"},"additionalCustomerPhone":{"type":"string","description":"Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia."},"street":{"type":"string","description":"Street address, line 1 - street address, P.O. box, company name, c/o"},"street2":{"type":"string","description":"Street address, line 2 - apartment, suite, unit, building, floor, etc."},"city":{"type":"string","description":"City name"},"state":{"type":"string","description":"State/province name"},"stateId":{"type":"string","description":"Internal identifier of a state"},"stateIsoCode":{"type":"string","description":"ISO code of a state"},"stateName":{"type":"string","description":"Full name of a state"},"countryId":{"type":"string","description":"Internal identifier of a country"},"countryIsoCode":{"type":"string","description":"ISO code of a country"},"country":{"type":"string","description":"Country name"},"countryName":{"type":"string","description":"Full name of a country"},"zip":{"type":"string","description":"Zip code"},"taxId":{"type":"string","description":"National taxpayer identification number. Should be specified for Brazil (CNPJ/CPF number) and Argentina (CUIT number)."}},"description":"Shipping address for the order. If it coincides with the Emergency Service Address, then can be omitted. By default the same value as the emergencyServiceAddress. Multiple addresses can be specified; in case the order contains several devices, they can be delivered to different addresses"}},"description":"Shipping information, according to which devices (in case of HardPhone ) or e911 stickers (in case of SoftPhone and OtherPhone ) will be delivered to the customer"},"boxBillingId":{"type":"integer","description":"Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone"},"useAsCommonPhone":{"type":"boolean","description":"Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone."},"linePooling":{"type":"string","description":"Pooling type of a deviceHost - device with standalone paid phone line which can be linked to Glip/Softphone instanceGuest - device with a linked phone lineNone - device without a phone line or with specific line (free, BLA, etc.) = ['Host', 'Guest', 'None']","enum":["Host","Guest","None"]},"inCompanyNet":{"type":"boolean","description":"Network location status. 'True' if the device is located in the configured corporate network (On-Net); 'False' for Off-Net location. Parameter is not returned if `EmergencyAddressAutoUpdate` feature is not enabled for the account/user, or if device network location is not determined"},"site":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a site"},"name":{"type":"string","description":"Name of a site"}},"description":"Site data"},"lastLocationReportTime":{"type":"string","description":"Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z"}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}},"description":"Information on navigation"},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}},"description":"Information on paging"}}}}}}},"x-api-group":"extension/device","x-throttling-group":"Light","x-metered-api":true,"x-metering-group":"System","x-app-permission":"ReadAccounts","x-user-permission":"ReadUserDevices","x-feature":"ReadExtensionDevices","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET /restapi/v1.0/account/403309665008/extension/1508193004,1508191004/device\n","response":"HTTP 207 \n\n--Boundary_3_1198574192_1484737481252\nContent-Type: application/json\n\n{\n \"response\" : [ {\n \"href\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004/device?page=1&perPage=1\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n }, {\n \"href\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508191004/device?page=1&perPage=2\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n } ]\n}\n--Boundary_3_1198574192_1484737481252\nContent-Type: application/json\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004/device?page=1&perPage=1\",\n \"records\" : [ {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/device/228113004\",\n \"id\" : \"228113004\",\n \"type\" : \"HardPhone\",\n \"sku\" : \"HP-37\",\n \"model\" : {\n \"id\" : \"37\",\n \"name\" : \"Polycom IP 6000 Conference Phone\",\n \"lineCount\" : 2,\n \"addons\" : [ ],\n \"features\" : [ ]\n },\n \"name\" : \"Polycom IP 6000 Conference Phone\",\n \"status\" : \"Offline\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004\",\n \"id\" : 1508193004,\n \"extensionNumber\" : \"102\"\n },\n \"phoneLines\" : [ {\n \"id\" : \"110491004\",\n \"lineType\" : \"Standalone\",\n \"emergencyAddress\" : {\n \"required\" : true,\n \"localOnly\" : false\n },\n \"phoneInfo\" : {\n \"id\" : 1445481004,\n \"phoneNumber\" : \"+12028320504\",\n \"paymentType\" : \"Local\",\n \"type\" : \"VoiceFax\",\n \"usageType\" : \"DirectNumber\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\",\n \"name\" : \"United States\"\n }\n }\n } ],\n \"emergency\" : {\n \"address\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\"\n },\n \"outOfCountry\" : false,\n \"addressStatus\" : \"Valid\"\n },\n \"emergencyServiceAddress\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\",\n \"outOfCountry\" : false\n },\n \"shipping\" : {\n \"address\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\"\n },\n \"method\" : {\n \"id\" : \"2\",\n \"name\" : \"2 Day\"\n },\n \"status\" : \"Initial\"\n },\n \"linePooling\" : \"Host\"\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 1,\n \"perPage\" : 1,\n \"totalElements\" : 1,\n \"pageStart\" : 0,\n \"pageEnd\" : 0\n },\n \"navigation\" : {\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004/device?page=1&perPage=1\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004/device?page=1&perPage=1\"\n }\n }\n}\n--Boundary_1_2099037130_1583408367977\nContent-Type: application/json\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508191004/device?page=1&perPage=2\",\n \"records\" : [ {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/device/228110004\",\n \"id\" : \"228110004\",\n \"type\" : \"HardPhone\",\n \"sku\" : \"HP-37\",\n \"model\" : {\n \"id\" : \"37\",\n \"name\" : \"Polycom IP 6000 Conference Phone\",\n \"lineCount\" : 2,\n \"addons\" : [ ],\n \"features\" : [ ]\n },\n \"name\" : \"Polycom IP 6000 Conference Phone\",\n \"status\" : \"Offline\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508191004\",\n \"id\" : 1508191004,\n \"extensionNumber\" : \"101\"\n },\n \"phoneLines\" : [ {\n \"id\" : \"110489004\",\n \"lineType\" : \"Standalone\",\n \"emergencyAddress\" : {\n \"required\" : true,\n \"localOnly\" : false\n },\n \"phoneInfo\" : {\n \"id\" : 1445479004,\n \"phoneNumber\" : \"+12513440557\",\n \"paymentType\" : \"Local\",\n \"type\" : \"VoiceFax\",\n \"usageType\" : \"DirectNumber\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\",\n \"name\" : \"United States\"\n }\n }\n } ],\n \"emergency\" : {\n \"address\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\"\n },\n \"outOfCountry\" : false,\n \"addressStatus\" : \"Valid\"\n },\n \"emergencyServiceAddress\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\",\n \"outOfCountry\" : false\n },\n \"shipping\" : {\n \"address\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\"\n },\n \"method\" : {\n \"id\" : \"2\",\n \"name\" : \"2 Day\"\n },\n \"status\" : \"Initial\"\n },\n \"linePooling\" : \"Host\"\n }, {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/device/228111004\",\n \"id\" : \"228111004\",\n \"type\" : \"HardPhone\",\n \"sku\" : \"HP-37\",\n \"model\" : {\n \"id\" : \"37\",\n \"name\" : \"Polycom IP 6000 Conference Phone\",\n \"lineCount\" : 2,\n \"addons\" : [ ],\n \"features\" : [ ]\n },\n \"name\" : \"Polycom IP 6000 Conference Phone\",\n \"status\" : \"Offline\",\n \"extension\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508191004\",\n \"id\" : 1508191004,\n \"extensionNumber\" : \"101\"\n },\n \"phoneLines\" : [ {\n \"id\" : \"110490004\",\n \"lineType\" : \"Standalone\",\n \"emergencyAddress\" : {\n \"required\" : true,\n \"localOnly\" : false\n },\n \"phoneInfo\" : {\n \"id\" : 1445480004,\n \"phoneNumber\" : \"+12513440565\",\n \"paymentType\" : \"Local\",\n \"type\" : \"VoiceFax\",\n \"usageType\" : \"DirectNumber\",\n \"country\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/dictionary/country/1\",\n \"id\" : \"1\",\n \"name\" : \"United States\"\n }\n }\n } ],\n \"emergency\" : {\n \"address\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\"\n },\n \"outOfCountry\" : false,\n \"addressStatus\" : \"Valid\"\n },\n \"emergencyServiceAddress\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\",\n \"outOfCountry\" : false\n },\n \"shipping\" : {\n \"address\" : {\n \"street\" : \"20 Davis Drive\",\n \"city\" : \"Belmont\",\n \"state\" : \"CA\",\n \"stateId\" : \"16\",\n \"stateIsoCode\" : \"CA\",\n \"stateName\" : \"California\",\n \"country\" : \"US\",\n \"countryId\" : \"1\",\n \"countryIsoCode\" : \"US\",\n \"countryName\" : \"United States\",\n \"zip\" : \"123456\",\n \"customerName\" : \"Dr. Watson\"\n },\n \"method\" : {\n \"id\" : \"2\",\n \"name\" : \"2 Day\"\n },\n \"status\" : \"Initial\"\n },\n \"linePooling\" : \"Host\"\n } ],\n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 1,\n \"perPage\" : 2,\n \"totalElements\" : 2,\n \"pageStart\" : 0,\n \"pageEnd\" : 1\n },\n \"navigation\" : {\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004,1508191004/device?page=1&perPage=100\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/1508191004/extension/1508193004,1508191004/device?page=1&perPage=100\"\n }\n }\n}\n\n"}],"x-error-codes":[{"httpCode":"400","errorCode":"CMN-101","message":"Parameter [perPage] value is invalid."},{"httpCode":"401","errorCode":"CMN-405","message":"Login to extension required"},{"httpCode":"401","errorCode":"OAU-151","message":"Authorization method not supported"}]}},"/scim/health":{"get":{"tags":["SCIM"],"summary":"Check Health","operationId":"checkHealth","responses":{"200":{"description":"healthy","content":{}}},"x-api-group":"scim/Health","x-auth-required":false,"x-throttling-group":"NoThrottling","x-docs-level":"Public","x-availability":"High","x-error-codes":null}},"/scim/v2/health":{"get":{"tags":["SCIM"],"summary":"Check Health","operationId":"checkHealth2","responses":{"200":{"description":"healthy","content":{}}},"x-api-group":"scim/Health","x-auth-required":false,"x-throttling-group":"NoThrottling","x-docs-level":"Public","x-availability":"High","x-error-codes":null}},"/scim/v2/ServiceProviderConfig":{"get":{"tags":["SCIM"],"summary":"Get Service Provider Config","operationId":"readServiceProviderConfig2","responses":{"200":{"description":"Service Provider Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"documentationUri":{"type":"string"},"name":{"type":"string"},"specUri":{"type":"string"},"primary":{"type":"boolean"}}}},"bulk":{"type":"object","properties":{"maxOperations":{"type":"integer","format":"int32"},"maxPayloadSize":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"etag":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"filter":{"type":"object","properties":{"maxResults":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"patch":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"]}},"sort":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"xmlDataFormat":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}}}}},"application/scim+json":{"schema":{"type":"object","properties":{"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"documentationUri":{"type":"string"},"name":{"type":"string"},"specUri":{"type":"string"},"primary":{"type":"boolean"}}}},"bulk":{"type":"object","properties":{"maxOperations":{"type":"integer","format":"int32"},"maxPayloadSize":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"etag":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"filter":{"type":"object","properties":{"maxResults":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"patch":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"]}},"sort":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"xmlDataFormat":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}}}}}}}},"x-api-group":"scim/ServiceProviderConfig","x-auth-required":false,"x-throttling-group":"NoThrottling","x-docs-level":"Public","x-availability":"High","x-error-codes":null}},"/scim/ServiceProviderConfig":{"get":{"tags":["SCIM"],"summary":"Get Service Provider Config","operationId":"readServiceProviderConfig","responses":{"200":{"description":"Service Provider Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"documentationUri":{"type":"string"},"name":{"type":"string"},"specUri":{"type":"string"},"primary":{"type":"boolean"}}}},"bulk":{"type":"object","properties":{"maxOperations":{"type":"integer","format":"int32"},"maxPayloadSize":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"etag":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"filter":{"type":"object","properties":{"maxResults":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"patch":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"]}},"sort":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"xmlDataFormat":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}}}}},"application/scim+json":{"schema":{"type":"object","properties":{"authenticationSchemes":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"documentationUri":{"type":"string"},"name":{"type":"string"},"specUri":{"type":"string"},"primary":{"type":"boolean"}}}},"bulk":{"type":"object","properties":{"maxOperations":{"type":"integer","format":"int32"},"maxPayloadSize":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"changePassword":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"etag":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"filter":{"type":"object","properties":{"maxResults":{"type":"integer","format":"int32"},"supported":{"type":"boolean","default":false}}},"patch":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"]}},"sort":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}},"xmlDataFormat":{"type":"object","properties":{"supported":{"type":"boolean","default":false}}}}}}}}},"x-api-group":"scim/ServiceProviderConfig","x-auth-required":false,"x-throttling-group":"NoThrottling","x-docs-level":"Public","x-availability":"High","x-error-codes":null}},"/scim/v2/Users":{"get":{"tags":["SCIM"],"summary":"Search/List Users","operationId":"searchViaGet2","parameters":[{"name":"filter","in":"query","description":"only support 'userName' or 'email' filter expressions for now","schema":{"type":"string"}},{"name":"startIndex","in":"query","description":"start index (1-based)","schema":{"type":"integer","format":"int32","default":1}},{"name":"count","in":"query","description":"page size","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","description":"user list","items":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"itemsPerPage":{"type":"integer","format":"int64"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"startIndex":{"type":"integer","format":"int64"},"totalResults":{"type":"integer","format":"int64"}}}},"application/scim+json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","description":"user list","items":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"itemsPerPage":{"type":"integer","format":"int64"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"startIndex":{"type":"integer","format":"int64"},"totalResults":{"type":"integer","format":"int64"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"ReadAccounts","x-throttling-group":"Light","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET scim/v2/Users?filter=&startIndex=1&count=3\n","response":"HTTP/1.1 200 OK\n\n{\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:ListResponse\"\n ],\n \"totalResults\": 10,\n \"startIndex\": 1,\n \"itemsPerPage\": 3,\n \"Resources\": [\n {\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"id\": \"1271136020\",\n \"externalId\": \"ABCDEF-xxxcdf2\",\n \"meta\": {\n \"resourceType\": \"User\",\n \"created\": \"2017-07-12T21:05:55.551Z\",\n \"lastModified\": \"2017-07-12T21:05:55.551Z\",\n \"location\": \"http://scim.ringcentral.com/scim/v2/Users/1271136020\"\n },\n \"userName\": \"john6.doe@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Doe\",\n \"givenName\": \"John6\"\n },\n \"active\": false,\n \"emails\": [\n {\n \"value\": \"john6.doe@mycompany.com\",\n \"type\": \"work\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"value\": \"+16509186800\",\n \"type\": \"work\"\n },\n {\n \"value\": \"146\",\n \"type\": \"other\"\n }\n ],\n \"addresses\": [\n {\n \"streetAddress\": \"1400 Fashion Island Blvd, 7th Floor\",\n \"locality\": \"San Mateo\",\n \"region\": \"CA\",\n \"postalCode\": \"94404\",\n \"country\": \"United States\",\n \"type\": \"work\"\n }\n ]\n },\n {\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"id\": \"1405111020\",\n \"externalId\": \"Lisa.Greene@acme.com\",\n \"meta\": {\n \"resourceType\": \"User\",\n \"created\": \"2017-07-12T21:05:55.727Z\",\n \"lastModified\": \"2017-07-12T21:05:55.727Z\",\n \"location\": \"http://scim.ringcentral.com/scim/v2/Users/1405111020\"\n },\n \"userName\": \"Lisa.Greene@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Greene\",\n \"givenName\": \"Lisa\"\n },\n \"active\": false,\n \"emails\": [\n {\n \"value\": \"Lisa.Greene@mycompany.example.com\",\n \"type\": \"work\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"value\": \"+16504899244\",\n \"type\": \"work\"\n },\n {\n \"value\": \"143\",\n \"type\": \"other\"\n }\n ],\n \"addresses\": []\n },\n {\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"id\": \"1427379020\",\n \"meta\": {\n \"resourceType\": \"User\",\n \"created\": \"2017-07-12T21:05:55.778Z\",\n \"lastModified\": \"2017-07-12T21:05:55.778Z\",\n \"location\": \"http://scim.ringcentral.com/scim/v2/Users/1427379020\"\n },\n \"userName\": \"Sonya.Anderson@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Anderson\",\n \"givenName\": \"Sonya\"\n },\n \"active\": true,\n \"emails\": [\n {\n \"value\": \"Sonya.Anderson@mycompany.example.com\",\n \"type\": \"work\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"value\": \"167\",\n \"type\": \"other\"\n }\n ],\n \"addresses\": []\n }\n ]\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-129","message":"Access token corrupted"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]},"post":{"tags":["SCIM"],"summary":"Create User","operationId":"createUser2","requestBody":{"description":"a new user without 'id'","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"User status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"User status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"}}}}},"required":false},"responses":{"201":{"description":"successfully created user","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"404":{"description":"not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"409":{"description":"duplicate email","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"EditAccounts","x-throttling-group":"Heavy","x-request-max-body-size":"10m","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /scim/v2/Users\n\n{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\n ],\n \"externalId\": \"701985\",\n \"userName\": \"Jim.Bean@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Bean\",\n \"givenName\": \"Jim\"\n },\n \"emails\": [\n {\n \"type\": \"work\",\n \"value\": \"Jim.Bean@mycompany.example.com\"\n }\n ],\n \"addresses\": [\n {\n \"type\": \"work\",\n \"streetAddress\": \"100 Universal City Plaza\",\n \"locality\": \"Hollywood\",\n \"region\": \"CA\",\n \"postalCode\": \"91608\",\n \"country\": \"US\"\n }\n ],\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\n \"department\": \"Sales\"\n }\n}\n","response":"HTTP/1.1 201 OK\n\n{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\",\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\"\n ],\n \"id\": \"1271140020\",\n \"externalId\": \"701985\",\n \"meta\": {\n \"resourceType\": \"User\",\n \"created\": \"2017-02-14T18:29:01.194Z\",\n \"lastModified\": \"2017-02-14T18:29:01.194Z\",\n \"location\": \"http://scim.ringcentral.com/scim/v2/Users/1271140020\"\n },\n \"userName\": \"Jim.Bean@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Bean\",\n \"givenName\": \"Jim\"\n },\n \"active\": false,\n \"emails\": [\n {\n \"primary\": false,\n \"value\": \"Jim.Bean@mycompany.example.com\",\n \"type\": \"work\"\n }\n ],\n \"phoneNumbers\": [],\n \"addresses\": [\n {\n \"primary\": false,\n \"streetAddress\": \"100 Universal City Plaza\",\n \"locality\": \"Hollywood\",\n \"region\": \"CA\",\n \"postalCode\": \"91608\",\n \"country\": \"United States\",\n \"type\": \"work\"\n }\n ],\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\n \"department\": \"Sales\"\n }\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]}},"/scim/Users":{"get":{"tags":["SCIM"],"summary":"Search/List Users","operationId":"searchViaGet","parameters":[{"name":"filter","in":"query","description":"only support 'userName' or 'email' filter expressions for now","schema":{"type":"string"}},{"name":"startIndex","in":"query","description":"start index (1-based)","schema":{"type":"integer","format":"int32","default":1}},{"name":"count","in":"query","description":"page size","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","description":"user list","items":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"itemsPerPage":{"type":"integer","format":"int64"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"startIndex":{"type":"integer","format":"int64"},"totalResults":{"type":"integer","format":"int64"}}}},"application/scim+json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","description":"user list","items":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"itemsPerPage":{"type":"integer","format":"int64"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"startIndex":{"type":"integer","format":"int64"},"totalResults":{"type":"integer","format":"int64"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"ReadAccounts","x-throttling-group":"Light","x-docs-level":"Public","x-availability":"High","x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]},"post":{"tags":["SCIM"],"summary":"Create User","operationId":"createUser","requestBody":{"description":"New user without ID","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"User status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"User status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"}}}}},"required":false},"responses":{"201":{"description":"successfully created user","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"404":{"description":"not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"409":{"description":"duplicate email","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"EditAccounts","x-throttling-group":"Heavy","x-request-max-body-size":"10m","x-docs-level":"Public","x-codegen-request-body-name":"body","x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/scim/v2/Users/.search":{"post":{"tags":["SCIM"],"summary":"Search/List Users","operationId":"searchViaPost2","requestBody":{"description":"search parameters","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"page size","format":"int32"},"filter":{"type":"string","description":"only support 'userName' or 'email' filter expressions for now"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:SearchRequest"]}},"startIndex":{"type":"integer","description":"start index (1-based)","format":"int32"}}}},"application/scim+json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"page size","format":"int32"},"filter":{"type":"string","description":"only support 'userName' or 'email' filter expressions for now"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:SearchRequest"]}},"startIndex":{"type":"integer","description":"start index (1-based)","format":"int32"}}}}},"required":false},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","description":"user list","items":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"itemsPerPage":{"type":"integer","format":"int64"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"startIndex":{"type":"integer","format":"int64"},"totalResults":{"type":"integer","format":"int64"}}}},"application/scim+json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","description":"user list","items":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"itemsPerPage":{"type":"integer","format":"int64"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:ListResponse"]}},"startIndex":{"type":"integer","format":"int64"},"totalResults":{"type":"integer","format":"int64"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"ReadAccounts","x-throttling-group":"Light","x-docs-level":"Public","x-availability":"High","x-codegen-request-body-name":"body","x-error-codes":[{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"}]}},"/scim/v2/Users/{id}":{"get":{"tags":["SCIM"],"summary":"Get User","operationId":"readUser2","parameters":[{"name":"id","in":"path","description":"user id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"404":{"description":"not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"ReadAccounts","x-throttling-group":"Light","x-docs-level":"Public","x-availability":"High","x-http-examples":[{"request":"GET scim/v2/Users/1271140020\n","response":"HTTP/1.1 200 OK\n\n{\n \"schemas\" : [ \"urn:ietf:params:scim:schemas:core:2.0:User\", \n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\" ],\n \"id\" : \"1271140020\",\n \"externalId\" : \"701985\",\n \"meta\" : {\n \"resourceType\" : \"User\",\n \"created\" : \"2017-02-14T18:29:01.194Z\",\n \"lastModified\" : \"2017-02-14T18:29:01.194Z\",\n \"location\" : \"http://scim.ringcentral.com/scim/v2/Users/1271140020\"\n },\n \"userName\" : \"Jim.Bean@mycompany.example.com\",\n \"name\" : {\n \"familyName\" : \"Bean\",\n \"givenName\" : \"Jim\"\n },\n \"active\" : false,\n \"emails\" : [ {\n \"primary\" : false,\n \"value\" : \"Jim.Bean@mycompany.example.com\",\n \"type\" : \"work\"\n } ],\n \"phoneNumbers\" : [ ],\n \"addresses\" : [ {\n \"primary\" : false,\n \"streetAddress\" : \"100 Universal City Plaza\",\n \"locality\" : \"Hollywood\",\n \"region\" : \"CA\",\n \"postalCode\" : \"91608\",\n \"country\" : \"United States\",\n \"type\" : \"work\"\n } ],\n \"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\" : {\n \"department\" : \"Sales\"\n }\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]},"put":{"tags":["SCIM"],"summary":"Update/Replace User","operationId":"replaceUser2","parameters":[{"name":"id","in":"path","description":"user id","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"an existing user","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"}}}}},"required":false},"responses":{"200":{"description":"successfully fully updated a user","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"404":{"description":"not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"409":{"description":"duplicate email","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"EditAccounts","x-throttling-group":"Heavy","x-request-max-body-size":"10m","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT scim/v2/Users/1271136020\n\n{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"jeremy.doe@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Doe\",\n \"givenName\": \"Jeremy\"\n },\n \"active\": false,\n \"emails\": [\n {\n \"value\": \"jeremy.doe@mycompany.example.com\",\n \"type\": \"work\"\n }\n ],\n \"addresses\": [\n {\n \"streetAddress\": \"900 Main St\",\n \"locality\": \"Belmont\",\n \"region\": \"CA\",\n \"postalCode\": \"94002\",\n \"country\": \"United States\",\n \"type\": \"work\"\n }\n ]\n}\n","response":"HTTP/1.1 200 OK\n\n{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"id\": \"1271136020\",\n \"meta\": {\n \"resourceType\": \"User\",\n \"created\": \"2017-07-12T21:16:32.262Z\",\n \"lastModified\": \"2017-07-12T21:16:32.262Z\",\n \"location\": \"http://scim.ringcentral.com/scim/v2/Users/1271136020\"\n },\n \"userName\": \"jeremy.doe@mycompany.example.com\",\n \"name\": {\n \"familyName\": \"Doe\",\n \"givenName\": \"Jeremy\"\n },\n \"active\": false,\n \"emails\": [\n {\n \"value\": \"jeremy.doe@mycompany.example.com\",\n \"type\": \"work\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"value\": \"146\",\n \"type\": \"other\"\n }\n ],\n \"addresses\": [\n {\n \"streetAddress\": \"900 Main St\",\n \"locality\": \"Belmont\",\n \"region\": \"CA\",\n \"postalCode\": \"94002\",\n \"country\": \"United States\",\n \"type\": \"work\"\n }\n ]\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]},"delete":{"tags":["SCIM"],"summary":"Delete User","operationId":"deleteUser2","parameters":[{"name":"id","in":"path","description":"user id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"successfully deleted","content":{}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"404":{"description":"not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"EditAccounts","x-throttling-group":"Heavy","x-docs-level":"Public","x-http-examples":[{"request":"DELETE scim/v2/Users/16278940 \n","response":"HTTP/1.1 204 No Content\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]},"patch":{"tags":["SCIM"],"summary":"Update/Patch User","operationId":"patchUser2","parameters":[{"name":"id","in":"path","description":"user id","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"patch operations list","content":{"application/json":{"schema":{"required":["Operations","schemas"],"type":"object","properties":{"Operations":{"type":"array","description":"patch operations list","items":{"required":["op"],"type":"object","properties":{"op":{"type":"string","enum":["add","replace","remove"]},"path":{"type":"string"},"value":{"type":"string","description":"corresponding 'value' of that field specified by 'path'"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:PatchOp"]}}}}},"application/scim+json":{"schema":{"required":["Operations","schemas"],"type":"object","properties":{"Operations":{"type":"array","description":"patch operations list","items":{"required":["op"],"type":"object","properties":{"op":{"type":"string","enum":["add","replace","remove"]},"path":{"type":"string"},"value":{"type":"string","description":"corresponding 'value' of that field specified by 'path'"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:PatchOp"]}}}}}},"required":false},"responses":{"200":{"description":"successfully partially updated user","content":{"application/json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}},"application/scim+json":{"schema":{"required":["emails","name","schemas","userName"],"type":"object","properties":{"active":{"type":"boolean","description":"user status","default":false},"addresses":{"type":"array","items":{"required":["type"],"type":"object","properties":{"country":{"type":"string"},"locality":{"type":"string"},"postalCode":{"type":"string"},"region":{"type":"string"},"streetAddress":{"type":"string"},"type":{"type":"string","enum":["work"]}}}},"emails":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work"]},"value":{"type":"string"}}}},"externalId":{"type":"string","description":"external unique resource id defined by provisioning client"},"id":{"type":"string","description":"unique resource id defined by RingCentral"},"name":{"required":["familyName","givenName"],"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}}},"phoneNumbers":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["work","mobile","other"]},"value":{"type":"string"}}}},"photos":{"type":"array","items":{"required":["type","value"],"type":"object","properties":{"type":{"type":"string","enum":["photo"]},"value":{"type":"string"}}}},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:schemas:core:2.0:User"]}},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"type":"object","properties":{"department":{"type":"string"}}},"userName":{"type":"string","description":"MUST be same as work type email address"},"meta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"location":{"type":"string","description":"resource location URI"},"resourceType":{"type":"string","enum":["User","Group"]}},"description":"resource metadata"}}}}}},"400":{"description":"bad request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"401":{"description":"authorization failure","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"403":{"description":"permissions denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"404":{"description":"not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"409":{"description":"duplicate email","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"429":{"description":"too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}},"500":{"description":"internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}},"application/scim+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"detail error message"},"schemas":{"type":"array","items":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"]}},"scimType":{"type":"string","description":"bad request type when status code is 400","enum":["uniqueness","tooMany","mutability","sensitive","invalidSyntax","invalidFilter","invalidPath","invalidValue","invalidVers","noTarget"]},"status":{"type":"string","description":"same as HTTP status code, e.g. 400, 401, etc."}}}}}}},"x-api-group":"scim/Users","x-app-permission":"EditAccounts","x-throttling-group":"Heavy","x-request-max-body-size":"10m","x-docs-level":"Public","x-codegen-request-body-name":"body","x-error-codes":[{"httpCode":"401","errorCode":"OAU-149","message":"Invalid token"},{"httpCode":"429","errorCode":"CMN-301","message":"Request rate exceeded"}]}},"/restapi/v1.0/account/{accountId}/telephony/call-out":{"post":{"tags":["Call Control"],"summary":"Make CallOut","description":"Creates a new outbound call out session. Currently this method is supported for Softphone/Hardphone only, since device IDs for WebRTC/Mobile apps cannot be obtained.","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Sessions/op_session_add_CallOut"},"operationId":"createCallOutCallSession","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["from","to"],"type":"object","properties":{"from":{"type":"object","properties":{"deviceId":{"type":"string","description":"Internal identifier of a device","example":"59474004"}},"description":"Instance id of the caller. It corresponds to the 1st leg of the CallOut call."},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number in E.164 format","example":16502223366},"extensionNumber":{"type":"string","description":"Extension number","example":"103"}},"description":"Phone number of the called party. This number corresponds to the 2nd leg of a CallOut call"}}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call session"},"origin":{"type":"object","properties":{"type":{"type":"string","description":"Session origin type","enum":["Call","RingOut","RingMe","Conference","GreetingsRecording","VerificationCall","Zoom","CallOut"]}},"description":"Session origin details"},"voiceCallToken":{"type":"string","description":"For calls of 'Conference' type only"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}},"creationTime":{"type":"string","description":"Date and time of the latest session update represented in Unix time format"}},"description":"Call session information"}}}}}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-beta-api":true,"x-api-group":"telephony/call-out","x-throttling-group":"Heavy","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-failover-strategy":"Hardening","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/call-out","x-rewrite-uri-to":"/telephony/v1/account/$1/call-out","x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/call-out\n\n{\n \"from\": {\n \"deviceId\": \"803469127021\"\n },\n \"to\": {\n \"phoneNumber\": \"+79817891689\"\n }\n}\n","response":"HTTP 201 Created\n\n {\n \"session\": {\n \"creationTime\": \"2019-08-19T11:42:21Z\",\n \"id\": \"s-54a38392c79849dab4a25fe8040edd53\",\n \"origin\": {\n \"type\": \"Call\"\n },\n \"parties\": [\n {\n \"direction\": \"Outbound\",\n \"from\": {\n \"deviceId\": \"803469127021\",\n \"extensionId\": \"297277020\",\n \"name\": \"John Smith\",\n \"phoneNumber\": \"+18885287464\"\n },\n \"id\": \"p-54a38392c79849dab4a25fe8040edd53-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"37439510\",\n \"extensionId\": \"297277020\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Setup\"\n },\n \"to\": {\n \"phoneNumber\": \"+79817891689\"\n }\n }\n ]\n }\n}\n\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/conference":{"post":{"tags":["Call Control"],"summary":"Start Conference Call Session","description":"Initiates a conference call session.","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Sessions/op_session_add_Conference"},"operationId":"createConferenceCallSession","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call session"},"origin":{"type":"object","properties":{"type":{"type":"string","description":"Session origin type","enum":["Call","RingOut","RingMe","Conference","GreetingsRecording","VerificationCall","Zoom","CallOut"]}},"description":"Session origin details"},"voiceCallToken":{"type":"string","description":"For calls of 'Conference' type only"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}},"creationTime":{"type":"string","description":"Date and time of the latest session update represented in Unix time format"}},"description":"Call session information"}}}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/conference","x-throttling-group":"Heavy","x-internal-api":false,"x-app-permission":"TelephonySessions","x-failover-strategy":"Hardening","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/conference","x-rewrite-uri-to":"/telephony/v1/account/$1/conference","x-docs-level":"Public","x-beta-api":true,"x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/conference\n","response":"HTTP 201 Created\n{\n \"session\": {\n \"creationTime\": \"2020-10-08T07:35:19Z\",\n \"id\": \"s-aa5647de93294f039a9828ba103f115b\",\n \"origin\": {\n \"type\": \"Conference\"\n },\n \"parties\": [],\n \"voiceCallToken\": \"conf_732d61613536343764653933323934663033396139383238626131303366313135624031302e31342e3132332e31333a35303730\"\n }\n}\n\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}":{"get":{"tags":["Call Control"],"summary":"Get Call Session Status","description":"Returns the status of a call session by ID.","operationId":"readCallSessionStatus","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"timestamp","in":"query","description":"The date and time of a call session latest change","schema":{"type":"string"}},{"name":"timeout","in":"query","description":"The time frame of awaiting for a status change before sending the resulting one in response","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call session"},"origin":{"type":"object","properties":{"type":{"type":"string","description":"Session origin type","enum":["Call","RingOut","RingMe","Conference","GreetingsRecording","VerificationCall","Zoom","CallOut"]}},"description":"Session origin details"},"voiceCallToken":{"type":"string","description":"For calls of 'Conference' type only"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}},"creationTime":{"type":"string","description":"Date and time of the latest session update represented in Unix time format"}},"description":"Call session information"}}}}}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2","x-beta-api":false,"x-http-examples":[{"request":"GET /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2NzgxNTM2MTY1NDhAMTAuNjIuMS4zMA\n","response":"HTTP 200 OK\n{\n \"creationTime\": \"2018-08-01T13:36:09Z\",\n \"id\": \"Y3MxNzE4MzU2NzgxNTM2MTY1NDhAMTAuNjIuMS4zMA\",\n \"origin\": {\n \"type\": \"Call\"\n },\n \"parties\": [\n {\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"400415045004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"+18882101932\"\n },\n \"id\": \"cs171835678153616548-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"400415035004\",\n \"extensionId\": \"400415045004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\"\n },\n \"to\": {\n \"extensionId\": \"400415042004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"102\"\n }\n },\n {\n \"direction\": \"Inbound\",\n \"from\": {\n \"extensionId\": \"400415045004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n },\n \"id\": \"cs171835678153616548-2\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"400415035004\",\n \"extensionId\": \"400415042004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\"\n },\n \"to\": {\n \"extensionId\": \"400415042004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"102\"\n }\n }\n ]\n}\n"}],"x-error-codes":null},"delete":{"tags":["Call Control"],"summary":"Drop Call Session","description":"Drops a call session.","operationId":"deleteCallSession","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2","x-beta-api":false,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/hold":{"post":{"tags":["Call Control"],"summary":"Hold Call Party","description":"Puts the party to stand-alone mode and starts to play Hold Music according to configuration & state to peers. There is a known limitation for Hold API - hold via REST API doesn't work with hold placed via RingCentral apps or HardPhone. It means that if you muted participant via Call Control API and RingCentral Desktop app, then you need to unhold both endpoints to remove Hold Music and bring media back.","operationId":"holdCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/hold","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/hold","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/hold","x-beta-api":false,"x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4NDM0MTg2NTIyNjQ0M0AxMC42Mi4zMS45MA/parties/cs17184341865226443-1/hold\n","response":"HTTP 200 OK\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"cs17184341865226443-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Hold\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n }\n}\n"},{"request":"POST /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4NDM0MTg2NTIyNjQ0M0AxMC42Mi4zMS45MA/parties/cs17184341865226443-1/hold\n","response":"HTTP 200 OK\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"cs17184341865226443-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Hold\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/unhold":{"post":{"tags":["Call Control"],"summary":"Unhold Call Party","description":"Brings a party back into a call and stops to play Hold Music. There is a known limitation for Hold API - hold via REST API doesn't work with hold placed via RingCentral apps or HardPhone. It means that if you muted participant via Call Control API and RingCentral Desktop app, then you need to unhold both endpoints to remove Hold Music and bring media back.","externalDocs":{"description":"Find more info about response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Parties/op_party_unhold"},"operationId":"unholdCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/unhold","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/unhold","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/unhold","x-beta-api":false,"x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4NDM0MTg2NTIyNjQ0M0AxMC42Mi4zMS45MA/parties/cs17184341865226443-1/unhold\n","response":"HTTP 200 OK\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"cs17184341865226443-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/reject":{"post":{"tags":["Call Control"],"summary":"Reject Call Party","description":"Rejects an inbound call in a \"Setup\" or \"Proceeding\" state","operationId":"rejectParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/reject","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/reject","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/reject","x-beta-api":false,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/ignore":{"post":{"tags":["Call Control"],"summary":"Ignore Call in Queue","description":"Ignores a call to a call queue agent in `Setup` or `Proceeding` state.","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+19.2#/Parties/op_party_ignore"},"operationId":"ignoreCallInQueue","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["deviceId"],"type":"object","properties":{"deviceId":{"type":"string","description":"Internal device identifier","example":"400020454008"}}}}},"required":true},"responses":{"204":{"description":"No Content","content":{}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}}},"x-beta-api":true,"x-api-group":"telephony/sessions/parties/ignore","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/ignore","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/ignore","x-docs-level":"Public","x-codegen-request-body-name":"body","x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/transfer":{"post":{"tags":["Call Control"],"summary":"Transfer Call Party","description":"Transfers an answered call to the specified call party. Applicable for a call session in \"Answered\" or \"Hold\" state.","operationId":"transferCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Specifies a call party to which the call will be transfered. Only a single call party is allowed.","content":{"application/json":{"schema":{"type":"object","description":"Identifier of a call party the call will be transfered to. Only **one of** these parameters: `phoneNumber`, `voicemail`, `extensionNumber` or `parkOrbit` must be specified, otherwise an error is returned.","properties":{"phoneNumber":{"type":"string","description":"Phone number"},"voicemail":{"type":"string","description":"Voicemail owner extension identifier"},"parkOrbit":{"type":"string","description":"Park orbit identifier"},"extensionNumber":{"type":"string","description":"Number of extension"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/transfer","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/transfer","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/transfer","x-codegen-request-body-name":"body","x-beta-api":false,"x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2NzgzMDQ4MjY0MjFAMTAuNjIuMS4zMA/parties/cs171835678304826421-1/transfer\n\n{\n\"phoneNumber\":\"+12059690601\"\n}\n","response":"HTTP 200 OK\n\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"cs171835678304826421-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Disconnected\",\n \"reason\": \"BlindTransfer\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/bridge":{"post":{"tags":["Call Control"],"summary":"Bridge Call Party","description":"Allows the user to connect multiple call session participants over a conference call bridge. The current active call session ID and party ID of the user within this session should be specified in path; the bridged call session ID and party ID of the user within that session should be specified in request body. Thus the user connects participants of two sessions into one conference call using his/her own party IDs from both sessions.","operationId":"bridgeCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Defines target call session and call party to be bridged","content":{"application/json":{"schema":{"required":["partyId","telephonySessionId"],"type":"object","properties":{"telephonySessionId":{"type":"string","description":"Internal identifier of a call session to be connected to (bridged)"},"partyId":{"type":"string","description":"Internal identifier of a call party to be connected to (bridged)"}}}}},"required":true},"responses":{"200":{"description":"Bridged Call Info","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/bridge","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/bridge","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/bridge","x-beta-api":true,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/s-4a2415b0c36c40a69ef6d45cf9e7108c/parties/p-4a2415b0c36c40a69ef6d45cf9e7108c-2/bridge\n\n{\n \"telephonySessionId\": \"s-f3ef1ea0096444848b1b14a0e85635fb\"\n \"partyId\": \"p-f3ef1ea0096444848b1b14a0e85635fb-1\"\n}\n","response":"HTTP 200 OK\n\n{ \n \"direction\": \"Inbound\",\n \"from\":\n { \n \"deviceId\": \"803872000020\",\n \"extensionId\": \"1606559020\",\n \"name\": \"John Smith\",\n \"phoneNumber\": \"+16505428042\"\n },\n \"id\": \"p-4a2415b0c36c40a69ef6d45cf9e7108c-2\",\n \"muted\": false,\n \"owner\": { \n \"accountId\": \"37439510\",\n \"extensionId\": \"297277020\"\n },\n \"standAlone\": false,\n \"status\": { \n \"code\": \"Gone\",\n \"peerId\": { \n \"partyId\": \"p-f3ef1ea0096444848b1b14a0e85635fb-1\",\n \"telephonySessionId\": \"s-f3ef1ea0096444848b1b14a0e85635fb\"\n },\n \"reason\": \"AttendedTransfer\"\n },\n \"to\": { \n \"extensionId\": \"297277020\",\n \"name\": \"Jane Williams\",\n \"phoneNumber\": \"+16508370072\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/answer":{"post":{"tags":["Call Control"],"summary":"Answer Call Party","description":"Answers a call on a certain device by passing the corresponding device ID in request body. Supported for call forwarding, call transfer, call flip and call queues.","operationId":"answerCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Distributes a non-answered call to the defined target. Only a single target is allowed","content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","description":"Device identifier that is used to answer the incoming call.","example":"400018633008"}}}}},"required":true},"responses":{"200":{"description":"Call Session Information","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/answer","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/answer","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/answer","x-beta-api":true,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /account/~/telephony/sessions/Y3MxNzE4MzU2NzkyNjEyMjgyMjJAMTAuNjIuMS4zMQ/parties/cs171835679261228222-2/answer\n\n {\n \"deviceId\" : \"1234567890\"\n }\n\n\n","response":" HTTP 200 OK\n\n {\n \"direction\": \"Inbound\",\n \"from\": {\n \"deviceId\": \"15426555020\",\n \"extensionId\": \"297277020\",\n \"name\": \"John Smith\",\n \"phoneNumber\": \"+16508370072\"\n },\n \"id\": \"cs171835679261228222-2\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"1606559020\",\n \"extensionId\": \"1483173021\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Proceeding\"\n },\n \"to\": {\n \"deviceId\": \"1234567890\",\n \"extensionId\": \"1483173021\",\n \"name\": \"Jane Williams\",\n \"phoneNumber\": \"102\"\n }\n } \n\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/pickup":{"post":{"tags":["Call Control"],"summary":"Pickup Call","description":"Picks up a call parked to the specified park location.","operationId":"pickupCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Distributes a non-answered call to the defined target. Only a single target is allowed","content":{"application/json":{"schema":{"required":["deviceId"],"type":"object","properties":{"deviceId":{"type":"string","description":"Device identifier that is used to pick up the parked call.","example":"400018633008"}}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}}},"x-api-group":"telephony/sessions/parties/pickup","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/pickup","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/pickup","x-beta-api":true,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /telephony/v1/account/{accountId}/sessions/{sessionId}/parties/{partyId}/pickup\n{\n \"deviceId\": \"803488717021\"\n}\n","response":"HTTP 200 OK\n{ \n \"direction\": \"Outbound\",\n \"from\": { \n \"deviceId\": \"754939004\",\n \"extensionId\": \"1606559020\",\n \"name\": \"John Smith\",\n \"phoneNumber\": \"+16505428042\"\n },\n \"id\": \"cs1686300151516229687-4\",\n \"muted\": false,\n \"owner\": { \n \"accountId\": \"1606559020\",\n \"extensionId\": \"1606559020\"\n },\n \"standAlone\": false,\n \"status\": { \n \"code\": \"Answered\",\n \"reason\": \"Pickup\"\n },\n \"to\": { \n \"phoneNumber\":\"+79817891689\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/forward":{"post":{"tags":["Call Control"],"summary":"Forward Call Party","description":"Forwards a non-answered incoming call to the specified call party. Applicable for a call session in \"Setup\" or \"Proceeding\" state.","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Parties/op_party_forward"},"operationId":"forwardCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Specifies a call party to which the call will be forwarded. Only a single call party is allowed.","content":{"application/json":{"schema":{"type":"object","description":"Identifier of a call party the call will be forwarded to. Only **one of** these parameters: `phoneNumber`, `voicemail` or `extensionNumber` must be specified, otherwise an error is returned.","properties":{"phoneNumber":{"type":"string","description":"Phone number"},"voicemail":{"type":"string","description":"Voicemail owner extension identifier"},"extensionNumber":{"type":"string","description":"Number of an extension"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/forward","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/forward","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/forward","x-codegen-request-body-name":"body","x-beta-api":false,"x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2Nzc3MTIyNjQyMEAxMC42Mi4xLjI5/parties/cs17183567771226420-2/forward\n\n{\n\"phoneNumber\":\"+18882064931\"\n}\n","response":"HTTP 200 OK\n\n{\n \"direction\": \"Inbound\",\n \"from\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n },\n \"id\": \"cs17183567771226420-2\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Disconnected\",\n \"reason\": \"BlindTransfer\"\n },\n \"to\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"102\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/reply":{"post":{"tags":["Call Control"],"summary":"Reply with Text","description":"Replies with text/pattern without picking up a call.","operationId":"replyParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"replyWithText":{"type":"string","description":"Text to reply"},"replyWithPattern":{"type":"object","properties":{"pattern":{"type":"string","description":"Predefined reply pattern name.","example":"OnMyWay","enum":["WillCallYouBack","CallMeBack","OnMyWay","OnTheOtherLine","WillCallYouBackLater","CallMeBackLater","InAMeeting","OnTheOtherLineNoCall"]},"time":{"type":"integer","description":"Number of time units. Applicable only to WillCallYouBack, CallMeBack patterns.","example":5},"timeUnit":{"type":"string","description":"Time unit name.","example":"Minute","enum":["Minute","Hour","Day"]}}}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]}}}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Server is unable to process request just now","content":{}}},"x-api-group":"telephony/sessions/parties/reply","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/reply","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/reply","x-docs-level":"Public","x-beta-api":true,"x-codegen-request-body-name":"body","x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/flip":{"post":{"tags":["Call Control"],"summary":"Call Flip on Party","description":"Performs call flip procedure by holding opposite party and calling to the specified target","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Parties/op_party_flip"},"operationId":"callFlipParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"callFlipId":{"type":"string","description":"Call flip id"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/flip","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/flip","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/flip","x-codegen-request-body-name":"body","x-beta-api":false,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/park":{"post":{"tags":["Call Control"],"summary":"Call Park","description":"Parks a call to a virtual location from where it can further be retrieved by any user from any phone of the system. The call session and call party identifiers should be specified in path. Currently the users can park only their own incoming calls. Up to 50 calls can be parked simultaneously. Park location starts with asterisk (*) and ranges 801-899.","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+11.0#/Parties/op_party_park"},"operationId":"callParkParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-beta-api":true,"x-api-group":"telephony/sessions/parties/park","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/park","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/park","x-http-examples":[{"request":"POST /restapi/v1.0/account/{accountId}/telephony/sessions/Y3MxNzE4MzU2NzkyNjEyMj/parties/cs171835679261228222-2/park\n","response":"201 Created\n\n{\n \"direction\": \"Inbound\",\n \"from\": {\n \"deviceId\": \"400017774008\",\n \"extensionId\": \"400130083008\",\n \"name\": \"John Smith\",\n \"phoneNumber\": \"+18442097794\"\n },\n \"id\": \"cs171835679261228222-2\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"400130551008\",\n \"extensionId\": \"400130557008\"\n },\n \"park\": {\n \"id\": \"*813\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Parked\"\n },\n \"to\": {\n \"extensionId\": \"400130557008\",\n \"name\": \"Alice Williams\",\n \"phoneNumber\": \"+18772096679\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/bring-in":{"post":{"tags":["Call Control"],"summary":"Bring-In Call Party","description":"Adds a new party to the call session by bringing-in an established SIP call connection. The maximum number of parties to bring-in is 10; only 1 call party can be added per request. Currently the method is supported for sessions of 'Conference' origin only.","externalDocs":{"description":"Find more info about body and response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Add_Party/op_parties_add_bringIn"},"operationId":"createCallPartyWithBringIn","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["partyId","telephonySessionId"],"type":"object","properties":{"telephonySessionId":{"type":"string","description":"Internal identifier of a call session"},"partyId":{"type":"string","description":"Internal identifier of a party that should be added to the call session"}}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/bring-in","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"TelephonySessions","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/bring-in","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/bring-in","x-beta-api":true,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/s-aa5647de93294f039a9828ba103f115b/parties/bring-in\n\n { \n \"telephonySessionId\": \"s-aa5647de93294f039a9828ba103f115b\",\n \"partyId\": \"p-aa5647de93294f039a9828ba103f115b-01\"\n }\n\n","response":"HTTP 200 OK\n\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"John Smith\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"p-aa5647de93294f039a9828ba103f115b-01\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"Alice Williams\",\n \"phoneNumber\": \"103\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}":{"get":{"tags":["Call Control"],"summary":"Get Call Party Status","description":"Returns a call party status by ID.","externalDocs":{"description":"Find more info about response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Parties/op_party_get"},"operationId":"readCallPartyStatus","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3","x-beta-api":false,"x-http-examples":[{"request":"GET /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2NzYyOTU2MjkwMUAxMC42Mi4xLjI4/parties/cs17183567629562901-1\n","response":"HTTP 200 OK\n\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"cs17183567629562901-1\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n }\n}\n"}],"x-error-codes":null},"delete":{"tags":["Call Control"],"summary":"Delete Call Party","description":"Removes a party from a call session by ID. A party can be deleted only if supervised or parked. It is possible to delete only one conference participant per request.","operationId":"deleteCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"TelephonySessions","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3","x-beta-api":false,"x-error-codes":null},"patch":{"tags":["Call Control"],"summary":"Update Call Party","description":"Modifies a call party by ID. There is a known limitation for Mute scenario - mute via REST API doesn't work with mute placed via RingCentral apps or HardPhone. It means that if you muted participant via Call Control API and Ringcentral Desktop app you need to unmute both endpoints to bring the media back.","operationId":"updateCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"party":{"type":"object","properties":{"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"}},"description":"Party update data"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a party"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"park":{"type":"object","properties":{"id":{"type":"string","description":"Call park identifier"}},"description":"Call park information"},"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"direction":{"type":"string","description":"Direction of a call","enum":["Inbound","Outbound"]},"conferenceRole":{"type":"string","description":"A party's role in the conference scenarios. For calls of 'Conference' type only","enum":["Host","Participant"]},"ringOutRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only","enum":["Initiator","Target"]},"ringMeRole":{"type":"string","description":"A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only","enum":["Initiator","Target"]},"recordings":{"type":"array","description":"Active recordings list","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a recording resource"},"active":{"type":"boolean","description":"True if the recording is active. False if the recording is paused."}}}}},"description":"Information on a party of a call session"}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3","x-codegen-request-body-name":"body","x-beta-api":false,"x-http-examples":[{"request":"PATCH /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2NzYyOTU2MjkwMUAxMC42Mi4xLjI4/parties/cs17183567629562901-1\n\n{\n\"muted\" : true\n}\n","response":"HTTP 200 OK\n\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"extensionId\": \"404884534004\",\n \"name\": \"Tom Sawyer\",\n \"phoneNumber\": \"+18442089644\"\n },\n \"id\": \"cs17183567629562901-1\",\n \"muted\": true,\n \"owner\": {\n \"accountId\": \"404884532004\",\n \"extensionId\": \"404884534004\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\"\n },\n \"to\": {\n \"extensionId\": \"404884535004\",\n \"name\": \"TheCat Jerry\",\n \"phoneNumber\": \"103\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/recordings":{"post":{"tags":["Call Control"],"summary":"Create Recording","description":"Starts a new call recording for the party","externalDocs":{"description":"Find more info about response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Parties/op_party_addRecording"},"operationId":"startCallRecording","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/recordings","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/recordings","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/recordings","x-beta-api":false,"x-http-examples":[{"request":"POST /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2NzYyOTU2MjkwMUAxMC42Mi4xLjI4/parties/cs17183567629562901-1/recordings\n","response":"HTTP 200 OK\n\n{\n \"active\": true,\n \"id\": \"40003430000\"\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/recordings/{recordingId}":{"patch":{"tags":["Call Control"],"summary":"Pause/Resume Recording","description":"Pause/resume recording","externalDocs":{"description":"Find more info about response format","url":"https://wiki.ringcentral.com/display/TA/Telephony+Platform+API+-+TAS+10.2#/Parties/op_party_modifyRecording"},"operationId":"pauseResumeCallRecording","parameters":[{"name":"brandId","in":"query","description":"Identifies a brand of a logged in user or a brand of a sign-up session","required":true,"schema":{"type":"string","default":"~"}},{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}},{"name":"recordingId","in":"path","description":"Internal identifier of a recording","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean","description":"Recording status"}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a call recording"},"active":{"type":"boolean","description":"Call recording status"}}}}}},"400":{"description":"Bad Request","content":{}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/recordings","x-throttling-group":"Light","x-internal-api":false,"x-docs-level":"Public","x-app-permission":"CallControl","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/recordings/(.*)","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/recordings/$4","x-codegen-request-body-name":"body","x-beta-api":false,"x-http-examples":[{"request":"PATCH /restapi/v1.0/account/~/telephony/sessions/Y3MxNzE4MzU2NzYyOTU2MjkwMUAxMC42Mi4xLjI4/parties/cs17183567629562901-1/recordings/40003430000\n\n{\n\"active\": false\n}\n","response":"HTTP 200 OK\n\n{\n \"active\": false,\n \"id\": \"40003430000\"\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/supervise":{"post":{"tags":["Call Control"],"summary":"Supervise Call Session","description":"Allows to monitor a call session in 'Listen' mode. Input parameters should contain internal identifiers of a monitored user and a supervisor's device. Call session should be specified in path. Please note that this method supports single channel audio flow, which means that audio of both call participants is mixed and delivered to the supervisor in single audio channel. Currently this method is supported for Softphone/Hardphone only, since device IDs for WebRTC/Mobile apps cannot be obtained.","operationId":"superviseCallSession","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["mode","supervisorDeviceId"],"type":"object","properties":{"mode":{"type":"string","description":"Supervising mode","example":"Listen","enum":["Listen"]},"supervisorDeviceId":{"type":"string","description":"Internal identifier of a supervisor's device which will be used for call session monitoring","example":"191888004"},"agentExtensionNumber":{"type":"string","description":"Extension number of the user that will be monitored","example":"105"},"agentExtensionId":{"type":"string","description":"Extension identifier of the user that will be monitored","example":"400378008008"}}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information about a call party that monitors a call"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information about a call party that is monitored"},"direction":{"type":"string","description":"Direction of a call","enum":["Outbound","Inbound"]},"id":{"type":"string","description":"Internal identifier of a party that monitors a call"},"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"},"muted":{"type":"boolean","description":"Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"standAlone":{"type":"boolean","description":"If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"}}}}}},"403":{"description":"Forbidden","content":{}},"404":{"description":"Not Found","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/supervise","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/supervise","x-beta-api":false,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /v1.0/account/3689920/telephony/sessions/s-c9fbe58a3b28416e9694a9ddaf8c18bf/supervise\n{ \n \"mode\": \"Listen\",\n \"agentExtensionId\": \"297277020\",\n \"supervisorDeviceId\": \"803872000020\"\n}\n","response":"HTTP 200 OK\n{\n \"direction\": \"Outbound\",\n \"from\": {\n \"deviceId\": \"803872000020\",\n \"name\": \"John Smith\",\n \"extensionId\": \"400130078008\",\n \"phoneNumber\": \"+18772096645\"\n },\n \"id\": \"cs171841903693222281-3\",\n \"muted\": false,\n \"owner\": {\n \"accountId\": \"400130073008\",\n \"extensionId\": \"400130078008\"\n },\n \"standAlone\": false,\n \"status\": {\n \"code\": \"Answered\",\n \"reason\": \"Supervising\"\n },\n \"to\": {\n \"phoneNumber\": \"+18772096347\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/supervise":{"post":{"tags":["Call Control"],"summary":"Supervise Call Party","description":"Allows to monitor a call party in 'Listen' mode. Input parameters are extension number of a monitored user and internal identifier of a supervisor's device. Call session and party identifiers should be specified in path. Please note that for this method dual channel audio flow is supported, which means that you need to make one more request for monitoring the second participant of a call. And as a result of each monitoring request the client recieves SIP invite with the following header `p-rc-api-monitoring-ids` containing IDs of the monitored party and session. The flow is supported for calls with no more than 2 participants. Currently this method is supported for Softphone/Hardphone only, since device IDs for WebRTC/Mobile apps cannot be obtained.","operationId":"superviseCallParty","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"telephonySessionId","in":"path","description":"Internal identifier of a call session","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","description":"Internal identifier of a call party","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JSON body","content":{"application/json":{"schema":{"required":["agentExtensionId","mode","supervisorDeviceId"],"type":"object","properties":{"mode":{"type":"string","description":"Supervising mode","example":"Listen","enum":["Listen"]},"supervisorDeviceId":{"type":"string","description":"Internal identifier of a supervisor's device","example":"191888004"},"agentExtensionId":{"type":"string","description":"Mailbox ID of a user that will be monitored","example":"400378008008"}}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"to":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Phone number of a party"},"name":{"type":"string","description":"Displayed name of a party"},"deviceId":{"type":"string","description":"Internal identifier of a device"},"extensionId":{"type":"string","description":"Internal identifier of an extension"}},"description":"Information on a calling/called party"},"direction":{"type":"string","description":"Direction of a call","enum":["Outbound","Inbound"]},"id":{"type":"string","description":"Internal identifier of a party that monitors a call"},"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"},"muted":{"type":"boolean","description":"Specifies if a call party is muted"},"owner":{"type":"object","properties":{"accountId":{"type":"string","description":"Internal identifier of an account that monitors a call"},"extensionId":{"type":"string","description":"Internal identifier of an extension that monitors a call"}},"description":"Deprecated. Information on call owner"},"standAlone":{"type":"boolean","description":"Specifies if a device is stand-alone"},"status":{"type":"object","properties":{"code":{"type":"string","description":"Status code of a call","enum":["Setup","Proceeding","Answered","Disconnected","Gone","Parked","Hold","VoiceMail","FaxReceive","VoiceMailScreening"]},"peerId":{"type":"object","properties":{"sessionId":{"type":"string"},"telephonySessionId":{"type":"string"},"partyId":{"type":"string"}},"description":"Peer session/party details. Valid in 'Gone' state of a call"},"reason":{"type":"string","description":"Reason for call termination. For 'Disconnected' code only","enum":["Pickup","Supervising","TakeOver","Timeout","BlindTransfer","RccTransfer","AttendedTransfer","CallerInputRedirect","CallFlip","ParkLocation","DtmfTransfer","AgentAnswered","AgentDropped","Rejected","Cancelled","InternalError","NoAnswer","TargetBusy","InvalidNumber","InternationalDisabled","DestinationBlocked","NotEnoughFunds","NoSuchUser","CallPark","CallRedirected","CallReplied","CallSwitch","CallFinished","CallDropped"]},"description":{"type":"string","description":"Optional message"}},"description":"Status data of a call session"}}}}}},"400":{"description":"Bad Request","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"Conflict","content":{}},"500":{"description":"Internal Server Error","content":{}},"503":{"description":"Service Temporary Unavailable","content":{}}},"x-api-group":"telephony/sessions/parties/supervise","x-throttling-group":"Light","x-internal-api":false,"x-app-permission":"CallControl","x-docs-level":"Public","x-rewrite-uri-from":"/restapi/v1.0/account/(.*)/telephony/sessions/(.*)/parties/(.*)/supervise","x-rewrite-uri-to":"/telephony/v1/account/$1/sessions/$2/parties/$3/supervise","x-beta-api":false,"x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /v1.0/account/40001234567890/telephony/sessions/s-171842208208020510/parties/p-171842208208020510-2/supervise\n{ \n \"mode\": \"Listen\",\n \"agentExtensionId\": \"40001234567890\",\n \"supervisorDeviceId\": \"191888004\"\n}\n","response":"HTTP 201 Created\n\n{ \n \"direction\":\"Outbound\",\n \"from\":\n { \n \"deviceId\":\"803872000020\",\n \"name\":\"John Smith\",\n \"extensionId\":\"400130078008\",\n \"phoneNumber\":\"+18772096645\"\n },\n\n \"id\":\"p-171842208208020510-3\",\n \"accountId\":\"400130073008\",\n \"extensionId\":\"400130078008\",\n \"muted\":false,\n \"owner\":\n { \n \"accountId\":\"400130073008\",\n \"extensionId\":\"400130078008\"\n },\n \"standAlone\":false,\n \"status\":\n { \n \"code\":\"Answered\",\n \"reason\":\"Supervising\"\n },\n \"to\":\n { \n \"phoneNumber\":\"+18772096347\"\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/glip/data-export":{"get":{"tags":["Glip Compliance Exports"],"summary":"Get Data Export Task List","description":"Returns the list of Glip data export tasks.","operationId":"listDataExportTasks","parameters":[{"name":"status","in":"query","description":"Status of the task(s) to be returned. Multiple values are supported","schema":{"type":"string","enum":["Accepted","InProgress","Completed","Failed","Expired"]}},{"name":"page","in":"query","description":"Page number to be retrieved; value range is > 0","schema":{"type":"integer","default":1}},{"name":"perPage","in":"query","description":"Number of records to be returned per page; value range is 1 - 250","schema":{"type":"integer","default":30}}],"responses":{"200":{"description":"Data Export Task List","content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a task"},"id":{"type":"string","description":"Internal identifier of a task"},"creationTime":{"type":"string","description":"Task creation datetime"},"lastModifiedTime":{"type":"string","description":"Task last modification datetime"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed","Expired"]},"creator":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a user who created a note/task"}},"description":"Note creator information"},"specific":{"type":"object","properties":{"timeFrom":{"type":"string","description":"Starting time for data collection"},"timeTo":{"type":"string","description":"Ending time for data collection"},"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a contact"},"email":{"type":"string","description":"Email address of a contact"}},"description":"List of users whose data is collected. The following data will be exported: posts, tasks, events, etc. posted by the user(s); posts addressing the user(s) via direct and @Mentions; tasks assigned to the listed user(s). The list of 10 users per request is supported."}},"chatIds":{"type":"array","description":"List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected","items":{"type":"string"}}},"description":"Information specififed in request"},"datasets":{"type":"array","description":"Data collection sets. Returned by task ID","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a dataset"},"uri":{"type":"string","description":"Link for downloading a dataset"},"size":{"type":"integer","description":"Size of ta dataset in bytes"}}}}}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}}},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}}}}}}}}},"x-api-group":"glip/compliance","x-metered-api":true,"x-metering-group":"System","x-rewrite-uri-from":"/restapi/v1.0/glip/data-export(.*)","x-rewrite-uri-to":"/glip/v1/data-export$1","x-docs-level":"Public","x-app-permission":"Glip","x-throttling-group":"Medium","x-beta-api":true,"x-http-examples":[{"request":"GET /restapi/v1.0/glip/data-export?status=InProgress&status=Completed\n","response":"HTTP 200 OK\n \n{\n \"tasks\": [{\n \"id\": \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"creationTime\": \"2018-04-20T13:30:09.023Z\",\n \"lastModifiedTime\": \"2018-04-20T13:30:09.023Z\",\n \"status\": \"InProgress\",\n \"creator\": {\n \"id\": \"512368\",\n \"firstName\": \"John\",\n \"lastName\": \"Smith\"\n },\n \"specific\": {\n \"timeFrom\": \"2019-11-18T14:00\",\n \"timeTo\": \"2019-12-18T14:00\",\n \"contacts\": [\n { \"id\": \"74623489\" },\n { \"email\": \"mycompany@example.com\" }\n ],\n \"chatIds\": [ \"13878234\", \"12923847\" ]\n }\n }, {\n \"id\": \"333\",\n \"uri\": \"https://platform.ringcentral.com/glip/data-export/333\",\n \"creationTime\": \"2016-03-20T22:01:01.023Z\",\n \"lastModifiedTime\": \"2016-03-20T22:31:01.023Z\",\n \"status\": \"Completed\",\n \"creator\": {\n \"id\": \"512368\",\n \"firstName\": \"John\",\n \"lastName\": \"Smith\"\n },\n \"specific\": {\n \"timeFrom\": \"2019-11-18T14:00\",\n \"timeTo\": \"2019-12-18T14:00\"\n },\n \"datasets\": [{\n \"id\": \"1\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/333/datasets/1\",\n \"size\": 2346788\n }]\n }],\n \"paging\": {\n \"page\": 1,\n \"totalPages\": 1,\n \"perPage\": 30,\n \"totalElements\": 2,\n \"pageStart\" : 0,\n \"pageEnd\": 0\n },\n \"navigation\": {\n \"firstPage\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export?status=InProgress&status=Completed&page=1&perPage=30\"\n },\n \"lastPage\" : {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export?status=InProgress&status=Completed&page=1&perPage=30\"\n }\n }\n}\n"}],"x-error-codes":null},"post":{"tags":["Glip Compliance Exports"],"summary":"Create Data Export Task","description":"Creates a task for Glip data export and returns a link at which the exported data will be available in future once the task is implemented. The exported data can be downloaded by calling Get Data Export Task method with the specified task ID. Simultaneously no more than 2 tasks per company can be created.","operationId":"createDataExportTask","requestBody":{"description":"JSON body","content":{"*/*":{"schema":{"type":"object","properties":{"timeFrom":{"type":"string","description":"Starting time for data collection. The default value is `timeTo` minus 24 hours. Max allowed time frame between `timeFrom` and `timeTo` is 6 months"},"timeTo":{"type":"string","description":"Ending time for data collection. The default value is current time. Max allowed time frame between `timeFrom` and `timeTo` is 6 months"},"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a contact"},"email":{"type":"string","description":"Email address of a contact"}},"description":"List of users whose data is collected. The following data will be exported: posts, tasks, events, etc. posted by the user(s); posts addressing the user(s) via direct and @Mentions; tasks assigned to the listed user(s). The list of 10 users per request is supported."}},"chatIds":{"type":"array","description":"List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected. Maximum number of chats supported is 10","items":{"type":"string"}}}}}},"required":false},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a task"},"id":{"type":"string","description":"Internal identifier of a task"},"creationTime":{"type":"string","description":"Task creation datetime"},"lastModifiedTime":{"type":"string","description":"Task last modification datetime"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed","Expired"]},"creator":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a user who created a note/task"}},"description":"Note creator information"},"specific":{"type":"object","properties":{"timeFrom":{"type":"string","description":"Starting time for data collection"},"timeTo":{"type":"string","description":"Ending time for data collection"},"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a contact"},"email":{"type":"string","description":"Email address of a contact"}},"description":"List of users whose data is collected. The following data will be exported: posts, tasks, events, etc. posted by the user(s); posts addressing the user(s) via direct and @Mentions; tasks assigned to the listed user(s). The list of 10 users per request is supported."}},"chatIds":{"type":"array","description":"List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected","items":{"type":"string"}}},"description":"Information specififed in request"},"datasets":{"type":"array","description":"Data collection sets. Returned by task ID","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a dataset"},"uri":{"type":"string","description":"Link for downloading a dataset"},"size":{"type":"integer","description":"Size of ta dataset in bytes"}}}}}}}}}},"x-api-group":"glip/data-export","x-metered-api":true,"x-metering-group":"System","x-rewrite-uri-from":"/restapi/v1.0/glip/data-export","x-rewrite-uri-to":"/glip/v1/data-export","x-throttling-group":"Heavy","x-app-permission":"Glip","x-docs-level":"Public","x-codegen-request-body-name":"body","x-beta-api":true,"x-http-examples":[{"request":"POST /restapi/v1.0/glip/data-export\n{\n \"timeFrom\": \"2019-11-18T14:00\",\n \"contacts\": [\n { \"id\": \"74623489\" },\n { \"email\": \"mycompany@example.com\" }\n ],\n \"chatIds\": [ \"13878234\", \"12923847\" ]\n}\n","response":"HTTP 202 Accepted\n \n{\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"id\": \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"creationTime\": \"2018-04-20T13:30:09Z\",\n \"lastModifiedTime\": \"2018-04-20T13:30:09Z\",\n \"status\": \"Accepted\",\n \"creator\": {\n \"id\": \"512368\",\n \"firstName\": \"John\",\n \"lastName\": \"Smith\"\n },\n \"specific\": {\n \"timeFrom\": \"2019-11-18T14:00\",\n \"timeTo\": \"2019-12-18T14:00\",\n \"contacts\": [\n { \"id\": \"74623489\" },\n { \"email\": \"mycompany@example.com\" }\n ],\n \"chatIds\": [ \"13878234\", \"12923847\" ]\n }\n}\n"}],"x-error-codes":[{"httpCode":"401","errorCode":"OAU-128","message":"Access token expired"},{"httpCode":"401","errorCode":"OAU-213","message":"Token not found"}]}},"/restapi/v1.0/glip/data-export/{taskId}":{"get":{"tags":["Glip Compliance Exports"],"summary":"Get Data Export Task","description":"Returns the links for downloading Glip data exported within the specified task. If the export task is still in progress, then only the task status will be returned. If the data is ready for downloading, then the list of URLs will be returned.","operationId":"readDataExportTask","parameters":[{"name":"taskId","in":"path","description":"Internal identifier of a task to be retrieved","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"uri":{"type":"string","description":"Canonical URI of a task"},"id":{"type":"string","description":"Internal identifier of a task"},"creationTime":{"type":"string","description":"Task creation datetime"},"lastModifiedTime":{"type":"string","description":"Task last modification datetime"},"status":{"type":"string","description":"Task status","enum":["Accepted","InProgress","Completed","Failed","Expired"]},"creator":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a user who created a note/task"}},"description":"Note creator information"},"specific":{"type":"object","properties":{"timeFrom":{"type":"string","description":"Starting time for data collection"},"timeTo":{"type":"string","description":"Ending time for data collection"},"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a contact"},"email":{"type":"string","description":"Email address of a contact"}},"description":"List of users whose data is collected. The following data will be exported: posts, tasks, events, etc. posted by the user(s); posts addressing the user(s) via direct and @Mentions; tasks assigned to the listed user(s). The list of 10 users per request is supported."}},"chatIds":{"type":"array","description":"List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected","items":{"type":"string"}}},"description":"Information specififed in request"},"datasets":{"type":"array","description":"Data collection sets. Returned by task ID","items":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a dataset"},"uri":{"type":"string","description":"Link for downloading a dataset"},"size":{"type":"integer","description":"Size of ta dataset in bytes"}}}}}}}}}},"x-api-group":"glip/compliance","x-metered-api":true,"x-metering-group":"System","x-rewrite-uri-from":"/restapi/v1.0/glip/data-export/(.*)","x-rewrite-uri-to":"/glip/v1/data-export/$1","x-docs-level":"Public","x-app-permission":"Glip","x-throttling-group":"Medium","x-beta-api":true,"x-http-examples":[{"title":"Task In Progress","request":"GET /restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\n","response":"HTTP 200 OK\n\n{\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\", \n \"id\" : \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"creationTime\" : \"2018-04-20T13:30:09.023Z\",\n \"lastModifiedTime\" : \"2018-04-20T13:30:09.023Z\"\n \"status\" : \"InProgress\"\n}\n"},{"title":"Task Completed","request":"GET /restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\n","response":"HTTP 200 OK\n \n{\n \"id\" : \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"creationTime\" : \"2018-04-20T13:30:09.023Z\",\n \"lastModifiedTime\" : \"2018-04-20T13:30:09.023Z\",\n \"status\" : \"Completed\",\n \"creator\": {\n \"id\": \"512368\",\n \"firstName\": \"John\",\n \"lastName\": \"Smith\"\n },\n \"specific\": {\n \"timeFrom\": \"2019-11-18T14:00\",\n \"timeTo\": \"2019-12-18T14:00\"\n },\n \"datasets\": [{\n \"id\": \"1\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d/datasets/1\",\n \"size\": 73708885\n }, {\n \"id\": \"2\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/glip/data-export/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d/datasets/2\",\n \"size\": 106107\n }]\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/glip/data-export/{taskId}/datasets/{datasetId}":{"get":{"tags":["Glip Compliance Exports"],"summary":"Get Data Export Task Dataset","description":"Returns the specified dataset by ID. Each dataset is a ZIP archive the size of which is limited to 1 Gb.","operationId":"readDataExportTaskDataset","parameters":[{"name":"taskId","in":"path","description":"Internal identifier of a task","required":true,"schema":{"type":"string"}},{"name":"datasetId","in":"path","description":"Internal identifier of a dataset","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dataset Zip Archive","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}},"x-api-group":"glip/compliance","x-throttling-group":"Heavy","x-metered-api":true,"x-metering-group":"System","x-rewrite-uri-from":"/restapi/v1.0/glip/data-export/datasets(.*)","x-rewrite-uri-to":"/glip/v1/data-export/datasets/$1","x-docs-level":"Public","x-app-permission":"Glip","x-beta-api":true,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/message-store-report":{"post":{"tags":["Message Exports"],"summary":"Create Message Store Report","description":"Creates a task to collect all account messages within the specified time interval. Maximum number of simaltaneous tasks per account is 2.","operationId":"createMessageStoreReport","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dateFrom":{"type":"string","description":"Starting time for collecting messages. The default value equals to the current time minus 24 hours"},"dateTo":{"type":"string","description":"Ending time for collecting messages. The default value is the current time"}}}}},"required":false},"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a message store report task"},"uri":{"type":"string","description":"Link to a task"},"status":{"type":"string","description":"Status of a message store report task","enum":["Accepted","Pending","InProgress","AttemptFailed","Failed","Completed","Cancelled"]},"accountId":{"type":"string","description":"Internal identifier of an account"},"extensionId":{"type":"string","description":"Internal identifier of an extension"},"creationTime":{"type":"string","description":"Task creation time"},"lastModifiedTime":{"type":"string","description":"Time of the last task modification"},"dateTo":{"type":"string","description":"Ending time for collecting messages"},"dateFrom":{"type":"string","description":"Starting time for collecting messages"}}}}}},"400":{"description":"Wrong request provided","content":{}},"503":{"description":"Internal error","content":{}}},"x-api-group":"message-store/task","x-app-permission":"ReadMessages","x-user-permission":"Users","x-feature":"EditUsers","x-docs-level":"Public","x-codegen-request-body-name":"body","x-throttling-group":"Heavy","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/message-store-report\n\n{\n \"dateFrom\": \"2015-11-18T14:28:53.000Z\"\n}\n","response":"HTTP 200 OK\n\n{\n \"id\" : \"402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402297343008/message-store-report/402297343008-402297343008-f674e48cbb5a479bac124ca8afcffb3d\",\n \"status\" : \"Accepted\",\n \"accountId\": \"402297343008\",\n \"extensionId\": \"402297343008\",\n \"creationTime\" : \"2018-04-20T13:30:09Z\",\n \"lastModifiedTime\" : \"2018-04-20T13:30:09Z\",\n \"dateFrom\": \"2015-11-18T14:28:53.000Z\",\n \"dateTo\": \"2018-04-20T13:30:09Z\"\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/message-store-report/{taskId}":{"get":{"tags":["Message Exports"],"summary":"Get Message Store Report Task","description":"Returns the current status of a task on report creation.","operationId":"readMessageStoreReportTask","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a message store report task"},"uri":{"type":"string","description":"Link to a task"},"status":{"type":"string","description":"Status of a message store report task","enum":["Accepted","Pending","InProgress","AttemptFailed","Failed","Completed","Cancelled"]},"accountId":{"type":"string","description":"Internal identifier of an account"},"extensionId":{"type":"string","description":"Internal identifier of an extension"},"creationTime":{"type":"string","description":"Task creation time"},"lastModifiedTime":{"type":"string","description":"Time of the last task modification"},"dateTo":{"type":"string","description":"Ending time for collecting messages"},"dateFrom":{"type":"string","description":"Starting time for collecting messages"}}}}}}},"x-api-group":"message-store/task","x-app-permission":"ReadMessages","x-user-permission":"Users","x-feature":"EditUsers","x-docs-level":"Public","x-throttling-group":"Heavy","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/message-store-report/147043006-147043006-5b3109afbd06443b840167d0808d8b4f\n","response":"HTTP 200 OK\n\n{\n \n \"id\" : \"147043006-147043006-5b3109afbd06443b840167d0808d8b4f\",\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402297343008/message-store-report/147043006-147043006-5b3109afbd06443b840167d0808d8b4f\",\n \"status\" : \"InProgress\",\n \"accountId\": \"402297343008\",\n \"extensionId\": \"402297343008\",\n \"creationTime\" : \"2018-04-20T13:30:09Z\",\n \"lastModifiedTime\" : \"2018-04-20T13:30:09Z\",\n \"dateFrom\": \"2015-11-18T14:28:53.000Z\",\n \"dateTo\": \"2018-04-20T13:30:09Z\"\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive":{"get":{"tags":["Message Exports"],"summary":"Get Message Store Report Archive","description":"Returns the created report with message data not including attachments.","operationId":"readMessageStoreReportArchive","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"size":{"type":"integer","description":"Archive size in bytes"},"uri":{"type":"string","description":"Link for archive download"}}}}}}}}}},"x-api-group":"message-store/task/archive","x-app-permission":"ReadMessages","x-user-permission":"Users","x-feature":"EditUsers","x-docs-level":"Public","x-throttling-group":"Heavy","x-http-examples":[{"request":"GET /restapi/v1.0/account/402297343008/message-store-report/147043006-147043006-5b3109afbd06443b840167d0808d8b4f/archive\n","response":"HTTP 200 OK\n\n{\n \n \"records\": [ { \n \"size\": 106107,\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402297343008/message-store-report/NDAyMjk3MzQzMDA4fDIwMTUtMTEtMThUMTQ6Mjg6NTMuMDAwWnwyMDE4LTA0LTIwVDEzOjMwOjA5Wg==/402297343008/archive/0\"\n }, {\n \"size\": 73708885,\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/402297343008/message-store-report/NDAyMjk3MzQzMDA4fDIwMTUtMTEtMThUMTQ6Mjg6NTMuMDAwWnwyMDE4LTA0LTIwVDEzOjMwOjA5Wg==/402297343008/archive/1\"\n } ]\n\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive/{archiveId}":{"get":{"tags":["Message Exports"],"summary":"Get Message Store Report Archive Content","description":"Returns one of the report archives with message contents in application/zip format.","operationId":"readMessageStoreReportArchiveContent","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}},{"name":"archiveId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Archived Data","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}}},"x-api-group":"message-store/task/archive","x-app-permission":"ReadMessages","x-user-permission":"Users","x-feature":"EditUsers","x-docs-level":"Public","x-throttling-group":"Heavy","x-http-examples":[{"request":"GET /restapi/v1.0/account/402297343008/message-store-report/NDAyMjk3MzQzMDA4fDIwMTUtMTEtMThUMTQ6Mjg6NTMuMDAwWnwyMDE4LTA0LTIwVDEzOjMwOjA5Wg==/archive/1\n","response":"HTTP 200 OK\n\n[binary data]\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/meeting-recordings":{"get":{"tags":["Meeting Recordings"],"summary":"Get Account Meeting Recordings List","description":"Returns the list of meeting recordings for the current account.","operationId":"listAccountMeetingRecordings","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string"}},{"name":"meetingId","in":"query","description":"Internal identifier of a meeting. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified","schema":{"type":"string"}},{"name":"meetingStartTimeFrom","in":"query","description":"Recordings of meetings started after the time specified will be returned. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified","schema":{"type":"string"}},{"name":"meetingStartTimeTo","in":"query","description":"Recordings of meetings started before the time specified will be returned. The default value is current time. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified","schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number","schema":{"type":"integer"}},{"name":"perPage","in":"query","description":"Number of items per page. The `max` value is supported to indicate the maximum size - 300","schema":{"maximum":300,"type":"integer","default":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"meeting":{"type":"object","properties":{"id":{"type":"string"},"topic":{"type":"string"},"startTime":{"type":"string"}}},"recording":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentDownloadUri":{"type":"string","description":"Link for downloading the recorded file (mp4, mp3 audio and text/plain chat file)"},"contentType":{"type":"string","enum":["video/mp4","audio/m4a","text/plain"]},"size":{"type":"integer","format":"int32"},"startTime":{"type":"string","description":"Starting time of a recording"},"endTime":{"type":"string","description":"Ending time of a recording"},"status":{"type":"string","enum":["Completed","Processing"]}}}}}}},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}}}}}}}}},"x-api-group":"account/meeting-recordings","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"Meetings","x-user-permission":"MeetingsRecordings","x-feature":"MeetingsCompanyRecordings","x-docs-level":"Public","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/meeting-recordings?meetingStartTimeFrom=2018-07-02T9:00:00Z \n","response":"HTTP 200 OK\n\n{\n\t\"records\": [ { \n \"meeting\": { \n \"id\": \"12345678\", \n \"topic\": \"Meeting Topic\", \n \"startTime\": \"2018-07-02T10:30:00Z\", \n }, \n \"recording\": { [ \n \"contentDownloadUri\": \"https://media.ringcentral.com/restapi/v1.0/account/402946441008/extension/402946446008/meeting/2sY6i6+0SFyCyapsM1NaKQ==/recordings/cc9b08e4-6103-44a2-80fc-c59f50b21d84/content\",\n \"contentType\": \"video/mp4\", \n \"size\": 432432, \n \"startTime\": \"2018-07-02T10:32:14Z\", \n \"endTime\": \"2018-07-02T11:12:27Z\", \n \"status\": \"Completed\" \n } ] \n }, ... ] \n\"paging\" : { \n \"page\" : 1, \n \"totalPages\" : 1, \n \"perPage\" : 100, \n \"totalElements\" : 1, \n \"pageStart\" : 0, \n \"pageEnd\" : 0 \n }, \n \"navigation\" : { \n \"firstPage\" : { \n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402946441008/meeting-recordings?meetingStartTimeFrom=2018-07-02T9:00:00Z&page=1&perPage=100\" \n }, \n \"lastPage\" : { \n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402946441008/meeting/?meetingStartTimeFrom=2018-07-02T9:00:00Z&page=1&perPage=100\" \n } \n } \n \n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting-recordings":{"get":{"tags":["Meeting Recordings"],"summary":"Get User Meeting Recordings List","description":"Returns the list of meetings recordings for the current user.","operationId":"listUserMeetingRecordings","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string"}},{"name":"extensionId","in":"path","description":"Internal identifier of an extension or tilde (~) to indicate the extension assigned to the account logged-in within the current session","required":true,"schema":{"type":"string"}},{"name":"meetingId","in":"query","description":"Internal identifier of a meeting. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified","schema":{"type":"string"}},{"name":"meetingStartTimeFrom","in":"query","description":"Recordings of meetings started after the time specified will be returned. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified","schema":{"type":"string"}},{"name":"meetingStartTimeTo","in":"query","description":"Recordings of meetings started before the time specified will be returned. The default value is current time. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified","schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number","schema":{"type":"integer"}},{"name":"perPage","in":"query","description":"Number of items per page. The `max` value is supported to indicate the maximum size - 300","schema":{"maximum":300,"type":"integer","default":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"meeting":{"type":"object","properties":{"id":{"type":"string"},"topic":{"type":"string"},"startTime":{"type":"string"}}},"recording":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentDownloadUri":{"type":"string","description":"Link for downloading the recorded file (mp4, mp3 audio and text/plain chat file)"},"contentType":{"type":"string","enum":["video/mp4","audio/m4a","text/plain"]},"size":{"type":"integer","format":"int32"},"startTime":{"type":"string","description":"Starting time of a recording"},"endTime":{"type":"string","description":"Ending time of a recording"},"status":{"type":"string","enum":["Completed","Processing"]}}}}}}},"paging":{"type":"object","properties":{"page":{"type":"integer","description":"The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested)"},"perPage":{"type":"integer","description":"Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied"},"pageStart":{"type":"integer","description":"The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty"},"pageEnd":{"type":"integer","description":"The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty"},"totalPages":{"type":"integer","description":"The total number of pages in a dataset. May be omitted for some resources due to performance reasons"},"totalElements":{"type":"integer","description":"The total number of elements in a dataset. May be omitted for some resource due to performance reasons"}}},"navigation":{"type":"object","properties":{"firstPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"nextPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"previousPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"},"lastPage":{"type":"object","properties":{"uri":{"type":"string"}},"description":"Canonical URI for the corresponding page of the list"}}}}}}}}},"x-api-group":"account/extension/meeting-recordings","x-throttling-group":"Medium","x-metered-api":true,"x-metering-group":"System","x-app-permission":"Meetings","x-user-permission":"MeetingsRecordings","x-feature":"MeetingsPersonalRecordings","x-docs-level":"Public","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/extension/~/meeting-recordings?meetingStartTimeFrom=2018-07-02T9:00:00Z\n","response":"HTTP 200 OK\n\n{\n \"records\": [ { \n \"meeting\": { \n \"id\": \"12345678\", \n \"topic\": \"Meeting Topic\", \n \"startTime\": \"2018-07-02T10:30:00Z\", \n }, \n \"recording\": { [\n \"contentDownloadUri\": \"https://media.ringcentral.com/restapi/v1.0/account/402946441008/extension/402946446008/meeting/2sY6i6+0SFyCyapsM1NaKQ==/recordings/cc9b08e4-6103-44a2-80fc-c59f50b21d84/content\",\n \"contentType\": \"video/mp4\",\n \"size\": 432432,\n \"startTime\": \"2018-07-02T10:32:14Z\", \n \"endTime\": \"2018-07-02T11:12:27Z\", \n \"status\": \"Completed\" \n } ] \n }, ... ] \n \"paging\" : {\n \"page\" : 1,\n \"totalPages\" : 1,\n \"perPage\" : 100,\n \"totalElements\" : 1,\n \"pageStart\" : 0,\n \"pageEnd\" : 0\n },\n \"navigation\" : {\n \"firstPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402946441008/extension/402946446008/meeting-recordings?meetingStartTimeFrom=2018-07-02T9:00:00Z&page=1&perPage=100\"\n },\n \"lastPage\" : {\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/402946441008/extension/402946446008/meeting/?meetingStartTimeFrom=2018-07-02T9:00:00Z&page=1&perPage=100\"\n }\n }\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/custom-fields":{"get":{"tags":["Custom Fields"],"summary":"Get Custom Field List","description":"Returns the list of created custom fields.","operationId":"listCustomFields","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"responses":{"200":{"description":"Custom Field List","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Custom field identifier"},"category":{"type":"string","description":"Object category to attach custom fields","enum":["User"]},"displayName":{"type":"string","description":"Custom field display name"}}}}}}}}}},"x-api-group":"account/custom-fields/get","x-app-permission":"ReadAccounts","x-user-permission":"ReadUserInfo","x-feature":"EditUsers","x-throttling-group":"Light","x-docs-level":"Public","x-http-examples":[{"request":"GET /restapi/v1.0/account/~/custom-fields\n","response":"HTTP 200 OK\n\n{ \n \"records\":[ \n { \n \"id\": \"220001\",\n \"category\": \"Extension\",\n \"displayName\": \"Employee ID\"\n },\n { \n \"id\": \"220033\",\n \"category\": \"Extension\",\n \"displayName\": \"Tax number\"\n }\n ]\n}\n"}],"x-error-codes":null},"post":{"tags":["Custom Fields"],"summary":"Create Custom Field","description":"Creates custom field attached to the object.","operationId":"createCustomField","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","description":"Object category to attach custom fields","enum":["User"]},"displayName":{"type":"string","description":"Custom field display name"}}}}},"required":false},"responses":{"200":{"description":"Custom Field","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Custom field identifier"},"category":{"type":"string","description":"Object category to attach custom fields","enum":["User"]},"displayName":{"type":"string","description":"Custom field display name"}}}}}}},"x-api-group":"account/custom-fields/create","x-app-permission":"EditAccounts","x-user-permission":"Users","x-feature":"EditUsers","x-throttling-group":"Light","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"POST /restapi/v1.0/account/~/custom-fields\n\n{ \n \"category\": \"User\",\n \"displayName\": \"Employee ID\"\n}\n","response":"HTTP 200 OK\n\n{ \n \"id\": \"220001\",\n \"category\": \"User\",\n \"displayName\": \"Employee ID\"\n}\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/custom-fields/{fieldId}":{"put":{"tags":["Custom Fields"],"summary":"Update Сustom Field","description":"Updates custom field by ID specified in path.","operationId":"updateCustomField","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"fieldId","in":"path","description":"Custom field identifier","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","description":"Custom field display name"}}}}},"required":false},"responses":{"200":{"description":"Custom Field","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Custom field identifier"},"category":{"type":"string","description":"Object category to attach custom fields","enum":["User"]},"displayName":{"type":"string","description":"Custom field display name"}}}}}}},"x-api-group":"account/custom-fields/update","x-app-permission":"EditAccounts","x-user-permission":"Users","x-feature":"EditUsers","x-throttling-group":"Light","x-docs-level":"Public","x-codegen-request-body-name":"body","x-http-examples":[{"request":"PUT /restapi/v1.0/account/~/custom-fields/2200033\n\n{ \n \"displayName\": \"Employee ID\"\n}\n\n","response":"HTTP 200 OK\n\n{ \n \"id\": \"2200033\",\n \"category\": \"User\",\n \"displayName\": \"Employee ID\"\n}\n\n"}],"x-error-codes":null},"delete":{"tags":["Custom Fields"],"summary":"Delete Custom Field","description":"Deletes custom field(s) by ID(s) with the corresponding values.","operationId":"deleteCustomField","parameters":[{"name":"accountId","in":"path","description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","required":true,"schema":{"type":"string","default":"~"}},{"name":"fieldId","in":"path","description":"Custom field identifier","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{}}},"x-api-group":"account/custom-fields/delete","x-app-permission":"EditAccounts","x-user-permission":"Users","x-feature":"EditUsers","x-throttling-group":"Light","x-docs-level":"Public","x-http-examples":[{"request":"DELETE /restapi/v1.0/account/~/custom-fields/2200033, 2200589\n","response":"HTTP 204 No Content\n"}],"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/a2p-sms/batch":{"post":{"tags":["High Volume SMS"],"summary":"Send A2P SMS","description":"Allows to send high volume of A2P (Application-to-Person) SMS messages (in message batches). Only phone number with the `A2PSmsSender` feature can be used as a sender.","operationId":"createA2PSMS","parameters":[{"name":"accountId","in":"path","required":true,"description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","example":"123324769","schema":{"type":"string"}}],"requestBody":{"description":"SMS batch payload","content":{"application/json":{"schema":{"required":["from","messages"],"type":"object","properties":{"from":{"type":"string","description":"Sender's phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format.","example":15551234567},"text":{"type":"string","description":"Text to send to `messages.to` phone numbers. Can be overridden on a per-message basis","example":"Hello, World!"},"messages":{"type":"array","description":"Individual messages","items":{"required":["to"],"type":"object","properties":{"to":{"type":"array","description":"List of phone numbers in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format, recipients of this message. Currently only one number is supported","example":15551234567,"items":{"type":"string"}},"text":{"type":"string","description":"Text to send, maximum number of characters is 1000","example":"Hello, World!"}},"description":"Single individual SMS resource"}}},"description":"Batch of A2P SMS messages. This object provides specification to send message(s) to many recipients. It contains top-level attributes, such as `text` which apply to all `messages`. In addition to that, it is possible to override this attribute for each message. This way a single API call may be used to send individual messages to many recipients."}}}},"responses":{"201":{"description":"Message batch created","content":{"application/json":{"schema":{"required":["from","messages"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the message batch","readOnly":true,"example":"12345"},"from":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the messages are going to be sent","example":15551234567},"batchSize":{"type":"integer","description":"Total number of messages in the accepted batch","example":5},"processedCount":{"type":"integer","description":"Total number of messages currently processed in the batch","example":1},"lastModifiedTime":{"type":"string","description":"The last time the batch was processed.\n","format":"date-time"},"status":{"type":"string","description":"Current status of a message batch","example":"Processing","enum":["Processing","Sent","Completed"]},"creationTime":{"type":"string","description":"The time at which the batch was created\n","format":"date-time"}},"description":"Batch of A2P SMS messages. This object provides a specification to send message(s) to many recipients. It contains top-level attributes which apply to all messages. In addition to that, it is possible to override this attribute for each message. This way a single API call may be used to send individual messages to many recipients"}}}},"400":{"description":"Validation Failed, Invalid Request","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"401":{"description":"Unauthorized error","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"500":{"description":"Service is not available","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}}},"x-codegen-request-body-name":"body","x-docs-level":"Public","x-auth-required":true,"x-service-version":"v1","x-service-interface":"rest","x-api-group":"asg/a2p-sms/batch","x-service-name":"asg","x-internal-api":false,"x-metered-api":false,"x-throttling-group":"Light","x-availability":"High","x-team":"PLA RnD","x-app-permission":"A2PSMS","x-feature":"SMSSending","x-beta-api":true,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/a2p-sms/messages/{messageId}":{"get":{"tags":["High Volume SMS"],"summary":"Get A2P SMS","description":"Returns the details of an A2P SMS message by ID.","operationId":"readA2PSMS","parameters":[{"name":"accountId","in":"path","required":true,"description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","example":"123324769","schema":{"type":"string"}},{"name":"messageId","in":"path","description":"Internal identifier of a message to be retrieved","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Message Infomation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Internal identifier of a message","example":"1234"},"from":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the message was sent","example":15551234567},"to":{"type":"array","description":"List of phone numbers in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format to which the message was sent","example":15551234567,"items":{"type":"string"}},"text":{"type":"string","description":"Text of a message, maximum number of characters is 1000","example":"Hello, World!"},"creationTime":{"type":"string","format":"date-time","description":"The time when this is message was created."},"lastModifiedTime":{"type":"string","format":"date-time","description":"The time when this message was last updated."},"messageStatus":{"type":"string","description":"Current status of a message","example":"Queued","enum":["Queued","Delivered","Sent","SendingFailed","DeliveryFailed"]},"segmentCount":{"type":"integer","description":"Number of segments of a message","format":"int64","example":1},"cost":{"type":"number","description":"Cost of a message","format":"double","example":0.007},"batchId":{"type":"string","description":"The batch in which the message was submitted","example":"batch12345"},"direction":{"type":"string","enum":["Inbound","Outbound"],"description":"Indicates whether the message is outbound or inbound","example":"out"},"errorCode":{"type":"string","description":"RC error code of the message sending failure reason","example":"SMS-RC-503"}},"description":"Detailed information on a message"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"401":{"description":"Unauthorized error","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"404":{"description":"The message is not found","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"500":{"description":"Service is not available","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}}},"x-docs-level":"Public","x-auth-required":true,"x-service-version":"v1","x-service-interface":"rest","x-api-group":"asg/a2p-sms/messages","x-service-name":"asg","x-internal-api":false,"x-metered-api":false,"x-throttling-group":"Light","x-availability":"High","x-team":"PLA RnD","x-app-permission":"A2PSMS","x-feature":"SMSSending","x-beta-api":true,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/a2p-sms/batch/{batchId}":{"get":{"tags":["High Volume SMS"],"summary":"Get A2P SMS Batch","description":"Returns information on a message batch.","operationId":"readA2PBatch","parameters":[{"name":"accountId","in":"path","required":true,"description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","example":"123324769","schema":{"type":"string"}},{"name":"batchId","in":"path","required":true,"description":"Internal identifier of a message batch to be retrieved","example":"55577","schema":{"type":"string"}}],"responses":{"200":{"description":"Message batch information","content":{"application/json":{"schema":{"required":["from","messages"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the message batch","readOnly":true,"example":"12345"},"from":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the messages are going to be sent","example":15551234567},"batchSize":{"type":"integer","description":"Total number of messages in the accepted batch","example":5},"processedCount":{"type":"integer","description":"Total number of messages currently processed in the batch","example":1},"lastModifiedTime":{"type":"string","description":"The last time the batch was processed.\n","format":"date-time"},"status":{"type":"string","description":"Current status of a message batch","example":"Processing","enum":["Processing","Sent","Completed"]},"creationTime":{"type":"string","description":"The time at which the batch was created\n","format":"date-time"}},"description":"Batch of A2P SMS messages. This object provides a specification to send message(s) to many recipients. It contains top-level attributes which apply to all messages. In addition to that, it is possible to override this attribute for each message. This way a single API call may be used to send individual messages to many recipients"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"401":{"description":"Unauthorized error","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"404":{"description":"The batch is not found","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"500":{"description":"Service is unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}}},"x-docs-level":"Public","x-auth-required":true,"x-service-version":"v1","x-service-interface":"rest","x-api-group":"asg/a2p-sms/batch","x-service-name":"asg","x-internal-api":false,"x-metered-api":false,"x-throttling-group":"Light","x-availability":"High","x-team":"PLA RnD","x-app-permission":"A2PSMS","x-feature":"SMSSending","x-beta-api":true,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/a2p-sms/messages":{"get":{"tags":["High Volume SMS"],"summary":"Get A2P SMS List","description":"Returns the list of outbound/inbound A2P messages sent from/to A2P phone numbers of the current account. The list can be filtered by message batch ID and/or phone number.","operationId":"listA2PSMS","parameters":[{"name":"accountId","in":"path","required":true,"description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","example":"123324769","schema":{"type":"string"}},{"name":"batchId","required":false,"in":"query","description":"Internal identifier of a message batch used for filtering records","schema":{"type":"string"},"example":"1234"},{"name":"direction","in":"query","required":false,"description":"Direction of a message to filter the message list result. By default there is no filter applied - both Inbound and Outbound messages are returned","schema":{"type":"string","enum":["Inbound","Outbound"]},"example":"Outbound"},{"name":"view","in":"query","required":false,"description":"Indicates if the response has to be detailed, includes text in the response if detailed","schema":{"type":"string","default":"Simple","enum":["Simple","Detailed"]}},{"name":"dateFrom","in":"query","required":false,"description":"Date to filter message list result. Messages with `creationTime` later than or equal to `dateFrom` value are returned. The default value is 1 day before the current datetime","schema":{"type":"string"},"example":"2020-11-09T16:07:52.597Z"},{"name":"dateTo","in":"query","required":false,"description":"Date to filter message list result. Messages with `creationTime` earlier than `dateTo` value are returned. The default is the current datetime","schema":{"type":"string"},"example":"2020-11-25T16:07:52.597Z"},{"name":"phoneNumber","in":"query","required":false,"style":"form","explode":true,"description":"List of phone numbers (specified in 'to' or 'from' fields of a message) to filter the results. Maximum number of phone numbers allowed to be specified as filters is 15","schema":{"type":"array","items":{"type":"string"}},"example":"phoneNumber=15551234455&phoneNumber=15551235577"},{"name":"pageToken","in":"query","required":false,"description":"Token of a page to be retrieved","schema":{"type":"string"},"example":"pgt1"},{"name":"perPage","in":"query","description":"Number of messages to be returned per request","schema":{"type":"integer","format":"int64","default":1000},"example":1}],"responses":{"200":{"description":"A2P SMS Message List","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","description":"An array containing individual messages","items":{"type":"object","properties":{"id":{"type":"integer","description":"Internal identifier of a message","format":"int64","example":1234},"batchId":{"type":"string","description":"Internal identifier of a batch the message was submitted in","example":"12345"},"from":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the message is sent","example":15551234567},"to":{"type":"array","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format to which a message is sent","example":15551234567,"items":{"type":"string"}},"creationTime":{"type":"string","format":"date-time","description":"The time at which the message was created"},"lastModifiedTime":{"type":"string","format":"date-time","description":"The time at which the messages was last updated"},"messageStatus":{"type":"string","description":"Current status of a message","example":"Queued","enum":["Queued","Delivered","Sent","SendingFailed","DeliveryFailed"]},"segmentCount":{"type":"integer","description":"Number of segments of a message","format":"int64","example":1},"text":{"type":"string","description":"Text of a message. Returned if the `view` parameter is set to 'Detailed'"},"cost":{"type":"number","description":"Cost of a message","format":"double","example":0.007},"direction":{"type":"string","enum":["Inbound","Outbound"],"description":"Indicates whether the message was outbound or inbound","example":"out"},"errorCode":{"type":"string","description":"The RC error code of the message sending failure reason","example":"SMS-RC-503"}},"description":"Infomation on a message returned within the specified batch"}},"paging":{"type":"object","properties":{"pageToken":{"type":"string","description":"Page token of the current response list","example":"pgt1"},"perPage":{"type":"integer","description":"Number of records per page","example":3},"firstPageToken":{"type":"string","description":"First page token of the current filter criteria","example":"fpgt1"},"previousPageToken":{"type":"string","description":"Previous page token of the current filter criteria","example":"lpgt1"},"nextPageToken":{"type":"string","description":"Next page token of the current filter criteria","example":"npgt1"}},"description":"Pagination details"}},"description":"List of messages retrieved for an account and other filter criteria such as `batchId` and `fromPhoneNumber` specified in the request"}}}},"400":{"description":"Invalid Request","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"404":{"description":"No resource found for the account.","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"500":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}}},"x-docs-level":"Public","x-auth-required":true,"x-service-version":"v1","x-service-interface":"rest","x-api-group":"asg/a2p-sms/messages","x-service-name":"asg","x-internal-api":false,"x-metered-api":false,"x-throttling-group":"Light","x-availability":"High","x-team":"PLA RnD","x-app-permission":"A2PSMS","x-feature":"SMSSending","x-beta-api":true,"x-error-codes":null}},"/restapi/v1.0/account/{accountId}/a2p-sms/opt-outs":{"get":{"tags":["High Volume SMS"],"summary":"Get Opted Out Numbers","description":"Returns the list of numbers opted out from the account. The list can be filtered by `to`/`from` phone number query parameters. Specifying `text/csv` in the Accept header downloads the data in CSV format.","operationId":"readA2PSMSOptOuts","parameters":[{"name":"accountId","in":"path","required":true,"description":"Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session","example":"123324769","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"The sender's phone number (`from` field) in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format for filtering messages","schema":{"type":"string"},"example":"15551234455"},{"name":"to","in":"query","required":false,"description":"The reciever's phone number (`to` field) in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format for filtering messages","example":"15551237755","schema":{"type":"string"}},{"name":"pageToken","in":"query","description":"Token of the page to be retrieved","schema":{"type":"string"}},{"name":"perPage","in":"query","description":"Number of records to be returned for the page","schema":{"type":"integer","format":"int64","default":1000},"example":5}],"responses":{"200":{"description":"The list of opt records for the account filtered by the search criteria provided as query param","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","description":"List of individual opt-out number records","items":{"type":"object","properties":{"from":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the recipient has opted out","example":15551234567},"to":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format which is opted out","example":15551234567}},"description":"Opt-out record"}},"paging":{"type":"object","properties":{"pageToken":{"type":"string","description":"Page token of the current response list","example":"pgt1"},"perPage":{"type":"integer","description":"Number of records per page","example":3},"firstPageToken":{"type":"string","description":"First page token of the current filter criteria","example":"fpgt1"},"previousPageToken":{"type":"string","description":"Previous page token of the current filter criteria","example":"lpgt1"},"nextPageToken":{"type":"string","description":"Next page token of the current filter criteria","example":"npgt1"}},"description":"Pagination details"}},"description":"Opt-out phone numbers information"}},"text/csv":{"schema":{"type":"object","properties":{"records":{"type":"array","description":"List of individual opt-out number records","items":{"type":"object","properties":{"from":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the recipient has opted out","example":15551234567},"to":{"type":"string","description":"Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format which is opted out","example":15551234567}},"description":"Opt-out record"}},"paging":{"type":"object","properties":{"pageToken":{"type":"string","description":"Page token of the current response list","example":"pgt1"},"perPage":{"type":"integer","description":"Number of records per page","example":3},"firstPageToken":{"type":"string","description":"First page token of the current filter criteria","example":"fpgt1"},"previousPageToken":{"type":"string","description":"Previous page token of the current filter criteria","example":"lpgt1"},"nextPageToken":{"type":"string","description":"Next page token of the current filter criteria","example":"npgt1"}},"description":"Pagination details"}},"description":"Opt-out phone numbers information"}}}},"400":{"description":"Invalid Request","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"404":{"description":"No resource found for the account","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}},"500":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","description":"Collection of all gathered errors","readOnly":true,"items":{"type":"object","properties":{"errorCode":{"type":"string","description":"Code that characterizes this error. Code uniqly identifies the source of the error.","readOnly":true},"message":{"type":"string","description":"Message that describes the error. This message can be used in UI.","readOnly":true}},"description":"Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed"}}},"description":"Format of response in case that any error occured during request processing"}}}}},"x-docs-level":"Public","x-auth-required":true,"x-service-version":"v1","x-service-interface":"rest","x-api-group":"asg/a2p-sms/opt-outs","x-service-name":"asg","x-internal-api":false,"x-metered-api":false,"x-throttling-group":"Light","x-availability":"High","x-team":"PLA RnD","x-app-permission":"A2PSMS","x-feature":"SMSSending","x-beta-api":true,"x-error-codes":null}}},"x-chapters":[{"title":"Welcome","x-tag-group":"Using the API","description":"\n*The RingCentral Connect Platform API* can be accessed at `https://platform.ringcentral.com`. \nIf you work with non-production servers you should use other entry points. For example, RingCentral Sandbox environment is accessible at `https://platform.devtest.ringcentral.com.`\nIf you are not sure which URI to use for your environment, please contact [RingCentral Technical Support](https://developers.ringcentral.com/support.html) to get proper connection settings.\n*Please note* that for security reasons connection is only allowed using HTTPS protocol to the default HTTPS port #443, so the port can be omitted in the URI.\n\n**API resources** are organized in a hierarchical manner and presented in a tree-like structure.\n**All paths** are started from `/restapi`. \n**A typical link to API resource** looks as follows: `https://platform.ringcentral.com/restapi/v1.0/account/159048008/extension/171857008/call-log?dateFrom=2017-08-26`\n*Please note* that RingCentral users associate an account with the company main phone number and an extension with the short extension number, but both *accountId* and *extensionId* are internal identifiers.\n**A typical API usage scenario** includes accessing particular resources on behalf of a user whose credentials (phone number, extension number and password) were passed on authentication phase. \nIn this case the API enables simplified syntax of specifying account and extension identifiers by the tilde symbol (~). It can be used as a replacement for both *accountId* and *extensionId* if you are going to access data that belongs to account/extension you are currently logged in to. \nFor example, if the user successfully authenticated with the account #159048008 and extension #171857008 then the URI to retrieve the call log resource may be written as follows: `https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/call-log?dateFrom=2017-08-26`.\n"},{"title":"Changelog","x-tag-group":"Using the API","description":"\n","children":[{"title":"2021 Feb (21.1)","description":"*1.0.46*\n\n* 🔐 **advanced**: appropriate App Permission has *Advanced* access level - API available to 3rd party developers by request;\n* ⚠️ potential **compatibility breaker**;\n* ⭐️ new API methods introduced;\n* ⛔️ API methods deprecated;\n* 🔧 bug fixes.\n\n---\n\n### Voice\n\n#### Call Handling Rules\n\n* Filter by Custom type in Call Handling rules API\n|Changed Methods|\n|-----------|\n| `GET /account/~/extension/~/answering-rule?type=Custom`|\n\n---\n\n#### Call Recording Settings\n\n* retention details are supported\n\n|Changed Methods|\n|-----------|\n| `GET /account/{accountId}/call-recording`|\n\n---\n\n### Account\n\n#### User Settings\n\n* new 'groupCallpickup' extension type supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension`|\n|`GET /account/{accountId}/extension/{extensionId}`|\n|`PUT /account/{accountId}/extension/{extensionId}`|\n\n---\n\n### Address Book\n\n#### Internal Contacts\n\n* new 'groupCallpickup' extension type supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/accountId/directory/entries`|\n|`GET /account/accountId/directory/entries/{entryId}`|\n|`GET /account/accountId/directory/entries/search`|\n\n---\n\n### Events & Notifications\n\n#### Notification Types\n\n* `sipData` query parameter is supported for telephony/session notifications \n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/telephony/sessions?sipData=true`]|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}telephony/sessions?sipData=true`]|\n\n---\n\n* new event filter for DND change is supported\n\n|New Event Filters|\n|---------------------|\n|⭐️ [`/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/dnd`]|\n\n---\n\n"},{"title":"2020 Nov (20.4)","description":"*1.0.45*\n\n* 🔐 **advanced**: appropriate App Permission has *Advanced* access level - API available to 3rd party developers by request;\n* ⚠️ potential **compatibility breaker**;\n* ⭐️ new API methods introduced;\n* ⛔️ API methods deprecated;\n* 🔧 bug fixes.\n\n---\n\n### Voice \n\n#### Call Handling Rules\n\n* call queue member name is now available\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/answering-rule/business-hours-rule`|\n\n---\n\n* custom Time Zone is now supported\n\n|Changed Methods|\n|-----------|\n|🔧 `POST /account/{accountId}/extension/{extensionId}/answering-rule`|\n|🔧 `PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n\n---\n\n* IMS number in answering rules\n\n|Changed Methods|\n|-----------|\n| `GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n| `PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n\n---\n\n### Meetings\n\n#### Meeting Configuration\n\n|New Methods|\n|-----------|\n|⭐ `POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting-configuration/profile-image`|\n\n---\n\n* new scheduling settings\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/meeting/user-settings`|\n|`GET /account/{accountId}/meeting/locked-settings`|\n\n---\n\n* new 'ThirdParty' option for audio\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/meeting/user-settings`|\n\n---\n\n### Account\n\n#### User Settings\n\n* new 'DelegatedLinesGroup' extension type supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}`|\n|`PUT /account/{accountId}/extension/{extensionId}`|\n\n---\n\n#### Bulk Update Extension\n\n|New Methods|\n|-----------|\n|⭐ `POST /restapi/v1.0/account/accountId/extension-bulk-update`|\n|⭐ `GET /restapi/v1.0/account/accountId/extension-bulk-update/tasks/taskId`|\n\n---\n\n### Provisioning\n\n#### Extensions\n\n* new 'DelegatedLinesGroup' extension type supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension`|\n\n---\n\n#### Video Configuration\n\n* new 'userLicenseType' supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/video-configuration`|\n|`PUT /account/{accountId}/extension/{extensionId}/video-configuration`|\n\n---\n\n### Address Book\n\n#### External Contacts\n\n##### Address Book Bulk Upload API\n\n|New Methods|\n|-----------|\n|⭐ `POST /account/{accountId}/address-book-bulk-upload`|\n|⭐ `GET /account/{accountId}/address-book-bulk-upload/tasks/{taskId}`|\n\n---\n\n* new 'ringtoneIndex' attribute supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/address-book/contact`|\n|`POST /account/{accountId}/extension/{extensionId}/address-book/contact`|\n|`PUT /account/{accountId}/extension/{extensionId}/address-book/contact`|\n|`GET /account/{accountId}/extension/{extensionId}/address-book/contact/{contactsId}`|\n|`PUT /account/{accountId}/extension/{extensionId}/address-book/contact/{contactsId}`|\n|`GET /account/{accountId}/extension/{extensionId}/address-book/contact/adress-book-sync`|\n\n---\n\n#### Internal Contacts\n\n* new 'DelegatedLinesGroup' extension type supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/accountId/directory/entries`|\n|`GET /account/accountId/directory/entries/{entryId}`|\n|`GET /account/accountId/directory/entries/search`|\n\n---\n\n### Events & Notifications\n\n#### Notification Types\n\n* `queueCall` flag is supported\n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/presence?detailedTelephonyState=true`]|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence?detailedTelephonyState=true`]|\n\n---\n\n"},{"title":"2020 Aug (20.3)","description":"*1.0.44*\n\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n---\n\n### Messaging\n\n#### Message Export\n\n* now only 2 parallel message report tasks are allowed\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n\n---\n\n### Call Management \n\n#### Rule Management\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n|`GET /account/{accountId}/extension/{extensionId}/answering-rule`|\n|`PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n|`PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n\n---\n\n##### Call Handling Rules Bugfixes\n\n* `BusinessMobileNumber` label supported\n\n|Changed Methods|\n|-----------|\n|🔧 `GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n|🔧 `PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n\n---\n\n### Meetings\n\n#### Meeting Configuration\n\n|New Methods|\n|-----------|\n|⭐️ `GET /account/{accountId}/extension/{extensionId}/meeting/locked-settings`|\n\n---\n\n#### Meeting Management \n\n##### Create Meetings\n\n* `muteParticipantsOnEntry` supported\n* `enforceLogin` supported\n* `enableWaitingRoom` supported\n* `globalDialInCountries` supported\n\n\n|Changed Methods|\n|-----------|\n|`POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting`|\n\n---\n\n##### Update Meeting\n\n* `enforceLogin` supported\n* `muteParticipantsOnEntry` supported\n* `enableWaitingRoom` supported\n* `globalDialInCountries` supported\n\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/meeting/{meetingId}`|\n|`PUT /account/{accountId}/extension/{extensionId}/meeting/{meetingId}`|\n\n---\n\n###### Meeting Invitation \n\n|New Methods|\n|-----------|\n|⭐️ `GET /account/{accountId}/extension/{extensionId}/meeting/{meetingId}/invitation`|\n\n---\n\n#### Meeting Recording\n\n##### Get Account Meeting Recordings List\n\n* `cfUri` supported\n* `filePath` supported\n\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/meeting-recording`|\n\n---\n\n##### Get User Meeting Recordings List\n\n* `cfUri` supported\n* `filePath` supported\n\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/meeting-recording`|\n\n---\n\n### Account \n\n#### Phone Numbers\n\n* `BusinessMobileNumber` usageType supported\n* `BusinessMobileNumberProvider` paymentType supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/{accountId}/phone-number`|\n\n---\n\n* `BusinessMobileNumber` usageType supported\n* `BusinessMobileNumberProvider` paymentType supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/phone-number`|\n\n---\n\n#### User Permissions\n\n* `domain` supported.\n\n|Changed Methods|\n|---------------|\n|`GET /restapi/v1.0/account/~/extension/~/authz-profile`|\n|`GET /restapi/v1.0/account/~/extension/~/authz-profile/check`|\n\n---\n\n#### User Settings\n\n* `ProxyAdmin` Extension type supported\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/extension/{extensionId}`|\n|`PUT /account/{accountId}/extension/{extensionId}`|\n\n---\n\n* Caller ID for Business Mobile device supported\n\n|Changed Methods|\n|---------------|\n|`GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-id`|\n|`PUT /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-id`|\n\n---\n\n#### Extensions\n\n* `ProxyAdmin` Extension type supported\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/extension/{extensionId}`|\n\n---\n\n### Address Book\n\n#### Internal Contacts\n\n* search by `jobTitle` and `department` supported, `searchFields` introduced\n\n|Changed Methods|\n|-----------|\n|`POST /restapi/v1.0/account/~/directory/entries/search`|\n\n---\n\n\n"},{"title":"2020 May (20.2)","description":"*1.0.43*\n\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n---\n\n### Voice\n\n#### Call Control\n\n##### Warm Transfer supported\n\n|New Methods|\n|-----------|\n|⭐️ `POST /account/{accountId}/telephony/{telephonySessionId}/parties/{partyId}/bridge`|\n\n##### Drop Party supported\n\n|Changed Methods|\n|-----------|\n|`DELETE /account/{accountId}/telephony/{telephonySessionId}/parties/{partyId}`|\n\n##### Answer Call Party\n\n* Call Queue calls supported\n\n|Changed Methods|\n|-----------|\n|`POST /account/{accountId}/telephony/{telephonySessionId}/parties/{partyId}/answer`|\n\n##### Transfer Call Party\n\n* Support extensionId in Transfer API\n\n|Changed Methods|\n|-----------|\n|`POST /account/{accountId}/telephony/{telephonySessionId}/parties/{partyId}/transfer`|\n\n---\n\n#### SIP\n\n* `emergency` and `device.phoneLines.id` supported\n\n|Changed Methods|\n|-----------|\n|`POST /client-info/sip-provision`|\n\n---\n\n### Call Management\n\n#### Rule Management\n\n##### Call Handling Rules Bugfixes\n\n* fixed a few scenarios when redundant forwarding phone numbers returned\n\n|Changed Methods|\n|-----------|\n|🔧 `GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n|🔧 `PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`|\n\n---\n\n### Meetings\n\n#### Meeting Configuration\n\n##### User Settings in Meetings API\n\n|New Methods|\n|-----------|\n|⭐️ `GET /account/{accountId}/extension/{extensionId}/meeting/user-settings`|\n\n---\n\n* 'usePMIForInstantMeetings' supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/meeting/service-info`|\n\n---\n\n### Account\n\n#### Company\n\n##### Contracted Country changes\n\n* 'contractedCountry' supported\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}`|\n|`GET /account/{accountId}/service-info`|\n\n---\n\n* 'currency' supported\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}`|\n\n---\n\n* 'freemiumProductType' supported\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}`|\n|`GET /account/{accountId}/service-info`|\n\n---\n\n#### Features\n\n##### New Features \n\n* 'EditEmailNotificationAppearance' feature supported\n* 'primaryApp' parameter\n* 'EmergencyCallNotification' feature supported \n\n|New Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/features`|\n\n---\n\n#### User Settings\n\n* `emailRecipients` supported\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/extension/{extensionId}/notification-settings`|\n|`PUT /account/{accountId}/extension/{extensionId}/notification-settings`|\n\n---\n\n#### Phone Numbers\n\n* 'A2PSMSSender' feature supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/phone-number`|\n\n---\n\n* 'ELIN' usageType supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/extension/{extensionId}/phone-number`|\n\n---\n\n### Provisioning\n\n#### Automatic Location Updates\n\n##### Emergency Locations changes\n\n* Application permission for Emergency Location List API changed from EditAccountInfo to ReadAccountInfo\n\n|Changed Methods|\n|-----------|\n|`GET /account/{accountId}/emergency-locations`|\n\n--- \n#### Devices\n\n##### Emergency support in Devices API\n\n* `emergency` supported.\n\n|Changed Methods|\n|---------------|\n|[`PUT /account/{accountId}/device/{deviceId}`]\n\n---\n\n### Events & Notification\n\n#### Notification Types\n\n* new 'AnsweringRules' hint supported\n* filter by hint is now supported for Extension List & Extension Info subscription\n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/extension`](/Extension-List-Event)|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}`](/Extension-Info-EventEvent)|\n\n---\n\n##### Emergency Address change notifications\n\n* new event filter supported\n\n|Changed Event Filters|\n|---------------------|\n|⭐ [`/restapi/v1.0/account/{accountId}/device/{dedviceId/emergency-address}`]|\n\n--- \n\n##### CCRN phone number change notifications\n\n* new event filter supported\n\n|Changed Event Filters|\n|---------------------|\n|⭐ [`/restapi/v1.0/account/{accountId}/phone-number?usageType=ContactCenterNumber`]|\n\n--- \n\n\n"},{"title":"2020 Feb (20.1)","description":"*1.0.42*\n\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Glip\n\n#### Notes\n\n* increased limit \n\n|Changed Methods|\n|---------------|\n|[`POST /glip/chats/chatId/notes`]|\n|[`PATCH /glip/chats/chatId/notes/{noteId}`]|\n\n#### Glip Compliance Exports\n\n* 'Expired' status supported\n* 'Canceled' status change\n\n|Changed Methods|\n|---------------|\n|[`GET /glip/data-export`]|\n|[`GET /glip/data-export/{taskId}`]|\n\n---\n\n### Call Management\n\n#### Call Routing\n\n##### Sites supported for IVR Menus\n* 'site' is supported in IVR Menus APIs\n\n|Changed Methods|\n|---------------|\n|[`POST account/{accountId}/ivr-menus`](/Call-Routing/createIVRPrompt)|\n|[`PUT account/{accountId}/ivr-menus/{ivrMenuId}`](/Call-Routing/updateIVRPrompt)|\n|[`GET account/{accountId}/ivr-menus/{ivrMenuId}`](/Call-Routing/readIVRPrompt)|\n\n---\n\n### Meetings\n\n#### Meeting Configuration\n\n##### Meeting Features\n\n|New Methods|\n|-----------|\n|⭐️ `GET /account/{accountId}/meeting-features`|\n---\n\n#### Meeting Management\n\n* new `meetingType` attribute supported for recurrent meetings.\n\n|Changed Methods|\n|-----------|\n|`POST /account/{accountId}/extension/{extensionId/meeting`|\n|`GET /account/{accountId}/extension/{extensionId/meeting`|\n|`GET /account/{accountId}/extension/{extensionId/meeting/{meetingId}`|\n|`PUT /account/{accountId}/extension/{extensionId/meeting/{meetingId}`|\n\n* new 'autoRecordType' supported\n\n|Changed Methods|\n|-----------|\n|`POST /account/{accountId}/extension/{extensionId/meeting`|\n\n---\n\n### Autentification\n\n* 🔧 OAU-164 - new error code for invalid client app is used for token revocation case\n* 🔧 OAU-165 - new error code for sandbox client app is not allowed case\n\n---\n\n### Account\n\n#### Company\n\n##### Custom Fields \n\n|New Methods|\n|-----------|\n|⭐️ `POST /account/{accountId}/custom-fields`|\n|⭐️ `GET /account/{accountId}/custom-fields`|\n|⭐️ `PUT /account/{accountId}/custom-fields/{fieldId}`|\n|⭐️ `DELETE /account/{accountId}/custom-fields/{fieldId}`|\n\n---\n\n#### Features\n\n##### Account Limits and Federation Flag\n\n* new feature flag `FederatedAccount` supported\n* new feature params FreeSoftPhones: limitMax, InternalCalling: extensionNumberLengthMax, SiteCodes: siteCodeLength, SiteCodes: shortExtensionNumberLength supported.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/features`](/Features/readUserFeatures)|\n\n##### Emergency Locations\n\n* new feature flags `ReadEmergencyLocations`, `EditEmergencyLocations`, `ReadExtensionEmergencyLocations` supported\n\n#### User Permissions\n\n##### Emergency Locations\n\n* new permissions `ReadEmergencyLocations`, `EditEmergencyLocations` supported\n\n#### User Settings\n\n##### Custom Fields \n* new attribute `customFields.id` supported.\n* new attribute `customFields.value` supported.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}`](/User-Settings/readExtension)|\n|[`PUT /account/{accountId}/extension/{extensionId}`](/User-Settings/updateExtension)|\n\n---\n\n### Provisioning\n\n#### Automatic Location Updates\n\n##### Emergency Locations change\n\n* User emergency location list supported \n* Emergency Response Locations changes\n* `validateOnly` query parameter supported\n\n|New Methods|\n|-----------|\n|⭐ `GET /account/{accountId}/extension/{extensionId}/emergency-locations`|\n\n|Changed Methods|\n|-----------|\n|`GET /account/~/emergency-locations`|\n|`POST /account/~/emergency-locations`|\n|`GET /account/~/emergency-locations/{locationId}`|\n|`DELETE /account/~/emergency-locations/{locationId}`|\n\n#### Devices\n\n##### Emergency Locations changes\n\n* `emergency` supported\n\n|Changed Methods|\n|-----------|\n|`GET /account/~/device/{deviceId}`|\n|`PUT /account/~/device/{deviceId}`|\n|`GET /account/~/extension/{extensionId}/device`|\n\n##### Custom Fields\n* new attribute `customFields.id` supported.\n* new attribute `customFields.value` supported.\n\n|Changed Methods|\n|---------------|\n|[`POST /account/{accountId}/extension`](/Extensions/createExtension)|\n\n---\n\n### Events & Notifications\n\n#### Notification Types\n* new \"VideoConfiguration\" hint supported\n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/extension`](/Extension-List-Event)|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}`](/Extension-Info-EventEvent)|\n\n##### Presence Notifications for Not Activated Users\n\n* Added ability to monitor presence of non-activated Users. \n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/presence`](/Account-Extension-Presence-Event)|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence`](/Extension-Presence-Event)|\n\n##### Queue Calls Display Info in Presence API\n\n* `callInfo` attribute added to notification payload.\n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/presence`](/ExtAccount-Extension-Presence-Event)|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence`](/Extension-Presence-Event)|\n\n---\n\n##### Support \"missedCall\" query parameter for telephony/sessions subscriptions\n\n* Ability to subscribe on Telephony Sessions notifications where \"missedCall\" flag is explicitly set to \"true\". \n\n|Changed Event Filters|\n|---------------------|\n|[`/restapi/v1.0/account/{accountId}/telephony/sessions?missedCall=true`](/Account-Telephony-Sessiona-Event)|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}/telephony/sessions?missedCall=true`](/Extension-Telephony-Sessiona-Event)|\n\n---\n\n"},{"title":"2019 Dec","description":"\n\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Account\n\n#### Features\n\n##### Room Connector\n\n* new feature flag `EditRoomConnector` supported.\n\n|Changed Methods|\n|---------------|\n|[`GET account/{accountId}/extension/{extensionId}/features`](/Features/readUserFeatures)|\n\n---\n\n#### Phone Numbers\n\n##### ⚠ Toll Free SMS Sender Phone Number Feature Removal\n\n* `TollFreeSmsSender` value not supported anymore for `features` attribute.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/phone-number`](/Phone-Numbers/listExtensionPhoneNumbers)|\n\n### Voice\n\n#### Call Control\n\n##### ⭐ Call Monitoring: Party Supervise\n\n|New Methods|\n|-----------|\n|⭐️ `POST /account/{accountId}/telephony/sessions/{sessionId}/parties/{partyId}/supervise`|\n---\n\n##### Call Session Status\n\n* new 'parties.accountId' and 'parties.extensionId' attributes supported.\n* existing 'parties.owner.accountId' and 'parties.owner.extensionId' are deprecated\n\n|Changed Methods|\n|-----------|\n|️ `GET /account/{accountId}/telephony/sessions/{sessionId}`|\n|️ `GET /account/{accountId}/telephony/sessions/{sessionId}/parties/{partyId}`|\n\n---\n\n"},{"title":"2019 Nov","description":"*1.0.41*\n\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Account\n\n#### Phone Numbers\n\n##### Status Filter\n\n* new `status` query parameter is supported.\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/phone-number`|\n|`GET /account/{accountId}/extension/{extensionId}/phone-number`|\n\n#### User Settings\n\n##### Call Queue Manager Grants\n\n* new `extensionType` query parameter supported;\n* new `callQueueSetup`, `callQueueMembersSetup`, `extension.name` response attributes added.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/grant`](\"#User-Settings-listExtensionGrants\")|\n\n----\n\n### Authentication\n\n##### ⚠️ Tokens\n\n* new error code:`OAU-163` introduced: \"Login of this call queue is not allowed as queue managers are selected from the user list.\"\n\n|Changed Methods|\n|---------------|\n|[`POST /restapi/oauth/token`](#Get-Token)|\n\n----\n\n### Call Management\n\n#### Call Routing\n\n##### IVR Prompt Size\n\n* max IVR prompt size increased to 20Mb.\n\n|Changed Methods|\n|---------------|\n|🔐 [`POST /account/{accountId}/ivr-prompts`](#Call-Routing-createIVRPrompt)\n\n#### Rule Management\n##### ⚠️ Shared Line Group Call Handling Rules\n\n* new `SharedLines` value supported for `callHandlingAction` attribute.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/answering-rule`](#Rule-Management-createAnsweringRule)|\n|[`POST /account/{accountId}/extension/{extensionId}/answering-rule`](#Rule-Management-listAnsweringRules)|\n|[`GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](#Rule-Management-readAnsweringRule)|\n|[`PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](#Rule-Management-updateAnsweringRule)|\n\n##### Shared Line Group Hold Music\n\n* `HoldMusic` value supported for greeting `type` attribute;\n* `HoldMusic` value supported for `greetings[].type` attribute.\n\n|Changed Methods|\n|---------------|\n|[`POST /account/{accountId}/extension/{extensionId}/greeting`](Rule-Management/createCustomUserGreeting)|\n|[`GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](Rule-Management/readAnsweringRule)|\n\n----\n\n### Events & Notifications\n\n#### Extension Change Event\n##### ⚠️ New Hints\n\n* new values `AccountSettings`, `AccountStatus`, `CompanyNumbers`, `Features`, `Limits`, `Permissions` supported for `hints` attibute in notification payload;\n* values `AccountInfo`, `PhoneNumber`, `Role` suppressed.\n\n|Changed Notification Payloads|\n|-----------------------------|\n|`/restapi/v1.0/account/{accountId}/extension/{extensionId}`|\n\n----\n\n### Meetings\n\n#### Meeting Configuration\n\n##### ⭐️ Personal Meeting ID\n\n|New Methods|\n|-----------|\n|⭐️ `PATCH /account/{accountId}/extension/{extensionId}/meeting/service-info`|\n\n---\n\n### Messaging\n\n#### Fax\n\n##### Fax Size Limit Increased\n\n* Max attachment size limit (each/total) increased to 50Mb.\n\n|Changed Methods|\n|---------------|\n|[`POST /account/{accountId}/extension/{extensionId}/fax`](Fax/createFaxMessage)|\n\n### Provisioning\n\n#### Devices\n##### Country/State ID in Request\n\n* `countryId` and `stateId` request attributes supported.\n\n|Changed Methods|\n|---------------|\n|🔐 [`PUT /account/{accountId}/device/{deviceId}`](#Devices-updateDevice)]\n\n##### Emergency Address for Shared Line Group Devices\n\n* address updating supported for SLG devices.\n\n|Changed Methods|\n|---------------|\n|🔐 [`PUT /account/{accountId}/device/{deviceId}`](#Devices-updateDevice)]\n\n----\n\n### Voice\n\n#### Call Control\n\n##### ⚠️ Call Out Origin\n\n* new value `CallOut` supported for `origin.type` attribute.\n\n|Changed Methods|\n|---------------|\n|[`POST /account/{accountId}/telephony/call-out`](Call-Control/createCallOutCallSession)|\n|[`GET /account/{accountId}/telephony/sessions/{sessionId}`](Call-Control/readCallSessionStatus)|\n\n#### Call Log\n\n##### Short Recording Indicator\n\n* `[records.]shortRecording` and `[records.]legs.shortRecording` attributes added. \n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/call-log[/{recordId}]`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log/[{recordId}]`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log-sync`|\n\n##### 🔧 Sync Recording Filter Fix\n\n* issue with incorrect behavior of `withRecording` filter (returning calls without recording in some cases) fixed.\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/extension/{extensionId}/call-log-sync`|\n\n##### Telephony Session ID\n\n* `telephonySessionId` attribute added.\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/call-log`|\n|`GET /account/{accountId}/call-log/{callRecordId}`|\n|`GET /account/{accountId}/call-log-sync`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log/{callRecordId}`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log-sync`|\n|`GET /account/accountId/active-calls`|\n|`GET /account/{accountId}/extension/{extensionId}/active-calls`|\n\n---\n\n"},{"title":"2019 Oct","description":"\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Messaging\n\n#### Message Exports\n##### ⚠️ Phone Number Masking\n\n* `from.phoneNumber` and `to.phoneNumber` attribute values may be returned with last four digits masked in certain conditions, e.g. `+3351234XXXX`.\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/message-store-report/{taskId}/archive/{archiveId}`|\n\n----\n\n### Voice\n\n#### Call Log\n\n##### ⚠️ Phone Number Masking\n\n* `phoneNumber` attribute value may be returned with last four digits masked in certain conditions, e.g. `+3351234XXXX`.\n\n|Changed Methods|\n|---------------|\n|`GET /account/{accountId}/call-log`|\n|`GET /account/{accountId}/call-log/{callRecordId}`|\n|`GET /account/{accountId}/call-log-sync`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log/{callRecordId}`|\n|`GET /account/{accountId}/extension/{extensionId}/call-log-sync`|\n|`GET /account/accountId/active-calls`|\n|`GET /account/{accountId}/extension/{extensionId}/active-calls`|\n\n---\n\n"},{"title":"2019 Sep","description":"\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Authentication\n\n##### HS256 Signed Tokens Restriction\n\n* new error code `OAU-347` introduced: \"An algorithm which is used for assertion signing is not supported for JWT Bearer grant type\".\n\n|Changed Methods|\n|---------------|\n|[`POST /restapi/oauth/token`](#Get-Token)|\n\n---\n\n"},{"title":"2019 Aug","description":"*1.0.40*\n\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Account\n\n#### Phone Numbers\n\n##### Temporary Numbers\n\n* `temporaryNumber` attribute added.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{id}/phone-number`](#Phone-Numbers-listAccountPhoneNumbers)|\n|[`GET /account/{id}/phone-number/{numberId}`](#Phone-Numbers-readAccountPhoneNumber)|\n\n#### User Settings\n\n##### Conferencing Premium Numbers\n\n* `phoneNumbers.premium` attribute added.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/conferencing`](#User-Settings-readConferencingSettings)|\n|[`PUT /account/{accountId}/extension/{extensionId}/conferencing`](#User-Settings-updateConferencingSettings)|\n\n---\n\n### Call Management\n\n#### Rule Management\n\n##### 🔧 Call Queue Max Callers Limit\n\n* `queue.maxCallers` max value decreased to 25.\n\n|Changed Methods|\n|---------------|\n|[`PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](#Rule-Management-updateAnsweringRule)|\n\n##### 🔧 Call Queue Wrap-up Time Limit\n\n* `queue.wrapUpTime` max value increased to 300.\n\n|Changed Methods|\n|---------------|\n|[`PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](#Rule-Management-updateAnsweringRule)|\n\n##### Music on Hold for Limited Extensions\n\n* `HoldMusic` greeting type supported for extensions of `Limited` type.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/answering-rule`](#Rule-Management-createAnsweringRule)|\n|[`POST /account/{accountId}/extension/{extensionId}/answering-rule`](#Rule-Management-listAnsweringRules)|\n|[`GET /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](#Rule-Management-readAnsweringRule)|\n|[`PUT /account/{accountId}/extension/{extensionId}/answering-rule/{ruleId}`](#Rule-Management-updateAnsweringRule)|\n\n---\n\n### Events & Notifications\n\n#### Reply with Text Reason\n\n* `parties.state.reason` attribute added to notification payload.\n\n|Changed Notification Payloads|\n|-----------------------------|\n|[`/restapi/v1.0/account/{accountId}/telephony/sessions`](#Account-Telephony-Sessions-Event)|\n|[`/restapi/v1.0/account/{accountId}/extension/{extensionId}/telephony/sessions`](#Extension-Telephony-Sessions-Event)|\n\n### Messaging\n\n#### Fax\n\n##### ⭐️ Fax Cover Page Settings\n\n|New Methods|\n|-----------|\n|⭐️ `GET /account/{accountId}/extension/{extensionId}/fax-cover-page`|\n|⭐️ `PUT /account/{accountId}/extension/{extensionId}/fax-cover-page`|\n\n##### ⚠️ New Error Codes\n\n* `WrongNumber` and `AllLinesInUse` values supported for `records[].to[].faxErrorCode` attribute.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/extension/{extensionId}/message-store`](#Fax-listMessages)|\n|[`GET /account/{accountId}/extension/{extensionId}/message-sync`](#Fax-syncMessages)|\n\n#### Message Store\n\n##### 🔧 Message Deletion\n\n* if the message is already deleted, `HTTP 204` returned instead of `HTTP 404`.\n\n|Changed Methods|\n|---------------|\n|[`DELETE /account/{accountId}/extension/{extensionId}/message-store/{messageId}`](#Message-Store-deleteMessage)|\n\n#### ⭐️ MMS\n\n* dedicated `mms` endpoint supported.\n\n|New Methods|\n|-----------|\n|⭐️ `POST /account/{accountId}/extension/{extensionId}/mms`|\n\n---\n\n### Provisioning\n\n#### Automatic Location Updates\n\n##### ⭐️ 🔐 Emergency Response Locations\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 `GET /account/{accountId}/emergency-locations`|\n|⭐️ 🔐 `POST /account/{accountId}/emergency-locations`|\n|⭐️ 🔐 `GET /account/{accountId}/emergency-locations/{locationId}`|\n|⭐️ 🔐 `PUT /account/{accountId}/emergency-locations/{locationId}`|\n|⭐️ 🔐 `DELETE /account/{accountId}/emergency-locations/{locationId}`|\n\n##### 🔐 Emergency Response Locations Applying\n\n* `emergencyLocationId` parameter supported.\n\n|Changed Methods|\n|---------------|\n|🔐 [`POST account/{accountId}/emergency-address-auto-update/networks`](#Emergency-Address-Settings-postEmergencyAddressAutoUpdateNetwork)|\n|🔐 [`PUT account/{accountId}/emergency-address-auto-update/networks/{networkId}`](#Emergency-Address-Settings-updateEmergencyAddressAutoUpdateNetwork)|\n|🔐 [`GET account/{accountId}/emergency-address-auto-update/networks`](#Emergency-Address-Settings-getEmergencyAddressAutoUpdateNetworks)|\n|🔐 [`GET account/{accountId}/emergency-address-auto-update/networks/{networkId}`](#Emergency-Address-Settings-getEmergencyAddressAutoUpdateNetwork)|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/switches`|\n|🔐 `PUT /account/{accountId}/emergency-address-auto-update/switches/{switchId}`|\n|🔐 `GET /account/{accountId}/emergency-address-auto-update/switches`|\n|🔐 `GET /account/{accountId}/emergency-address-auto-update/switches/{switchId}`|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/switches-bulk-create`|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/switches-bulk-update`|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/switches-bulk-validate`|\n|🔐 [`POST account/{accountId}/emergency-address-auto-update/wireless-points`](#Emergency-Address-Settings-createEmergencyAddressAutoUpdateWirelessPoint)|\n|🔐 [`PUT account/{accountId}/emergency-address-auto-update/wireless-points/{pointId}`](#Emergency-Address-Settings-emergencyAddressAutoUpdateWirelessPointUpdate)|\n|🔐 [`GET account/{accountId}/emergency-address-auto-update/wireless-points`](#Emergency-Address-Settings-getEmergencyAddressAutoUpdateWirelessPoints)|\n|🔐 [`GET account/{accountId}/emergency-address-auto-update/wireless-points/{pointId}`](#Emergency-Address-Settings-getEmergencyAddressAutoUpdateWirelessPoint)|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/wireless-points-bulk-create`|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/wireless-points-bulk-update`|\n|🔐 `POST /account/{accountId}/emergency-address-auto-update/wireless-points-bulk-validate`|\n\n##### 🔐 User Filtering by Entitlement\n\n* only users with appropriate Hard Phone / SoftPhone entitlements returned and can have automatic location updates on.\n\n|Changed Methods|\n|---------------|\n|🔐 [`GET /account/{accountId}/emergency-address-auto-update/users`](#Automatic-Location-Updates-listAutomaticLocationUpdatesUsers)|\n|🔐 [`POST /account/{accountId}/emergency-address-auto-update/users/bulk-assign`](#Automatic-Location-Updates-assignMultipleAutomaticaLocationUpdatesUsers)|\n\n---\n\n### Voice\n\n#### Call Control\n\n##### ⭐️ Answering the Call\n\n|New Methods|\n|-----------|\n|⭐️ `POST /account/{accountId}/telephony/sessions/{sessionId}/parties/{partyId}/answer`|\n\n##### ⭐️ Parked Call Pickup\n\n|New Methods|\n|-----------|\n|⭐️ `POST /account/{accountId}/telephony/sessions/{sessionId}/parties/{partyId}/pickup`|\n\n##### ⚠️ Reply with Text Reason\n\n* `parties.state.reason` attribute added.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/telephony/sessions/{telephonySessionId}`](#Call-Control-readCallSessionStatus)|\n|[`GET /account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}`](#Call-Control-readCallPartyStatus)|\n\n##### ⚠️ Supervise Attributes Renaming\n\n* `agentExtensionNumber`, `agentExtensionId`, `supervisorDeviceId` attributes added in replacement of `extensionNumber` and `deviceId` (for backward complatibility reasons old ones still supported but deprecated).\n\n|Changed Methods|\n|---------------|\n|[POST /account/{accountId}/telephony/sessions/{sessionId}/supervise](#Call-Control-superviseCallSession)|\n\n#### Call Log\n\n##### ⚠️ Monitoring Action\n\n* `Monitoring` value supported for `action` attribute.\n\n|Changed Methods|\n|---------------|\n|[`GET /account/{accountId}/call-log`](#Call-Log-loadCompanyCallLog)|\n|[`GET /account/{accountId}/call-log/{callRecordId}`](#Call-Log-loadCompanyCallRecord)|\n|[`GET /account/{accountId}/extension/{extensionId}/call-log`](#Call-Log-loadUserCallLog)|\n|[`GET /account/{accountId}/extension/{extensionId}/call-log/{callRecordId}`](#Call-Log-getUserCallRecord)|\n|[`GET /account/{accountId}/extension/{extensionId}/call-log-sync`](#Call-Log-syncUserCallLog)|\n\n---\n\n\n"},{"title":"2019 Jul","description":"\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Glip\n\n#### ⭐️ Tasks\n\n|New Methods|\n|-----------|\n|⭐️ `GET /glip/chats/{chatId}/tasks`|\n|⭐️ `POST /glip/chats/{chatId}/tasks`|\n|⭐️ `GET /glip/tasks/{taskId}`|\n|⭐️ `PUT /glip/tasks/{taskId}`|\n\n"},{"title":"2019 Jun","description":"\n🔐 – **advanced** – API available by request, if you want to use it, please welcome to [Support page](https://developers.ringcentral.com/support.html).\n\n⚠️ – please pay attention to this change as it may potentially break compatibility with your app.\n\n⭐️ – new API methods introduced.\n\n🔧 – bug fixes.\n\n\nBasepath for all URLs: `https://platform.ringcentral.com/restapi/v1.0`.\n\n### Provisioning\n\n#### Automatic Location Updates\n\n##### ⭐️ Bulk Operations\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/switches-bulk-create`](#Automatic-Location-Updates-createMultipleSwitches)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/switches-bulk-update`](#Automatic-Location-Updates-updateMultipleSwitches)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/switches-bulk-validate`](#Automatic-Location-Updates-validateMultipleSwitches)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/wireless-points-bulk-create`](#Automatic-Location-Updates-createMultipleWirelessPoints)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/wireless-points-bulk-update`](#Automatic-Location-Updates-updateMultipleWirelessPoints)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/wireless-points-bulk-validate`](#Automatic-Location-Updates-validateMultipleWirelessPoints)|\n\n##### ⭐️ Devices\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 [`GET /account/{accountId}/emergency-address-auto-update/devices`](#Automatic-Location-Updates-listDevicesAutomaticLocationUpdates)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/devices/bulk-assign`](#Automatic-Location-Updates-assignMultipleDevicesAutomaticLocationUpdates)|\n\n##### ⭐️ Extensions\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 [`GET /account/{accountId}/emergency-address-auto-update/users`](#Automatic-Location-Updates-readAutomaticLocationUpdatesUsers)|\n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/users/bulk-assign`](#Automatic-Location-Updates-assignMultipleUsersAutomaticaLocationUpdates)|\n|\n\n##### ⭐️ IP Address Range Map\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 [`GET account/{accountId}/emergency-address-auto-update/networks`](#Automatic-Location-Updates-listNetworks)|\n|⭐️ 🔐 [`POST account/{accountId}/emergency-address-auto-update/networks`](#Automatic-Location-Updates-createNetwork)|\n|⭐️ 🔐 [`GET account/{accountId}/emergency-address-auto-update/networks/{networkId}`](#Automatic-Location-Updates-readNetwork)|\n|⭐️ 🔐 [`PUT account/{accountId}/emergency-address-auto-update/networks/{networkId}`](#Automatic-Location-Updates-updateNetwork)|\n|⭐️ 🔐 [`DELETE account/{accountId}/emergency-address-auto-update/networks/{networkId}`](#Automatic-Location-Updates-deleteEmergencyAddressAutoUpdateNetwork)|\n\n##### ⭐️ Switch Map\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 [`GET /account/{accountId}/emergency-address-auto-update/switches`](#Automatic-Location-Updates-listAccountSwitches)| \n|⭐️ 🔐 [`POST /account/{accountId}/emergency-address-auto-update/switches`](#Automatic-Location-Updates-createSwitch)|\n|⭐️ 🔐 [`GET /account/{accountId}/emergency-address-auto-update/switches/{switchId}`](#Automatic-Location-Updates-readSwitch)|\n|⭐️ 🔐 [`PUT /account/{accountId}/emergency-address-auto-update/switches/{switchId}`](#Automatic-Location-Updates-updateSwitch)|\n|⭐️ 🔐 [`DELETE /account/{accountId}/emergency-address-auto-update/switches/{switchId}`](#Automatic-Location-Updates-deleteSwitch)|\n\n##### ⭐️ Wireless Access Point Map\n\n|New Methods|\n|-----------|\n|⭐️ 🔐 [`GET account/{accountId}/emergency-address-auto-update/wireless-points`](#Automatic-Location-Updates-listWirelessPoints)|\n|⭐️ 🔐 [`POST account/{accountId}/emergency-address-auto-update/wireless-points`](#Automatic-Location-Updates-createWirelessPoint)|\n|⭐️ 🔐 [`GET account/{accountId}/emergency-address-auto-update/wireless-points/{pointId}`](#Automatic-Location-Updates-readWirelessPoint)|\n|⭐️ 🔐 [`PUT account/{accountId}/emergency-address-auto-update/wireless-points/{pointId}`](#Automatic-Location-Updates-updateWirelessPoint)|\n|⭐️ 🔐 [`DELETE account/{accountId}/emergency-address-auto-update/wireless-points/{pointId}`](#Automatic-Location-Updates-deleteWirelessPoint)|\n\n---\n\n"},{"title":"Older Versions","description":"\nFor older versions, see RingCentral API Changelog on [ReadTheDocs](https://ringcentral-api-changelog.readthedocs.io/en/latest/1_0_37/)\n"}]},{"title":"Data Formats","x-tag-group":"Using the API","description":"\n","children":[{"title":"Object Representation","description":"Whenever you need to send or retrieve a particular piece of data — for example, a call log record, information on an extension, etc. — it will be embedded in the HTTP request or response.\n\nThe RingCentral API allows you to explicitly define a representation format by using the following HTTP headers.\n\n- `Content-Type` header defines the MIME type of the request body. The server will expect the request body to contain data in the specified format.\n- `Accept` header indicates desired MIME type of the response body. The server will return response data in this format (if possible) and will set the `Content-Type` response header accordingly.\n\n### Supported Representation Formats\n| Format | MIME type | HTTP request/response body example |\n| ------ | --------- | ---------------------------------- |\n| JSON | `application/json` |`{`
`\"uri\": \"https://platform.ringcentral.com/restapi/v1.0\",`
`\"versionString\": \"1.0.0\",`
`\"releaseDate\": \"2012-06-14T00:00:00.000Z\",`
`\"uriString\": \"v1.0\",`
`}`|\n| HTML Form Data *(only for token request body as governed by OAuth 2.0 specification)* | `application/x-www-form-urlencoded` | `grant_type=password&username=18887776655&password=987654` |\n\nThe RingCentral API uses JSON as the default representation format. It means that if the `Accept` header is not set, the server will return results in JSON. \n\nHowever, `Content-Type` header is mandatory for all requests which have body (namely requests with `POST` and `PUT` HTTP methods). Also for such requests client is required to provide `Content-Length` header containing the length of the request body in bytes.\n\n"},{"title":"Data Types","description":"The table below describes the data types which are used in the RingCentral API.\n\n| Data Type | Description |\n| ------------- | ----------- |\n| `string` | General string value |\n| `enumeration` | Predefined string constants/List of predefined string constants |\n| `integer` | 64-bit integer value |\n| `datetime` | Timestamp in XML schema-compatible format, in accordance with ISO 8601 format including timezone.
Note that **T** appears literally in the string, to indicate the beginning of the time element.
The supported formats with the examples are as follows:
Year: `YYYY` (eg 2012)
Year and month: `YYYY-MM` (eg 2012-07)
Complete date: `YYYY-MM-DD` (eg 2012-07-16)
Complete date plus hours and minutes: `YYYY-MM-DDThh:mmTZD` (eg 2012-07-16T23:12:30)
Complete date plus hours, minutes and seconds:
`YYYY-MM-DDThh:mm:ssTZD` (eg 2012-07-16T23:12:30Z or 2012-07-16T23:12:30+04:00)
Complete date plus hours, minutes, seconds and a decimal fraction of a second: YYYY-MM-DDThh:mm:ss.sTZD (eg 2012-07-16T23:12:30.45Z)
**Where:**
`YYYY` = four-digit year
`MM` = two-digit month (01=January, etc.)
`DD` = two-digit day of month (01 through 31)
`hh` = two digits of hour (00 through 23) (am/pm NOT allowed)
`mm` = two digits of minute (00 through 59)
`ss` = two digits of second (00 through 59)
`s` = one or more digits representing a decimal fraction of a second
`TZD` = time zone designator (Z or +hh:mm or -hh:mm)
The server currently processes all timestamps in UTC timezone; for example, 2012-01-01T00:15:34Z.
By default the server returns datetime format in full format, including a decimal fraction of a second YYYY-MM-DDThh:mm:ss.sTZD, for example 2012-07-16T23:12:30.45Z).
Please note, that when comparing timestamps, the timestamp is truncated to a second precision. For example, the response to request where the **dateFrom** value equals to 2012-07-16T23:12:30.45Z is always identical to the one with the 'dateFrom' value 2012-07-16T23:12:30Z.\n\n"},{"title":"Phone Numbers","description":"\nThe API supports phone numbers in [e.164](https://en.wikipedia.org/wiki/E.164) format with plus sign `+` complying with the [ITU-T recommendation](https://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-E.164D-11-2011-PDF-E.pdf).\n```json \n\"from\" : \n {\n \"phoneNumber\" : \"+16501234567\",\n \"name\" : \"John Smith\"\n }\n```\n\nThe phone number processing also conforms to country specific compliance requirements, such as the California Consumer Privacy Act (US), the General Data Protection Regulation (EU), etc. relating to personal data protection, e.g. masking numbers in call log API, that looks as follows:\n\n```json \n\"to\" : \n {\n \"phoneNumber\" : \"+1855201XXXX\",\n \"name\" : \"Jane Williams\" \n }\n```\n"},{"title":"Resource Identification","description":"The table below describes properties which are supported by almost all API resources and used for identification purposes.\n\n| Parameter | Type | Description |\n| --------- | ---------- | ----------- |\n| `id` | string | Internal unique identifier of a resource. This property exists in all resources which support retrieval/update/delete of a single record of particular type. Depending on a resource it can hold either an integer or a string value. The resource ID is also passed as a path parameter in the URI |\n| `uri` | URI string | Canonical URI of a resource. This URI might not be the same as the one which was used to retrieve this resource information. For example, if a resource was accessed by the URI containing simplified syntax with the tilde (~) characters, the canonical URI will also contain real identifiers. In most cases the URI contains an ID value embedded as a path parameter |\n\nThe similar convention is used when one resource refers to another. For example, a direct phone number returned by the API contains a link to the extension it is assigned to in the following property:\n\n```json\n\"extension\":\n {\n \"id\": 234244008,\n \"uri\": \".../account/405884008/extension/234244008\"\n }\n```\n\n"},{"title":"Response Format","description":"\nSince REST API is built on top of HTTP protocol, it reuses some concepts and common HTTP status codes to inform a client about a result of API method execution.\n\nThere could be the following possible response scenarios\n\n* **Successful** completion of a request. The client gets HTTP response with 2XX or 3XX status code and optionally somebody payload depending on the request. \n* **Client errors**. The server returns HTTP response with one of the 4xx status code. In most cases, the response body contains more detailed information about the reason for the issue. Such error usually means that the client does something wrong, unexpected or disallowed.\n* **Server errors**. The server returns HTTP response with one of the 5xx status code. In most cases, the response body contains more detailed information about the reason for the issue. This kind of errors is returned in case of unexpected issues on the server side.\n* This guideline follows general patterns described here: http://www.restapitutorial.com/httpstatuscodes.html\n\n### API Response Status Codes\n#### HTTP 2xx – Success\nMost of the HTTP 2xx status codes (200, 201, 202, 204, 206) indicate that the action requested by the client was received, understood, accepted and processed successfully.\n\n`HTTP 207 Multi-status` code can be returned for some API requests which means that response consists of multiple parts returned as a \"multipart/mixed\" body (see also [RFC 2046](https://tools.ietf.org/html/rfc2046)). In this case, the first part of this multipart response contains JSON array with real status codes corresponding to each part of a response, see [Batch Requests](#Batch-Requests) section below.\n\n#### HTTP 3xx – Redirection\nThis class of status code indicates the client must take additional action to complete the request. Many of these status codes are used in redirection.\n\nFor `HTTP 301`, `HTTP 302`, `HTTP 303`, `HTTP 307` and `HTTP 308` client must support automatic redirection to new URL returned in Location header as specified in [RFC 2616](http://tools.ietf.org/html/rfc2616#section-10.3)\n\nIf by some reason `Location` header is not returned, the client should repeat request to the same URL.\n\n`HTTP 304` – can be returned only for some API requests which allow specifying conditional headers `If-None-Match`, `If-Modified-Since` (see also [RFC 7232](https://tools.ietf.org/html/rfc7232#page-13)). Such status is an indication that resource is not modified and the client doesn't need to update locally cached version of a resource.\n\nAPI clients have to follow the following rules when processing HTTP 3xx responses:\n* `HTTP 301`, `HTTP 302`, `HTTP 303` — request to target URL specified in Location header must be performed with `HEAD` method (if original method was `HEAD`) or `GET` method (if original method was `GET`, `PUT`, `POST` or `DELETE`)\n* `HTTP 307`, `HTTP 308` — request to target URL specified in `Location` header must be performed with the same HTTP method as the original request\n* `HTTP 304` – no additional requests to the server should be performed.\n\n#### HTTP 4xx – Client Error\nThe 4xx class of status code is intended for cases in which the client seems to have erred. In most cases (except `HTTP 429`) request should **not** be retried in unchanged form. RingCentral API can return `HTTP 400`, `HTTP 403`, `HTTP 405`, `HTTP 406`, `HTTP 408`, `HTTP 409`, `HTTP 415` and other statuses which should be handled this way.\n\n##### HTTP 429 – Too Many Requests\nThis means that the client exceeded some quota or rate limit defined for all or for certain types of API requests. \nThe client may retry the original request after getting this HTTP code not earlier than in a number of seconds returned in `Retry-After` header (see [RFC 6585](https://tools.ietf.org/html/rfc6585#section-4)).\n\nAdditional information about throttling limits is returned in `X-RateLimit-XXX` response headers, see [Usage Plan Groups](#Usage-Plan-Groups).\n\n##### HTTP 401 – Unauthorized\nIt means that access token provided by a client is invalid or expired. The client should request new access token and repeat the request with it. Depending on used OAuth grant type and application settings the client may have refresh token (which should be used in this situation to get new access token). In case of client credentials, implicit and some other flows the client should repeat the original method to request a fresh access token.\n\n##### HTTP 404 – Not Found\nThis status code may mean that particular URL requested is invalid, or that resource with given ID (indicated as a part of URL) does not exist or not accessible for the authorized user.\nSuch error can be usually ignored if returned as a result of `DELETE` request which means that resource was already deleted on the server (which may happen due to different server-side retention policies or concurrent requests from other API clients).\n\n#### HTTP 5xx – Server Error\nThe server failed to fulfill an apparently valid request. The server is aware that it has encountered an error or is otherwise incapable of performing the request.\nThere can be very different reasons for the 50x status returned. The app should retry request up to 3 times, and the developer may contact RingCentral Developer Support if the problem persists.\n\n##### HTTP 503 – Service Unavailable\nThe server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state. \nIn some cases, this status indicates that server cannot handle just this particular type of requests while other can be processed.\nThe client may retry the original request after getting this HTTP code not earlier than in a number of seconds returned in `Retry-After` header (see [RFC 7231](https://tools.ietf.org/html/rfc7231#section-7.1.3)).\n\n##### Other 5xx\nThe client should not repeat the request. RingCentral Developer Support should be informed about the problem.\n\n### Authentication/Authorization Errors\nSince RingCentral API uses OAuth 2.0 for authorization, the server behavior is mostly governed by OAuth specification.\n\n* The behavior of RingCentral API Authorization flows is defined by OAuth 2.0 Specification ([RFC 6749](http://tools.ietf.org/html/rfc6749) and [RFC 6750](http://tools.ietf.org/html/rfc6750))\n* Regardless of the number of threads which send API requests to the server, the application should perform OAuth authentication in a single thread, store and share tokens to be used in all regular API requests. Backend servers enforce some quotas for the number of authorization requests and number of active application sessions. If the quota is exceeded at any given time, the server starts to return `HTTP 429` on authorization requests. \n* Application must avoid frequent authentication attempts under the same user credentials. In order to extend session after access token expiration, it has to use token refreshment flow (if allowed)\n* Application should store `expires_in` and `refresh_token_expires_in` values along with access/refresh tokens and their issue time. This value is to be used to pre-check if the token is expired or about to expire before sending regular API requests in order to refresh tokens proactively. It is strongly recommended to avoid performing refreshment basing on `HTTP 401` errors which are returned by the server.\n* According to OAuth 2.0 standard some logical error codes are returned in error field of the response.\n\n#### OAuth Authorize \nFor 3-legged OAuth flows in some cases `HTTP 400` may be returned on `/restapi/oauth/authorize` call. For example, it can happen when the client provides invalid redirect URI in the request. See [RFC 6749](http://tools.ietf.org/html/rfc6749) for details.\n\n#### OAuth Token\nAs a general rule, if a request to /restapi/oauth/token API for access token fails client must NOT send other API requests until resolved. It should be properly orchestrated if client uses multiple threads which share the same tokens to send regular API requests.\n\n* `HTTP 400` – do not repeat request; if possible inform the user about failure and prompt for new credentials \n* `HTTP 429`, `HTTP 503` – retry in an indicated interval returned in Retry-After header.\n* `HTTP 4xx`, `HTTP 5xx` – do not repeat request, error in client or server code\n* `HTTP 400` – use cached credentials (if possible) to re-authenticate, or prompt user for new credentials.\n* `HTTP 408`, `HTTP 500`, client timeout – repeat 3 times with 10 seconds intervals, then try re-request tokens using cached credentials (if possible), or prompt user for new credentials (all dependent regular requests should be queued and wait for resolution)\n\n#### OAuth Revoke \nIn case of any error on the request to `/restapi/oauth/revoke` API client should just ignore it and do not retry.\n\n### Connection Errors Handling\nThere is a possibility that the Client Application is not able to establish a connection(s) with RingCentral service(s) for some reasons like \"Connection Timeout\", \"SSL Handshake Failure\" or other connection failures.\n\nThis situation might indicate problems on a backend side and it is very important to not overwhelm the backend with unnecessary client requests in this case.\n\nIn the described situation Client Application should follow an \"Exponential Backoff\" approach:\n\"The retries exponentially increase the waiting time up to a certain threshold. The idea is that if the server is down temporarily, it is not overwhelmed with requests hitting at the same time when it comes back up.\"\n\nThe following Retry Delays are recommended for Client Applications in case of any Connection Failures:\n\n2 seconds\n3 seconds\n5 seconds\n8 seconds\n13 seconds\n21 seconds\n30 seconds\n\nKeep trying to connect every 30 seconds\n\n"},{"title":"Error Codes","description":"The API uses specific error codes to make error processing for client applications more simple and effective. The body of HTTP response should be always logged and analyzed. It is sometimes impossible to understand the reason for the issue by only HTTP status code. Error code from the body should be also taken into consideration.\n\nClient app should rely on `errorCcode` and, in some cases, on additional fields like `parameterName`, not on error `message` because of it can be changed in next versions of the API and localized according to `Accept-Language` header if the language is supported by RingCentral service. Response body with error message can contain several error messages and has the following structure:\n\n```http\n{\n \"errorCode\": \"LegacyCode\", //legacy logical error code, deprecated. Will not be supported in later versions of API\n \"message\": \"Error message\", //legacy error message\n \"errors\": [\n {\n \"errorCode\": \"ABC-123\", //error code\n \"message\": \"Error message\", //error message\n \"additionalInfo\": \"value\", //additional attribute for this error, e.g \"parameterName\": \"extensionId\"\n },\n {\n \"errorCode\": \"XYZ-321\",\n \"message\": \"Second error message\"\n }\n ]\n}\n```\n\nPossible error codes for each API method are listed in method description under **Error Codes** header.\n\n### Common Error Codes\nThe following error codes potentially might be returned on any API call:\n\n| HTTP Code | Error Code | Error Message | Typical Reason |\n|-----------|------------|---------------|----------------|\n| `400` | `CMN-101` | Parameter [*parameterName*] value is invalid | Parameter value type is incorrect; enumeration value is unsupported; or the mandatory parameter is missed |\n| `400` | `CMN-104` | Cannot parse request | Request body for POST/PUT method is empty |\n| `400` | `CMN-406` | Duplicate value for parameter *parameterName*: *parameterValue* found in request | Request is invalid, see the message |\n| `400` | `CMN-407` | Unable to parse *headerName* header value: \"*headerValue*\" | Request header value is incorrect or unsupported |\n| `403` | `BIL-101` | Feature [*featureName*] is not available for current service plan | The feature is not included into the current user's account [Service Plan](https://success.ringcentral.com/articles/RC_Knowledge_Article/Billing-Service-Plan-RingCentral) |\n| `403` | `BIL-102` | Limit of *featureName* exceeded | Some limitation of current user's account [Service Plan](https://success.ringcentral.com/articles/RC_Knowledge_Article/Billing-Service-Plan-RingCentral) |\n| `403` | `BIL-103` | Feature [*featureName*] is not available for current account | The feature is turned off for the current user's account |\n| `403` | `CMN-112` | Feature [*featureName*] is not available for current extension type | The feature is not applicable for the current user's extension type |\n| `403` | `CMN-113` | Feature [*featureName*] is not available for current extension | The feature is turned off for the current user by account admin |\n| `403` | `CMN-404` | Attempt to access another extension | The resource belongs to another user and the current user has no access granted for the requested user resources|\n| `403` | `CMN-401` | In order to call this API endpoint, application needs to have [*permissionId*] permission | App key used at authorization stage does not grant the appropriate app permission, see [Application Permissions](#Application-Permissions) |\n| `403` | `CMN-408` | In order to call this API endpoint, user needs to have [*permissionId*] permission for requested resource. | The current user does not have the appropriate user permission granted, see [User Permissions](#User-Permissions) |\n| `404` | `CMN-102` | Resource for parameter [*parameterName*] is not found | The requested resource is not found by the ID specified; the resource could be already deleted, or the access to it is denied for the current user|\n| `404` | `CMN-120` | Invalid URI | There is no such method in the RingCentral Connect Platform API |\n| `409` | `CMN-204` | Resource is blocked by another operation | Another operation changing the requested resource is already in progress |\n| `429` | `CMN-301` | Request rate exceeded | Too many API calls from the same user (extension) by the current application, see also [Usage Plan Groups](#Usage Plan Groups) |\n| `500` | `CMN-203` | Internal Server Error | The server failed to run an apparently valid request |\n| `501` | `CMN-202` | Operation is not available | The requested action is currently unsupported by the API |\n| `503` | `CMN-201` | Service Temporary Unavailable | The server is currently unavailable being overloaded or down for maintenance |\n\n"},{"title":"Batch Requests","description":"One of the commonly used REST practices is the support of batch operations to retrieve multiple homogeneous resources by their key using a single request. The RingCentral API supports batch requests for a number of endpoints, for example messages, call records, blocked numbers, presence etc. They are implemented via the methods `GET`, `DELETE` and `PUT` with all their features. Batch operations are not transaction-atomic. Each resource in a batch is processed separately from the others, making it possible to receive different success/failure results for different resources wrapped in a multipart response object. The HTTP status code `207 Multi-Status` (Multi-Status) is returned in every multipart response object and indicates a batch request.\n\n---\n**Note**\n\nThe `207 Multi-Status` code is not returned in response body in case of error accessing the endpoint. For example, if the requested endpoint does not exist at all, `404 Not Found` status code is returned. If there is a server error, `5xx` status code is returned.\nIn batch `DELETE` operations (if all resources are deleted successfully) the server returns the `204 No content` instead of multi status (since all parts would be identical in this case). In case of at least one failure the server returns the `207 Multi-Status`.\n\n---\n\nApart from the top-level special status code in case of success, a multipart response object contains status codes in each part, representing a particular requested resource. This status specifies an individual result for each requested resource out of the batch. Let's consider the examples of batch request below.\n\n**Batch request for `GET` method**\n\n*1. Multipart/Mixed*\n \nRequest:\n\n```json\nGET /restapi/v1.0/account/~/extension/~/message-store/2447722008,2416832008 HTTP/1.1\nAccept: application/json\n```\nReponse:\n\n```json\nHTTP/1.1 207 Multi-Status\nContent-Type: multipart/mixed; boundary=Boundary_20_32057915_1351669531796\n\n--Boundary_20_32057915_1351669531796\nContent-Type: application/json\n\n{\n\"response\" : [ {\n \"href\" : \"https://platform.ringcentral.com/account/154364008/extension/154364008/message-store/2447722008\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n}, {\n \"href\" : \"https://platform.ringcentral.com/restapi/v1.0/account/154364008/extension/154364008/message-store/2416832008\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n} ]\n}\n--Boundary_20_32057915_1351669531796\nContent-Type: application/json\n\n{\n\"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/154364008/extension/154364008/message-store/2447722008\",\n\"id\" : 2447722008,\n\"to\" : [ {\n \"phoneNumber\" : \"18559100010\"\n} ],\n\"from\" : {\n \"phoneNumber\" : \"18559100010\"\n},\n\"type\" : \"SMS\",\n\"creationTime\" : \"2012-10-29T15:36:04.000Z\",\n\"readStatus\" : \"Unread\",\n\"priority\" : \"Normal\",\n\"attachments\" : [ {\n \"id\" : 1,\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/154364008/extension/154364008/message-store/2447722008/content/1\",\n \"contentType\" : \"text/plain\"\n} ],\n\"direction\" : \"Inbound\",\n\"availability\" : \"Alive\",\n\"subject\" : \"verificationMessage\",\n\"messageStatus\" : \"Received\",\n\"conversationId\" : 5717224681082742945,\n\"lastModifiedTime\" : \"2012-10-29T15:36:04.000Z\"\n}\n--Boundary_20_32057915_1351669531796\nContent-Type: application/json\n\n{\n\"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/154364008/extension/154364008/message-store/2416832008\",\n\"id\" : 2416832008,\n\"to\" : [ {\n \"phoneNumber\" : \"18559100010\"\n} ],\n\"from\" : {\n \"phoneNumber\" : \"16509101086\"\n},\n\"type\" : \"SMS\",\n\"creationTime\" : \"2012-10-29T13:09:54.000Z\",\n\"readStatus\" : \"Unread\",\n\"priority\" : \"Normal\",\n\"attachments\" : [ {\n \"id\" : 1,\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/154364008/extension/154364008/message-store/2416832008/content/1\",\n \"contentType\" : \"text/plain\"\n} ],\n\"direction\" : \"Inbound\",\n\"availability\" : \"Alive\",\n\"subject\" : \"Inbound SMS\",\n\"messageStatus\" : \"Received\",\n\"conversationId\" : 141549019326272744,\n\"lastModifiedTime\" : \"2012-10-29T13:09:54.000Z\"\n}\n--Boundary_20_32057915_1351669531796--\n\n```\n\n*2. Multipart+Json*\n\nRequest:\n\n```json\nGET /account/306059004/extension/306061004/message-store/972869004,111 HTTP/1.1\nAccept=application/vnd.ringcentral.multipart+json\n```\nResponse:\n\n```json\nHTTP 207 Multi-Status\nContent-Type: application/vnd.ringcentral.multipart+json\n\n[\n {\n \"resourceId\": \"972869004\",\n \"status\": 200,\n \"body\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/306059004/extension/306061004/message-store/972869004\",\n \"id\": 972869004,\n \"to\": [\n {\n \"phoneNumber\": \"+17607822229\",\n \"location\": \"Warner Springs, CA\"\n }\n ],\n \"from\": {\n \"phoneNumber\": \"+15013030165\",\n \"name\": \"Message #1\",\n \"location\": \"Benton, AR\"\n },\n \"type\": \"SMS\",\n \"creationTime\": \"2018-12-24T07:39:12.000Z\",\n \"readStatus\": \"Unread\",\n \"priority\": \"Normal\",\n \"attachments\": [\n {\n \"id\": 972869004,\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/306059004/extension/306061004/message-store/972869004/content/972869004\",\n \"type\": \"Text\",\n \"contentType\": \"text/plain\"\n }\n ],\n \"direction\": \"Outbound\",\n \"availability\": \"Alive\",\n \"subject\": \"SMS: direction=Inbox delivery=DELIVERED unread=true\",\n \"messageStatus\": \"Queued\",\n \"conversationId\": 8234962969801172000,\n \"conversation\": {\n \"id\": \"8234962969801171948\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/conversation/8234962969801171948\"\n },\n \"lastModifiedTime\": \"2018-12-24T10:39:11.666Z\"\n }\n },\n {\n \"resourceId\": \"111\",\n \"status\": 404,\n \"body\": {\n \"errorCode\": \"CMN-102\",\n \"message\": \"Resource for parameter [messageId] is not found\",\n \"errors\": [\n {\n \"errorCode\": \"CMN-102\",\n \"message\": \"Resource for parameter [messageId] is not found\",\n \"parameterName\": \"messageId\"\n }\n ],\n \"parameterName\": \"messageId\"\n }\n }\n]\n```\n\n**Batch request for `PUT` method:**\n\n*1. Multipart/Mixed*\n\nThe client has to specify: \n - multipart/mixed content type and boundary;\n - modified fields for every single item which needs to be updated, separated by multipart boundaries.\n\nRequest:\n\n```json\nPUT /restapi/v1.0/account/~/extension/~/message-store/401654758008,401642088008 HTTP/1.1\nContent-Type: multipart/mixed; boundary=Boundary_1_15567762_1355833573664\n\n--Boundary_1_15567762_1355833573664\nContent-Type: application/json\n\n{\"readStatus\": \"Read\"}\n--Boundary_1_15567762_1355833573664\nContent-Type: application/json\n\n{\"readStatus\": \"Read\"}\n--Boundary_1_15567762_1355833573664--\n```\n\nResponse:\n\n```json\nHTTP/1.1 207 Multi-Status\nContent-Type: multipart/mixed; boundary=Boundary_1_15567762_1355833573664\n\n--Boundary_1_15567762_1355833573664\nContent-Type: application/json\n\n{\n\"response\" : [ {\n \"href\" : \"https://platform.ringcentral.com/account/400129284008/extension/400129284008/message-store/401654758008\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n}, {\n \"href\" : \"https://platform.ringcentral.com/account/400129284008/extension/400129284008/message-store/401642088008\",\n \"status\" : 200,\n \"responseDescription\" : \"OK\"\n} ]\n}\n--Boundary_1_15567762_1355833573664\nContent-Type: application/json\n\n{\n\"uri\" : \"https://platform.ringcentral.com/account/400129284008/extension/400129284008/message-store/401654758008\",\n\"id\" : 401654758008,\n\"to\" : [ {\n \"phoneNumber\" : \"18559100010\"\n} ],\n\"type\" : \"Fax\",\n\"creationTime\" : \"2013-07-11T12:05:43.000Z\",\n\"readStatus\" : \"Read\",\n\"priority\" : \"Normal\",\n\"attachments\" : [ {\n \"id\" : 1,\n \"uri\" : \"https://platform.ringcentral.com/account/400129284008/extension/400129284008/message-store/401654758008/content/1\",\n \"contentType\" : \"image/tiff\"\n} ],\n\"direction\" : \"Outbound\",\n\"availability\" : \"Alive\",\n\"messageStatus\" : \"SendingFailed\",\n\"faxResolution\" : \"Low\",\n\"faxPageCount\" : 0,\n\"lastModifiedTime\" : \"2013-07-11T12:26:24.000Z\"\n}\n--Boundary_1_15567762_1355833573664\nContent-Type: application/json\n\n{\n\"uri\" : \"https://platform.ringcentral.com/account/400129284008/extension/400129284008/message-store/401642088008\",\n\"id\" : 401642088008,\n\"to\" : [ {\n \"phoneNumber\" : \"77653287256446\"\n} ],\n\"type\" : \"Fax\",\n\"creationTime\" : \"2013-07-11T08:45:57.000Z\",\n\"readStatus\" : \"Read\",\n\"priority\" : \"Normal\",\n\"attachments\" : [ {\n \"id\" : 1,\n \"uri\" : \"https://platform.ringcentral.com/account/400129284008/extension/400129284008/message-store/401642088008/content/1\",\n \"contentType\" : \"image/tiff\"\n} ],\n\"direction\" : \"Outbound\",\n\"availability\" : \"Alive\",\n\"messageStatus\" : \"SendingFailed\",\n\"faxResolution\" : \"Low\",\n\"faxPageCount\" : 0,\n\"lastModifiedTime\" : \"2013-07-11T12:26:52.000Z\"\n}\n--Boundary_1_15567762_1355833573664--\n\n```\n*2. Multipart+Json*\n \nRequest #1 (IDs in path):\n\n```json\nPUT /account/306065004/extension/306067004/message-store/972903004,972901004 HTTP/1.1\nContent-Type=application/vnd.ringcentral.multipart+json\n\n[\n {\n \"body\": {\n \"readStatus\": \"Read\"\n }\n },\n {\n \"body\": {\n \"readStatus\": \"Read\"\n }\n }\n]\n\n```\nRequest #2 (IDs in body):\n\n```json\nPUT /account/306065004/extension/306067004/message-store/* HTTP/1.1\nContent-Type=application/vnd.ringcentral.multipart+json\n\n[\n {\n \"resourceId\": \"972903004\",\n \"body\": {\n \"readStatus\": \"Read\"\n }\n },\n {\n \"resourceId\": \"972901004\",\n \"body\": {\n \"readStatus\": \"Read\"\n }\n }\n]\n```\nResponse:\n\n```json\nHTTP 207 Multi-Status\nContent-Type: application/vnd.ringcentral.multipart+json\n\n[\n {\n \"resourceId\": \"972903004\",\n \"status\": 200,\n \"body\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/306065004/extension/306067004/message-store/972903004\",\n \"id\": 972903004,\n \"to\": [\n {\n \"extensionNumber\": \"103\",\n \"extensionId\": \"306068004\"\n }\n ],\n \"from\": {\n \"extensionNumber\": \"102\",\n \"extensionId\": \"306067004\",\n \"name\": \"Generated IM message\"\n },\n \"type\": \"Pager\",\n \"creationTime\": \"2018-12-24T10:39:24.000Z\",\n \"readStatus\": \"Read\",\n \"priority\": \"Normal\",\n \"attachments\": [\n {\n \"id\": 972903004,\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/306065004/extension/306067004/message-store/972903004/content/972903004\",\n \"type\": \"Text\",\n \"contentType\": \"text/plain\"\n }\n ],\n \"direction\": \"Outbound\",\n \"availability\": \"Alive\",\n \"subject\": \"IM: direction=Outbox unread=false\",\n \"messageStatus\": \"Sent\",\n \"conversationId\": 6951365551500,\n \"conversation\": {\n \"id\": \"6951365551500\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/conversation/6951365551500\"\n },\n \"lastModifiedTime\": \"2018-12-24T10:39:31.873Z\",\n \"pgToDepartment\": false\n }\n },\n {\n \"resourceId\": \"972901004\",\n \"status\": 200,\n \"body\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/306065004/extension/306067004/message-store/972901004\",\n \"id\": 972901004,\n \"to\": [\n {\n \"extensionNumber\": \"103\",\n \"extensionId\": \"306068004\"\n }\n ],\n \"from\": {\n \"extensionNumber\": \"102\",\n \"extensionId\": \"306067004\",\n \"name\": \"Generated IM message\"\n },\n \"type\": \"Pager\",\n \"creationTime\": \"2018-12-24T10:39:24.000Z\",\n \"readStatus\": \"Read\",\n \"priority\": \"Normal\",\n \"attachments\": [\n {\n \"id\": 972901004,\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/306065004/extension/306067004/message-store/972901004/content/972901004\",\n \"type\": \"Text\",\n \"contentType\": \"text/plain\"\n }\n ],\n \"direction\": \"Outbound\",\n \"availability\": \"Alive\",\n \"subject\": \"IM: direction=Outbox unread=true\",\n \"messageStatus\": \"Sent\",\n \"conversationId\": 6951365551500,\n \"conversation\": {\n \"id\": \"6951365551500\",\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/conversation/6951365551500\"\n },\n \"lastModifiedTime\": \"2018-12-24T10:39:31.879Z\",\n \"pgToDepartment\": false\n }\n }\n]\n\n```\n"}]},{"title":"Method Features","x-tag-group":"Using the API","description":"\n","children":[{"title":"Application Permissions","description":"\nIn order to work with the RingCentral API resources, the application should get the corresponding permissions. Each API method is marked with the required application permission under the *App Permission* header in method description. \nPermissions for the application can be selected, depending on resources it will be using, at the stage of app creation on Developers Portal and further on during the development process. The list of permissions available for the application depends on its type.\n\n\n\nOnly the permissions your app will actually be using should be requested, due to the following reasons:\n* for successful graduation to production API calls using all the permissions requested should be executed, which means the app should make at least one API call per each permission it has got, see also: [Apply for Production](https://developers.ringcentral.com/library/getting-started.html#ApplyForProduction)\n* at login stage the user will have to agree that the app will have access to his/her resources according to the actual app permissions to continue using the app, so the permission set should be reasonable.\n\nIf the app does **not** have the permission required for performing a certain API call, the API method will return `CMN-401` error code with the `HTTP 403 Forbidden` status, see also [Error Codes](#section-error-codes).\n\n\n \n**Application Permission List**\n\n| Permission | Usage | User Label | User Description | Access Level |\n|------------|-------|------------|------------------|--------------|\n| `Accounts` | Managing accounts: creating new accounts, viewing and updating account information, deleting existing accounts | Create, view and edit accounts | This permission enables the application to create accounts, view and modify account information, and delete accounts | 🔐 |\n| `CallControl` | Creating and managing phone calls aka telephony sessions | Call Control | This permission enables the application to manage call sessions: make calls, drop calls, forward calls, etc. | 🔐 |\n| `Contacts`\t| Creating, viewing, editing and deleting user personal contacts | Create, view and edit your personal contacts | This permission enables the application to create, view and change personal contacts information, and delete contacts | |\n| `EditAccounts` | Viewing and updating user account info (including name, business name, address and phone number/account number) | View and edit your account and extension data | This permission enables the application to view and modify your account as well as create, view, modify, and delete extensions | 🔐 |\n| `EditCallLog` | Viewing and updating user call logs | View and edit your call log | This permission enables the application to view and delete your call log| 🔐|\n| `EditCustomData` | Viewing and updating client custom data (key-value)| View and edit application-specific data | This permission enables the application to view and make changes to the application-specific data | 🔐 |\n| `EditExtensions` | Viewing and updating user extension info (includes extension name, number, email and phone number, assigned phone numbers, devices and other extension settings) | View and edit your extension data | This permission enables the application to view and update your extension information | |\n| `EditMessages` | Viewing and updating user messages | View and edit your messages | This permission enables the application to view, change and delete your messages | |\n| `EditPaymentInfo` | Viewing and updating account billing settings| View and edit billing settings | This permission enables the application to view and update account billing settings | 🔐 |\n| `EditPresence` | Getting and modifying user presence information | View and edit your presence | This permission enables the application to view and change your presence information | |\n| `Faxes` | Sending and receiving faxes| Send and view faxes | This permission enables the application to send and view fax messages | |\n| `Glip` | Working with Glip teams, users and messages | Send Glip messages and manage | This permission enables the application to send and view Glip messages, manage teams and users | 🔐 |\n| `InternalMessages` | Sending and receiving intra-company text messages | Send and edit internal text messages | This permission enables the application to send and edit internal text messages between account users | |\n| `IvrScripting` | Custom IVR call handling actions | Interactive voice response | This permissions enables the application to activate IVR actions: handle incoming calls to IVR, play greetings, collect DTMF | 🔐 |\n| `Meetings` | Creating, viewing, editing and deleting meetings| View and update your meetings | This permission enables application to schedule, read and update meeting info | |\n| `NumberLookup` | Looking-up and reserving available phone number | Lookup and reserve phone numbers | This permission enables the application to look up the list of available phone numbers and reserve numbers from the list | 🔐 |\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) | View your account and extension data | This permission enables the application to view your account and extension information | |\n| `ReadCallLog` | Viewing user call logs | View your call log | This permission enables the application to view your call log | |\n| `ReadCallRecording` | Downloading call recording content | View your call log and download call recordings | This permission enables the application to view your call log and download the audio call recordings | |\n| `ReadContacts` | Viewing user personal contacts | View your personal contacts | This permission enables the application to view your personal contacts information | | \n| `ReadMessages` | Viewing user messages | View your messages | This permission enables the application to view your messages | |\n| `ReadPresence` | Getting user presence information | View your presence | This permission enables the application to view your presence information | |\n| `RingOut` | Performing two-legged ring-out phone calls | Make RingOut calls on your behalf | This permission enables the application to make RingOut calls. The RingOut call is initiated as an inbound call from RC service to your specified phone which is then connected to the destination number | |\n| `SMS` | Sending and receiving (SMS) text messages | Send and view SMS messages | This permission enables the application to send and view SMS messages | |\n| `SubscriptionWebhook` | Managing push notification subscriptions which use Webhooks | Subscribe to webhook notifications | This permission enables the application to receive push notifications using webhook transport | |\n| `Voicemail` | Sending voicemail messages | Send voicemail messages | This permission enables the application to send voicemail messages | 🔐 |\n| `VoipCalling` | Register as VoIP device and making VoIP calls | Make and receive VoIP calls on your behalf | This permission enables the application to make and receive calls on your behalf | 🔐 | \n\n\n"},{"title":"User Permissions","description":"\nRingCentral supports role-based access control. Each user (extension) has one role assigned. On the API level, there might be a few roles assigned for one extension - some of them are automatically assigned according to some service plan options. Each role has a set of granted permissions. The user has a superset of permissions granted based on all the roles assigned to his/her extension (explicitly or auto-assigned).\n\nMost of the API methods have some permissions required for the API call to be successfully performed. Typically, it is one specific permission, which is mentioned under the **User Permission** header in method description in the API Reference. In case the user does not have the permission required, the error code `CMN-408` will be returned with the `HTTP 403 Forbidden` status code, see also: [Error Codes](#section-error-codes). To avoid unexpected error messages or even application crash the required permission can be checked with [Authorization Profile/Permission Check](https://developers.ringcentral.com/api-reference#Authorization-Profile) API before the target API call and the user interface properly adjusted (hiding/disabling some buttons, showing some tooltips, etc.)\n\nLearn more about RingCentral Roles and Permissions.\n\nSee also: Authorization Profile and Permission Invalidation.\n\n"},{"title":"Usage Plan Groups","description":"\n**Usage Plan** is a scheme specifying limits of using of API resources for a client application. Appliance of usage plans ensures consistent load allocation through correct interaction with the RingCentral Connect Platform. \n**Your application Usage Plan** is available on your RC account by clicking the ‘Rate Limits‘ on ‘Apps‘ tab; it specifies the supported number of requests of each API group and the request time frame in seconds. \n**Every API method** is marked as ‘Heavy’, ‘Medium’, ‘Light’ according to their processing, or ‘Auth’ for authorization requests; this mark can be found under the *Usage Plan Group* header in method description. \n*Example:*\n\n\nWithin the above given limits, the client application is allowed to send 10 heavy, 40 medium, 50 light and 5 authorization requests per user (RC extension) per minute. When exceeded the server returns `429 Too Many Requests` HTTP error code. It means the client is throttled by the server due to high request rate. The retry period in seconds is returned in the `Retry-After` header. In case the request is resent earlier (before the period specified in `Retry-After` header is over) the penalty interval is applied. The penalty interval value for requests of each API group is displayed in the corresponding column. \n\n**Please note** that the penalty interval will be renewed until the client waits for the required time interval to pass before sending new requests. If the client is constantly sending new requests, the penalty period would keep on renewing and would never expire.\n\nThe following **Rate Limits Headers** are returned for the limited API requests:\n* `X-Rate-Limit-Group` — API group of the request (Light, Medium, Heavy, Auth)\n* `X-Rate-Limit-Limit` — the current rate limit for the request\n* `X-Rate-Limit-Remaining` — the number of requests left for the time interval (window) of this rate limit\n* `X-Rate-Limit-Window` — time interval in seconds for the request rate limit\n\n"}]},{"title":"Localization","x-tag-group":"Using the API","description":"\n","children":[{"title":"Languages Support","description":"The content returned by RingCentral API is **not** localized in most cases as assumed to be machine readable, not human readable. It practically means that constants and enumerated values are returned in US English.\nHowever some API methods return localized content, as regards customer facing text and error messages.\nIn this case the client application can pass the preferred language (locale) code in the `Accept-Language` HTTP header. If this header is omitted, incorrect or contains unsupported language code, the server returns localized content in the language which is configured in user extension regional settings (by default, `en-US` for RingCentral US and Canada accounts, `en-GB` for RingCentral UK accounts). The language code is returned in the `Content-Language` HTTP header. \n\n"}]},{"title":"OAuth 2.0","x-tag-group":"Authentication","description":"\n","children":[{"title":"Authorization","description":"\n### Authorization Code Flow\n\nThe authorization code is obtained by using an authorization server as an intermediary between the client and resource owner. Returns link to a login page location. Web applications are higly advised to use the Proof Key for Code Exchange scheme (PKCE) for security concerns.\n\nWhen the client exchanges authorization code to access or refresh tokens, then `Authorization` header is not required. When the client refreshes a token belonging to a session opened using `authorization_code` grant type, then `Authorization` header is not required. In both cases the client must provide the `client_id` as a form data parameter to identify itself.\n\n\n**Usage Plan Group**\n\nAuth\n\n GET /restapi/oauth/authorize\n\n**Request Headers**\n\nClient app may pass localization language code value in `Accept-Language` header. But if any of these parameters `localeId` or `ui_locales` is specified, the header value is overwritten.\n\n**Form Data Parameters**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **response\\_type** | string | Must be set to `code` | |\n| **redirect\\_uri** | string | This is a callback URI which determines where the response is sent. The value of this parameter must exactly match one of the URIs you have provided for your app upon registration | |\n| **client\\_id** | string | Identifier (key) of a client application | |\n| **state** | string | Client state. Returned back to the client at the end of the flow | |\n| **brand\\_id** | string | Brand identifier. If it is not provided in request, server will try to determine brand from client app profile. The default value is `1210` - RingCentral US | |\n| **display** | string | Style of login form. The default value is `page`. The `popup` and `touch` values are featured for mobile applications | `page`
`popup`
`touch`
`mobile` |\n| **prompt** | string | Specifies which login form will be displayed. Space-separated set of the following values: `login` - official RingCentral login form, `sso` - Single Sign-On login form, `consent` - form to show the requested scope and prompt user for consent. Either `login` or `sso` (or both) must be specified. The default value is `login&sso` | |\n| **localeId** | string | Localization code of a language. Overwrites `Accept-Language` header value | |\n| **ui\\_locales** | string | Localization code of a language. Overwrites `localeId` parameter value | |\n| **ui\\_options** | string | User interface options data | `hide_logo` `hide_tos` `hide_remember_me` `external_popup` `old_ui` |\n| **code\\_challenge** | string | The code challenge. Once the app has generated the code verifier, it uses that to create the code challenge. For devices that can perform a SHA256 hash, the code challenge is a BASE64-URL-encoded string of the SHA256 hash of the code verifier. Clients that do not have the ability to perform a SHA256 hash are permitted to use the plain code verifier string as the challenge |\n| **code\\_challenge\\_method** |string | The code challenge method, either plain or S256, depending on whether the challenge is the plain verifier string or the SHA256 hash of the string. If this parameter is omitted, the server assumes plain |\n\n\n**Response Body**\n\nLink to a login page location.\n\n**Example**\n\nRequest\n```HTTP\nGET /restapi/oauth/authorize?client_id=A50F55593E224b381E81D6A969391D0e49E27FB9A1C3\n&redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Foauthredirect&response_type=code&state=ABC123&prompt=login\n```\nResponse\n```HTTP\nHTTP/1.1 302 Found\n\nLocation:\nhttps://service.ringcentral.com/mobile/loginDispatcher?session=2008293087662283621&clientId=A50F55593E224b381E81D6A969391D0e49E27FB9A1C3\n&state=ABC123&brandId=1210&appUrlScheme=https%3A%2F%2Fmyapp%2Eexample%2Ecom%2Foauthredirect&localeId=en_US&display=page&prompt=login&hideNavigationBar=true \n```\n\n**PKCE Example**\n\nRequest\n```HTTP\nGET /restapi/oauth/authorize?client_id=wsewtqavk&redirect_uri=https://app.test.com&response_type=code&code_challenge=U0pDMTFQMDFQQVMwMXxBQUJfTVpHWk5lM29zNVFmWnNHQ01MSmJuMHJmNGlRcnRaeEptTWlPS0&code_challenge_method=S256\n\n```\nResponse\n```HTTP\nHTTP/1.1 302 Found\n\nLocation:\nhttps://service.ringcentral.com/mobile/loginDispatcher?session=2008293087662283621&clientId=A50F55593E224b381E81D6A969391D0e49E27FB9A1C3\n&state=ABC123&brandId=1210&appUrlScheme=https%3A%2F%2Fmyapp%2Eexample%2Ecom%2Foauthredirect&localeId=en_US&display=page&prompt=login&hideNavigationBar=true&code_challenge=U0pDMTFQMDFQQVMwMXxBQUJfTVpHWk5lM29zNVFmWnNHQ01MSmJuMHJmNGlRcnRaeEptTWlPS0&code_challenge_method=S256 \n\n```\n \n### Implicit Grant Type Flow\n\nReturns login page location. And upon successful login - access token embedded in a link redirecting to a client web application. Please note: Access token obtained via this request expires in an hour and can be refreshed by sending this request repeatedly.\n\n**Request Headers**\n\nClient app may pass localization language code value in `Accept-Language` header. But if any of these parameters `localeId` or `ui_locales` is specified, the header value is overwritten.\n\n**Form Data Parameters**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **response\\_type** | string | Must be set to token | |\n| **redirect\\_uri** | string |This is a callback URI which determines where the response is sent. The value of this parameter must exactly match one of the URIs you have provided for your app upon registration | |\n| **client\\_id**| string | Identifier (key) of a client application | |\n| **state** | string | Client state. Returned back to the client at the end of the flow | |\n| **brand\\_id** | string | Brand identifier. If it is not provided in request, server will try to determine brand from client app profile. The default value is `1210` - RingCentral US | |\n| **display** | string | Style of login form. The default value is `page`. The `popup` and `touch` values are featured for mobile applications | `page`
`popup`
`touch`
`mobile` |\n| **prompt** | string | Specifies which login form will be displayed. Space-separated set of the following values: `login` - official RingCentral login form, `sso` - Single Sign-On login form, `consent` - form to show the requested scope and prompt user for consent. Either `login` or `sso` (or both) must be specified. Please note: The value must be set to `none` for all requests except for the first one | |\n| **ui\\_locales** | string | Localization code of a language. Overwrites `localeId` parameter value | |\n| **localeId** | string | Localization code of a language. Overwrites `Accept-Language` header value | |\n| **ui\\_options** | string | User interface options data | `hide_logo` `hide_tos` `hide_remember_me` `external_popup` `old_ui` |\n\n**Response Body**\n\nLink to a login page location. \nAfter successful user login the browser will pass the hash fragment with access token directly to the application redirect URI.\n\n**Example**\n\nRequest\n```HTTP\nGET https://api.ringcentral.com/restapi/oauth/authorize?response_type=token&client_id=9oQlL98tTQGhpdqq5KB60Q&state=xyz&prompt=login%20consent&\nredirect_uri=http%3A%2F%2Fmyapp%2Eexample%2Ecom%2Foauthredirect HTTP/1.1\n```\nResponse\n```HTTP\nHTTP/1.1 302 Found\n\nLocation:\nhttps://service.ringcentral.com/mobile/loginDispatcher?session=2008293087662283621&clientId=9oQlL98tTQGhpdqq5KB60Q&state=xyz\n&brandId=1210&appUrlScheme=http%3A%2F%2Fmyapp%2Eexample%2Ecom%2Foauthredirect&localeId=en_US&display=page&prompt=login%20consent&hideNavigationBar=true\n```\nCallback Request\n```\nhttp://myapp.example.com/oauthredirect#access_token=tuyt43gjhg6u54uiy6iuyhh3k45jh34k5hO6884534jk5hkh83yh3kj5h348y59345ikh&token_type=bearer&state=xyz&expires_in=3600\n```\n\n"},{"title":"Get Token","description":"\nThis endpoint enables client applications to get access tokens for making API requests. Requests to this endpoint must be authenticated with HTTP Basic scheme using the client ID and client secret as login and password, correspondingly.\n\n### Authorization Code Flow\n\nEach time you call token endpoint using this flow a new client session starts. It is associated with the issued token pair: access token and refresh token, returned in response to this request. To continue the session you can refresh the obtained access token and refresh token as many times as you need, using Refresh Token flow or the same flow.\n\nTo start another client session you should call token endpoint using this flow again. Please consider that only 5 simultaneously active sessions per extension per application are supported. Thus if you exceed the number of sessions started per extension per application, the oldest one is ended.\n\n**Usage Plan Group**\n\nAuth\n\n POST /restapi/oauth/token\n\n**Form Data Parameters**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **grant\\_type** | string | Must be set to `authorization_code` for authorization code flow | |\n| **code** | string | Authorization code | |\n| **redirect\\_uri** | string |This is a callback URI which determines where the response is sent. The value of this parameter must exactly match one of the URIs you have provided for your app upon registration | URI |\n| **access\\_token\\_ttl** | integer | Access token lifetime in seconds; the possible values are from 600 sec (10 min) to 3600 sec (1 hour). The default value is 3600 sec. If the value specified exceeds the default one, the default value is set. If the value specified is less than 600 seconds, the minimum value (600 sec) is set | |\n| **refresh\\_token\\_ttl** | integer | Refresh token lifetime in seconds. The maximum allowed value is 7 days. If the value is not specified or exceeds the maximum value, then by default the maximum value is applied| |\n| **code\\_verifier** | string | The code verifier parameter passed in PKCE token retrieval request (where `grant_type` equals to `authorization_code`) that is originally generated by the app before the authorization request | |\n\n**Response Body**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **access\\_token** | string | Access token to pass to subsequent API requests | |\n| **expires\\_in** | integer | Issued access token TTL (time to live), in seconds | |\n| **refresh\\_token** | string | Refresh token to get a new access token, when the issued one expires | |\n| **refresh\\_token\\_expires\\_in** | integer | Issued refresh token TTL (time to live), in seconds | |\n| **scope** | string | List of permissions allowed with this access token, white-space separated | |\n| **token\\_type** | string | Type of token. The only possible value supported is `Bearer`. This value should be used when specifying access token in Authorization header of subsequent API requests | |\n| **owner\\_id** | string | Extension identifier | |\n| **endpoint\\_id** | string | Unique identifier of a client application. You can pass it in request according to pattern `[a-zA-Z0-9_\\-]{1,64}`. Otherwise it is auto-generated by server. The value will be returned in response in both cases | |\n\n**Example**\n\nRequest\n```HTTP\nPOST /restapi/oauth/token \n\ncode=U0pDMDFQMDRQQVMwMnxBQUFGTVUyYURGYi0wUEhEZ2VLeGFiamFvZlNMQlZ5TExBUHBlZVpTSVlhWk\nxYajg5aDA3UVJmZ3VHdTNOTk05YkR0MEw0RkhnMlRPdTZuMTJSdEYwUkZyZHBSNWtLUzlzc1V8eW1OWVhRf\nFdnUW5QcExvYVhrN3lqY3p5NEJwWHc&grant_type=authorization_code&redirect_uri=https://www.example.com/myapp\n``` \nResponse\n```HTTP\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n \"access_token\" : \"U1BCMDFUMDRKV1MwMXxzLFSvXdw5PHMsVLEn_MrtcyxUsw\",\n \"token_type\" : \"bearer\",\n \"expires_in\" : 7199,\n \"refresh_token\" : \"U1BCMDFUMDRKV1MwMXxzLFL4ec6A0XMsUv9wLriecyxS_w\",\n \"refresh_token_expires_in\" : 604799,\n \"scope\" : \"AccountInfo CallLog ExtensionInfo Messages SMS\",\n \"owner_id\" : \"256440016\"\n}\n```\n\n### Password Flow\n\nEach time you call token endpoint using this flow a new client session starts. It is associated with the issued token pair: access token and refresh token, returned in response to this request. To continue the session you can refresh the obtained access token and refresh token as many times as you need, using Refresh Token flow or the same flow.\n\nTo start another client session you should call token endpoint using this flow again. Please consider that only 5 simultaneously active sessions per extension per application are supported. Thus if you exceed the number of sessions started per extension per application, the oldest one is ended.\n\n**Usage Plan Group**\n\nAuth\n\n POST /restapi/oauth/token\n\n**Request Headers**\n\nThe `Content-Type` header should be specified as `application/x-www-form-urlencoded`. Please note: Request body should be encoded appropriately. For example email `john+doe@example.com` as username parameter should be specified so - `john%2Bdoe%40example.com`.\n\n**Form Data Parameters**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **grant\\_type** | string | Must hold `password` value for Resource Owner Credentials flow. If client application is not authorized by the specified `grant_type`, response does not contain `refresh_token` and `refresh_token_ttl` attributes | |\n| **access\\_token\\_ttl** | integer |Access token lifetime in seconds; the possible values are from 600 sec (10 min) to 3600 sec (1 hour). The default value is 3600 sec. If the value specified exceeds the default one, the default value is set. If the value specified is less than 600 seconds, the minimum value (600 sec) is set | |\n| **refresh\\_token\\_ttl** | integer | Refresh token lifetime in seconds. The default value depends on the client application, but as usual it equals to 7 days. If the value specified exceeds the default one, the default value is applied. If client specifies refresh_token_ttl<=0, refresh token is not returned even if the corresponding grant type is supported | |\n| **username** | string | Phone number in E.164 format (including the following format `*`) or an email address linked to account or extension. Please note: You cannot use one and the same email address for authorization on different extensions (even if they are assigned to different accounts) | |\n| **extension** | string | Extension short number. Please note: If company number is specified as username, and extension number is not provided neither in username nor in extension attributes, then the server attempts to authenticate the client as a main company administrator. If a username is provided in a new format - with extension specified via asterisk (for example `18001234567*123`) then extension attribute is ignored | |\n| **password** | string | User password | |\n| **endpoint\\_id** | string | Unique identifier of a client application. You can pass it in request according to pattern `[a-zA-Z0-9_\\-]{1,64}`. Otherwise it is auto-generated by server. The value will be returned in response in both cases | |\n\n**Response Body**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **access\\_token** | string | Access token to pass to subsequent API requests | |\n| **expires\\_in** | integer | Issued access token TTL (time to live), in seconds | |\n| **refresh\\_token** | string | Refresh token to get a new access token, when the issued one expires | |\n| **refresh\\_token\\_expires\\_in** | integer | Issued refresh token TTL (time to live), in seconds | |\n| **scope** | string | List of permissions allowed with this access token, white-space separated | |\n| **token\\_type** | string | Type of token. The only possible value supported is `Bearer`. This value should be used when specifying access token in Authorization header of subsequent API requests | |\n| **owner\\_id** | string | Extension identifier | |\n\n**Example 1: Phone number as a username**\n\nRequest\n```HTTP\nPOST /restapi/oauth/token HTTP/1.1\nAccept: application/json\nContent-Type: application/x-www-form-urlencoded\nAuthorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ==\n\ngrant_type=password&username=18559100010*123&password=121212\n```\nResponse\n```HTTP\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n \"access_token\" : \"U1BCMDFUMDRKV1MwMXxzLFSvXdw5PHMsVLEn_MrtcyxUsw\",\n \"token_type\" : \"bearer\",\n \"expires_in\" : 7199,\n \"refresh_token\" : \"U1BCMDFUMDRKV1MwMXxzLFL4ec6A0XMsUv9wLriecyxS_w\",\n \"refresh_token_expires_in\" : 604799,\n \"owner_id\" : \"256440016\"\n} \n```\n\n**Example 2: Email address as a username**\n\nRequest\n```HTTP\nPOST /restapi/oauth/token HTTP/1.1\nAccept: application/json\nContent-Type: application/x-www-form-urlencoded\nAuthorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ==\n \ngrant_type=password&username=john%2Bdoe%40example.com&password=121212\n```\nResponse\n```HTTP\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n \"access_token\" : \"U1BCMDFUMDRKV1MwMXxzLFSvXdw5PHMsVLEn_MrtcyxUsw\",\n \"token_type\" : \"bearer\",\n \"expires_in\" : 7199,\n \"refresh_token\" : \"U1BCMDFUMDRKV1MwMXxzLFL4ec6A0XMsUv9wLriecyxS_w\",\n \"refresh_token_expires_in\" : 604799,\n \"owner_id\" : \"256440016\"\n}\n```\n\n### Refresh Token Flow\n\nEach time you call token endpoint using this flow, you continue current client session, and receive a new token pair: access token and refresh token in response to this request. The old token pair immediately becomes inactive.\n\n**Usage Plan Group**\n\nAuth\n\n POST /restapi/oauth/token\n\n**Form Data Parameters**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **refresh\\_token** | string | Previously issued refresh token | |\n| **grant\\_type** | string | Must hold refresh_token value | |\n| **endpoint\\_id** | string | Unique identifier of a client application. If not specified, the previously specified or auto-generated value is used by default |\n\n**Response Body**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **access\\_token** | string | Access token to pass to subsequent API requests | |\n| **expires\\_in** | integer | Issued access token TTL (time to live), in seconds | |\n| **refresh\\_token** | string | Refresh token to get a new access token, when the issued one expires | |\n| **refresh\\_token_expires_in** | integer | Issued refresh token TTL (time to live), in seconds | |\n| **scope** | string | List of permissions allowed with this access token, white-space separated | |\n| **token\\_type** | string | Type of token. The only possible value supported is `Bearer`. This value should be used when specifying access token in Authorization header of subsequent API requests | |\n| **owner\\_id** | string | Extension identifier | |\n\n**Example**\n\nRequest\n```HTTP\n POST /restapi/oauth/token HTTP/1.1\n Accept: application/json\n Content-Type: application/x-www-form-urlencoded\n Authorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ==\n\n refresh_token=BCMDFUMDRKV1MwMXx5d5dwzLFL4ec6U1A0XMsUv935527jghj48&grant_type=refresh_token\n```\nResponse\n```HTTP\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n \"access_token\" : \"U1BCMDFUMDRKV1MwMXxzLFSvXdw5PHMsVLEn_MrtcyxUsw\",\n \"token_type\" : \"bearer\",\n \"expires_in\" : 7199,\n \"refresh_token\" : \"U1BCMDFUMDRKV1MwMXxzLFL4ec6A0XMsUv9wLriecyxS_w\",\n \"refresh_token_expires_in\" : 6048799,\n \"scope\" : \"AccountInfo CallLog ExtensionInfo Messages SMS\" \n}\n```\n\n"},{"title":"Revoke Token","description":"\nRevokes access/refresh token. Requests to this endpoint **must** be authenticated with HTTP Basic scheme using client ID and client secret as login and password, correspondingly.\n\n**Usage Plan Group**\n\nAuth\n\n /restapi/oauth/revoke\n\n**Form Data Parameters**\n\n| Parameter | | Description | |\n|---|---|---|---|\n| **token** | string | Active access or refresh token to be revoked |\n\n**Response Body**\n\nNone\n\n**Example**\n\nRequest\n```HTTP\nPOST /restapi/oauth/revoke HTTP/1.1\nContent-Type: application/x-www-form-urlencoded\nAuthorization: Basic M2ZmYjNlMThkZDU4ZDE1YTk2NTIwYmFmNzUzZjBiNzk6MzI5OWQ0NTg5NGU1Njg5ODllOTY1ZTFiMTk5MGU2OTI\n\ntoken=U0pDMDFQMDFKV1MwMXwJ_W7L1fG4eGXBW9Pp-otywzriCw\n```\nResponse\n```HTTP\nHTTP/1.1 200 OK\n```\n"}]},{"title":"Notification Types","x-tag-group":"Events & Notifications","description":"Notifications which the client wants to receive can be specified by the **event filters** which are set in the subscription request. The event filter is exposed as a URL, pointing to the required RingCentral API resource. Currently the following event types are available for notifications: extensions, messages and presence. They are described in detail below.\n\n\n","children":[{"title":"Account Presence Event","description":" \n*Since 1.0.26 (Release 8.2)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/presence` enables notifications in case of change of presence information for any extension assigned to the current account.\n \n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Notification Payload Structure**\n \nThe client receives non-detailed presence notification payload as a JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Presence Event\t | Notification payload body |\n\n**Presence Event**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `extensionId\t` | string | Internal identifier of an extension |\n| `telephonyStatus` | 'NoCall' or 'CallConnected' or 'Ringing' or 'OnHold' or 'ParkedCall' | Telephony presence status. Returned if telephony status is changed. See Telephony Status Values |\n| `sequence` | integer | Order number of a notification to state the chronology |\n| `presenceStatus` | 'Offline' or 'Busy' or 'Available' | Aggregated presence status, calculated from a number of sources |\n| `userStatus` | 'Offline' or 'Busy' or 'Available' | User-defined presence status (as previously published by the user) |\n| `meetingsStatus` | 'Connected' or 'Disconnected' | Meetings presence status |\n| `dndStatus` | 'TakeAllCalls' or 'DoNotAcceptAnyCalls' or 'DoNotAcceptDepartmentCalls' | Extended DnD (Do not Disturb) status |\n| `allowSeeMyPresence` | boolean | If 'True' enables other extensions to see the extension presence status |\n| `ringOnMonitoredCall` | boolean | If 'True' enables to ring extension phone, if any user monitored by this extension is ringing |\n| `pickUpCallsOnHold` | boolean | If 'True' enables the extension user to pick up a monitored line on hold |\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"045b81dc-9f73-4864-84de-08aa6324a7f5\",\n \"event\": \"/restapi/v1.0/account/~/extension/6610372004/presence\",\n \"timestamp\": \"2016-02-18T09:37:24.597Z\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": \"6610372004\",\n \"body\": {\n \"extensionId\": 6610372004,\n \"telephonyStatus\": \"CallConnected\",\n \"sequence\": 2698,\n \"presenceStatus\": \"Busy\",\n \"userStatus\": \"Available\",\n \"meetingStatus\": \"Disconnected\",\n \"dndStatus\": \"TakeAllCalls\",\n \"allowSeeMyPresence\": true,\n \"ringOnMonitoredCall\": false,\n \"pickUpCallsOnHold\": false\n }\n } \n ```\n\n"},{"title":"Account Telephony Sessions Event","description":" \n*Since 1.0.36 (Release 10.2)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/telephony/sessions` enables notifications in case of change of session information for any extension assigned to the current account.\n\nThe client receives detailed call notification payload as a JSON object.\n\n**Required Permissions**\n\n| Permission | Description |\n|---------------|-----------------------|\n| `CallControl` | Creating and managing telephony sessions |\n\n\n**Query Parameters**\n\n| Parameter | Type | Description |\n|---------------|--------------------|\n| `direction` | 'Outbound' or 'Inbound' | Allows to send notifications only on call(s) with a specified direction |\n| `missedCall` | boolean | Allows to send notifications only on missed call(s) event | \n| `phoneNumber` | string | Allows to send notifications only on call(s) to/from a certain phone number; e.164 format with '+' sign is supported |\n| `sipData` | boolean | Enables detailed notifications with SIP information |\n| `statusCode` | 'Setup' or 'Proceeding' or 'Answered' or 'Disconnected' or 'Gone' or 'Parked' or 'Hold' or 'VoiceMail' or 'FaxReceive' or 'VoiceMailScreening' | Enables notifications on call sessions with a particular status. It is possible to subscribe to multiple statuses via different event filters |\n\n**Notification Payload Structure**\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of a call action in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Telephony Sessions Event | Session changes of the party |\n\n\n**Telephony Sessions Event**\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `sequence` | integer | Order number of a notification to state the chronology |\n| `sessionId` | string | Legacy identifier of a call session |\n| `telephonySessionId` | string | Call session identifier, required for Telephony API |\n| `serverId` | string | Identifier of a server |\n| `eventTime` | string | The call start datetime in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `origin` | Session Origin Details | Session Origin Details |\n| `parties` | Session Parties Details | Call participants details |\n\n**Session Origin Details**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `type` | string | The reason of Session creation. Could be 'Call' or 'RingOut' or 'RingMe' or 'Conference' or 'GreetingsRecording' or 'VerificationCall' or 'TestCall' |\n\n**Session Parties Details**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `accountId` | string | Internal identifier of an account |\n| `extensionId` | string | Internal identifier of an extension |\n| `id` | string | Internal identifier of a party, globaly unique |\n| `direction` | 'Inbound' or 'Outbound' | Technical call direction. 'Inbound' direction often means the call in the party context is initiated from RC to Customer endpoint. 'Outbound' is vice versa, e.g. User make outbound call from any of RC application. |\n| `to` | Callee Info | Callee Info |\n| `from` | Caller Info | Caller Info |\n| `status` | Session Status Info | Session Status Info |\n| `missedCall` | boolean | If 'True' means the call was missed by the party |\n| `standAlone` | boolean | Indicates whether the call party is standalone or not |\n| `muted` | boolean | If 'True' means the party is muted |\n| `conferenceRole` | 'Host' or 'Participant'| Defines party role in Server Side Conference |\n| `sipData` | SIP Info | SIP (Session Initiation Protocol) information. Returned if query parameter `sipData` is set to 'True' |\n\n**Callee Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Callee Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `name` | string | Callee Name |\n| `extensionId` | string | Internal identifier of an Callee extension |\n\n**Caller Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Caller Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `name` | string | Caller Name |\n| `extensionId` | string | Internal identifier of a Caller extension |\n\n**Session Status Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `code` | string | State Code for the party |\n| `reason` | string | Might be specified for some codes to add more details |\n| `parkData` | string | Appears in 'Parked' state. |\n| `peerId` | Linked Session Details | Contains details of the 'linked' Session. Appears in 'Gone' State Code |\n| `mobilePickupData` | Mobile Pickup Data | Appears if the user configured to answer the call via Desktop/Mobile application |\n\n**SIP Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `toTag` | string | Recipient data |\n| `fromTag` | string | Sender data|\n| `callId` | string | SIP call identifier |\n\n\n**Linked Session Details**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `sessionId` | string | Legacy identifier of a linked call session |\n| `telephonySessionId` | string | Call session identifier, required for Telephony API|\n| `partyId` | string | Party identifier of a linked call session |\n\n\n**Mobile Pickup Data**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `ccMailboxes` | string | List of extension IDs, configured to pick a call from Desktop/Mobile applications |\n| `to` | string | SIP proxy registration name |\n| `sid` | string | User data |\n| `srvLvl` | string | User data |\n| `srvLvlExt` | string | User data |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"837270960869181944\",\n \"subscriptionId\": \"5c37f936-fa66-4b4b-95af-1e94b51a748d\",\n \"ownerId\": \"400144455008\",\n \"pn_apns\": {\n \"aps\": {\n \"content-available\": 1\n },\n \"uuid\": \"837270960869181944\",\n \"event\": \"/restapi/v1.0/account/400144452008/extension/400144455008/telephony/sessions\",\n \"timestamp\": \"2018-06-05T00:14:50.181Z\",\n \"subscriptionId\": \"5c37f936-fa66-4b4b-95af-1e94b51a748d\",\n \"ownerId\": \"400144455008\",\n \"body\": {\n \"sequence\": 5,\n \"sessionId\": \"402936341008\",\n \"telephonySessionId\": \"Y3MxNzE4NDE5MDM0MzQwMTgzODRAMTAuNjIuMjUuMTEx\",\n \"serverId\": \"10.62.25.111.TAM\",\n \"eventTime\": \"2018-06-05T00:14:50.147Z\",\n \"accountId\": \"400144452008\",\n \"parties\": [\n { \n \"sipData\":{\n \"callId\":\"555555555555\",\n \"toTag\":\"123\",\n \"fromTag\":\"456\"\n },\n \"extensionId\": \"400144455008\",\n \"id\": \"cs171841903434018384-2\",\n \"direction\": \"Inbound\",\n \"to\": {\n \"phoneNumber\": \"102\",\n \"name\": \"Tom Sawyer\",\n \"extensionId\": \"400144455008\"\n },\n \"from\": {\n \"phoneNumber\": \"103\",\n \"name\": \"TheCat Jerry\",\n \"extensionId\": \"400144457008\"\n },\n \"status\": {\n \"code\": \"Proceeding\",\n \"mobilePickupData\": {\n \"ccMailboxes\": [\n \"400144455008\"\n ],\n \"to\": \"#19008@example.com:5060\",\n \"sid\": \"402936472080\",\n \"srvLvl\": \"-149699523\",\n \"srvLvlExt\": \"390\"\n }\n },\n \"missedCall\": false,\n \"standAlone\": false,\n \"muted\": false\n }\n ],\n \"origin\": {\n \"type\": \"Call\"\n },\n \"extensionId\": \"400144455008\"\n }\n }\n }\n```\n\n"},{"title":"Company Directory Event","description":" \n*Since 1.0.32 (Release 9.3)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/directory/entries` enables notifications in case of change of the following fields of a company directory contact entry:\n\n* status\n* firstName\n* lastName\n* name\n* department\n* email\n* extensionNumber\n* site\n* etag\n* adding/removal of a contact phone number \n\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Notification Payload Structure**\n \nThe client receives presence line notifications payload as a JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Contact Event | Notification payload body |\n\n**Contact Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` |string| Internal identifier of an extension |\n| `eventType` | string | Type of change |\n| `type` | string | Type of extension | \n| `status` | 'Disabled' or 'Enabled' or 'NotActivated' | Status of an extension|\n| `firstName`| string | First name of a user extension |\n| `lastName` | string | Last name of a user extension |\n| `name` | string | Name of a contact, for non-user extensions|\n| `department` | string | Department name |\n| `email` | string | Email of an extension user |\n| `extensionNumber` | string | Extension number |\n| `account` | Account Info | Account data of an extension|\n| `phoneNumbers` | Collection of Phone Number Info | Extension phone numbers information |\n| `site` | Site Info | Site data |\n| `profileImage` | Profile Image Info | Extension profile image information. Not returned if profile images are absent for an extension |\n\n**Account Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` |string| Internal identifier of an account |\n\n\n**Phone Number Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` |string| Extension phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format |\n| `usageType` | 'MobileNumber' or 'ContactNumber' or 'DirectNumber' or 'ForwardedNumber' | Usage type of a phone number|\n| `type` | 'VoiceOnly' or 'FaxOnly' or 'VoiceFax' | Type of a phone number|\n\n**Site Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` |string| Internal identifier of a site. For Main Site the value is `main-site` |\n| `name` | string | Custom name of a site |\n\n\n**Profile Image Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uri` |string| Link to a profile image resource |\n| `etag` | string| Internal identifier of an image |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"ed1cf00c-0420-4bf5-a0ae-e659cc9f77e0\",\n \"event\": \"/restapi/v1.0/account/400386146004/directory/entries\",\n \"timestamp\": \"2017-09-27T12:00:00.000Z\",\n \"subscriptionId\": \"3rtt23ryy-56665-t7r7-a0ae-748895yhhf94ujrr\",\n \"body\": {\n \"contacts\": [{\n \"eventType\": \"Update\",\n \"id\": \"8798797945\",\n \"type\": \"User\",\n \"status\": \"Enabled\",\n \"name\": \"John Smith\",\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"department\": \"Sales\",\n \"email\": \"john.smith@example.com\",\n \"extensionNumber\": \"103\",\n \"account\": {\n \"id\": \"12345\"\n },\n \"phoneNumbers\": [{\n \"phoneNumber\": \"+12345672134\",\n \"usageType\": \"DirectNumber\",\n \"type\": \"VoiceFax\"\n }\n ],\n \"profileImage\": {\n \"etag\": \"a4cf0cfe3eff6c81b8c0bab7f3649502\"\n },\n \"site\": {\n \"id\": \"12345678\",\n \"name\": \"West branch\"\n }\n }\n ]\n }\n}\n```\n\n\n\n"},{"title":"Detailed Extension Presence Event","description":" \n*Since 1.0.6 (Release 5.15)*\n \n1. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence?detailedTelephonyState=true` enables detailed notifications in case of any change of extension presence information:\n\n2. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line/presence?detailedTelephonyState=true` enables detailed notifications in case of changes of presence information for extensions monitored by the current extension. \n\n3. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite/presence?detailedTelephonyState=true` enables detailed notifications if presence status of any extension included in favorites list of the current extension is changed. \n\nPlease note: If both simple presence and detailed presence event types are specified in getting subscription request, then the detailed presence notifications will be received.\n\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadPresence` | Getting user presence information |\n \n**Notification Payload Structure**\n \nThe client receives non-detailed presence notification payload as a JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Presence Event\t | Notification payload body |\n\n**Detailed Presence Event**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n| `telephonyStatus` | 'NoCall' or 'CallConnected' or 'Ringing' or 'OnHold' or 'ParkedCall' | Telephony presence status. Returned if telephony status is changed. See Telephony Status Values |\n| `activeCalls` | Collection of Active Call Info | List of the latest 7 active calls on extension |\n| `sequence` | integer | Order number of a notification to state the chronology |\n| `presenceStatus` | 'Offline' or 'Busy' or 'Available' | Aggregated presence status, calculated from a number of sources |\n| `userStatus` | 'Offline' or 'Busy' or 'Available' | User-defined presence status (as previously published by the user) |\n| `meetingsStatus` | 'Connected' or 'Disconnected' | Meetings presence status |\n| `dndStatus` | 'TakeAllCalls' or 'DoNotAcceptAnyCalls' or 'DoNotAcceptDepartmentCalls' | Extended DnD (Do not Disturb) status |\n| `allowSeeMyPresence` | boolean | If 'True' enables other extensions to see the extension presence status |\n| `ringOnMonitoredCall` | boolean | If 'True' enables to ring extension phone, if any user monitored by this extension is ringing |\n| `pickUpCallsOnHold` | boolean | If 'True' enables the extension user to pick up a monitored line on hold |\n| `totalActiveCalls`| integer | Total number of active calls on extension at the present moment |\n\n**Active Call Info**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a call |\n| `direction` | 'Inbound' or 'Outbound' |Call direction|\n| `queueCall` | boolean | Identifies if a call belongs to the call queue |\n| `from` | string | Phone number or extension number of a caller |\n| `fromName` | string | Optional. Caller Name |\n| `to` | string | Optional. Phone number or extension number of a callee |\n| `toName` | string | Callee name |\n| `startTime` | dateTime | Datetime of actual start of the call in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `telephonyStatus` | 'NoCall' or 'CallConnected' or 'Ringing' or 'OnHold' or 'ParkedCall' | Telephony call status. See Telephony Status Values for detailed status description |\n| `terminationType` | 'final' | Type of call termination. Supported for calls in 'NoCall' status. Termination type 'intermediate', meaning the connection exists on one of the devices, is deprecated|\n| `sessionId` | string | Internal identifier of a call session |\n| `telephonySessionId` | string | Telephony identifier of call session |\n| `partyId` | string | Internal identifier of a call party |\n| `onBehalfOf` | string | Extension ID of the call owner on whose behalf a call is performed |\n\n**Example**\n\n```HTTP\n {\n \"uuid\": \"045b81dc-9f73-4864-84de-08aa6324a7f5\",\n \"event\": \"/restapi/v1.0/account/~/extension/6610372004/presence?detailedTelephonyState=true\",\n \"timestamp\": \"2016-02-18T09:37:24.597Z\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": \"6610372004\",\n \"body\": {\n \"extensionId\": 6610372004,\n \"telephonyStatus\": \"CallConnected\",\n \"activeCalls\": [\n {\n \"id\": \"39247ebfdc324e3b96d7519672aec3e4\",\n \"direction\": \"Inbound\",\n \"queueCall\": true,\n \"from\": \"+18775380038\",\n \"fromName\": \"John Wang\",\n \"to\": \"+18445810019\",\n \"telephonyStatus\": \"CallConnected\",\n \"startTime\" : \"2016-02-18T09:37:24.322Z\",\n \"sessionId\": \"17133704004\",\n \"partyId\":\"cs171843418296416309-2\",\n \"telephonySessionId\":\"Y3MxNjk4ODA5MTYxMzUyOTU5OUAxMC4zMi40NS44NA\"\n },\n {\n \"id\": \"39247ebfdc324e3b96d7519672aec3e5\",\n \"direction\": \"Outbound\",\n \"queueCall\": false,\n \"from\": \"+18776480025\",\n \"to\": \"+18445654321\",\n \"startTime\" : \"2016-02-18T09:37:24.322Z\"\n \"telephonyStatus\": \"NoCall\",\n \"sessionId\": \"17133804005\",\n \"partyId\": \"cs671843418296416309-2\",\n \"telephonySessionId\": \"Y3MxNjytruODA5MTYxMzUyOTU5OUAxMC4zMi40NS44NA\"\n }\n ],\n \"sequence\": 2698,\n \"presenceStatus\": \"Busy\",\n \"userStatus\": \"Available\",\n \"meetingStatus\": \"Disconnected\",\n \"dndStatus\": \"TakeAllCalls\",\n \"allowSeeMyPresence\": true,\n \"ringOnMonitoredCall\": false,\n \"pickUpCallsOnHold\": false,\n \"totalActiveCalls\": 2\n }\n } \n ```\n \n"},{"title":"Detailed Extension Presence with SIP Event","description":" \n*Since 1.0.6 (Release 5.15)*\n \n1. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence?detailedTelephonyState=true&sipData=true` enables detailed notifications with SIP information in case of any change of extension presence information:\n\n2. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line/presence?detailedTelephonyState=true&sipData=true` enables detailed notifications with SIP information in case of changes of presence information for extensions monitored by the current extension. \n\n3. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite/presence?detailedTelephonyState=true&sipData=true` enables detailed notifications with SIP information if presence status of any extension included in favorites list of the current extension is changed.\n\nPlease note: If you specify that `sipData=true` then `presence?detailedTelephonyState=true` also, as SIP data is a part of active calls section. If both detailed presence and detailed presence with SIP event types are specified in getting subscription request, then the detailed presence with SIP notifications will be returned.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadPresence` | Getting user presence information |\n \n**Notification Payload Structure**\n \nThe client receives detailed presence with SIP notifications payload as a JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Detailed Presence with SIP Event | Notification payload body |\n\n**Detailed Presence with SIP Event**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n| `telephonyStatus` | 'NoCall' or 'CallConnected' or 'Ringing' or 'OnHold' or 'ParkedCall' | Telephony presence status. Returned if telephony status is changed. See Telephony Status Values |\n| `activeCalls` | Collection of Active Call Info | Telephony presence status. Returned if telephony status is changed. See Telephony Status Values |\n| `sequence` | integer | Order number of a notification to state the chronology |\n| `presenceStatus` | 'Offline' or 'Busy' or 'Available' | Aggregated presence status, calculated from a number of sources |\n| `userStatus` | 'Offline' or 'Busy' or 'Available' | User-defined presence status (as previously published by the user) |\n| `meetingsStatus` | 'Connected' or 'Disconnected' | Meetings presence status |\n| `dndStatus` | 'TakeAllCalls' or 'DoNotAcceptAnyCalls' or 'DoNotAcceptDepartmentCalls' | Extended DnD (Do not Disturb) status |\n| `allowSeeMyPresence` | boolean | If 'True' enables other extensions to see the extension presence status |\n| `ringOnMonitoredCall` | boolean | If 'True' enables to ring extension phone, if any user monitored by this extension is ringing |\n| `pickUpCallsOnHold` | boolean | If 'True' enables the extension user to pick up a monitored line on hold |\n| `totalActiveCalls`| integer | Total number of active calls on extension at the present moment |\n\n**Active Call Info**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a call |\n| `direction` | 'Inbound' or 'Outbound' |Call direction|\n| `queueCall` | boolean | Identifies if a call belongs to the call queue |\n| `from` | string | Phone number or extension number of a caller |\n| `fromName` | string | Optional. Caller Name |\n| `to` | string | Optional. Phone number or extension number of a callee |\n| `toName` | string | Calee Name |\n| `startTime` | dateTime | Datetime of actual start of the call in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `telephonyStatus` | 'NoCall' or 'CallConnected' or 'Ringing' or 'OnHold' or 'ParkedCall' | Telephony call status. See Telephony Status Values for detailed status description |\n| `terminationType` | 'final' | Type of call termination. Supported for calls in 'NoCall' status. Termination type 'intermediate', meaning the connection exists on one of the devices, is deprecated|\n| `sessionId` | string | Internal identifier of a call session |\n| `sipData` | SIP Data | SIP connection settings |\n| `telephonySessionId` | string | Telephony identifier of call session |\n| `partyId` | string | Internal identifier of a call party |\n| `onBehalfOf` | string | Extension ID of the call owner on whose behalf a call is performed |\n\n**SIP Data**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `toTag` | string | Recipient data |\n| `fromTag` | string | Sender data |\n| `remoteUri` | string | Remote address URL |\n| `localUri` | string | Local address URL |\n\n**Example**\n\n```HTTP\n {\n \"uuid\": \"4956997212540532738\",\n \"event\": \"/restapi/v1.0/account/37439510/extension/297277020/presence?detailedTelephonyState=true&sipData=true\",\n \"timestamp\": \"2019-07-09T16:17:38.286Z\",\n \"subscriptionId\": \"dfbca25e-4e2b-4c60-aa8d-47a83716fe23\",\n \"ownerId\": \"297277020\",\n \"body\": {\n \"extensionId\": 297277020,\n \"telephonyStatus\": \"OnHold\",\n \"activeCalls\": [\n {\n \"id\": \"1nf2mhj51dp3asb3l0r5\",\n \"direction\": \"Outbound\",\n \"queueCall\": true,\n \"fromName\": \"Charlie Williams\",\n \"from\": \"+16508370072\",\n \"toName\": \"Alice Smith\",\n \"to\": \"4591\",\n \"telephonyStatus\": \"OnHold\",\n \"sipData\": {\n \"toTag\": \"7lcee2ho88\",\n \"fromTag\": \"10.14.20.199-5070-63fbd8da20314c\",\n \"remoteUri\": \"do-not-use-me-I-am-example\",\n \"localUri\": \"do-not-use-me-I-am-example\"\n },\n \"sessionId\": \"118139132021\",\n \"startTime\": \"2019-07-09T16:17:27.975Z\",\n \"partyId\": \"p-9cdb248614c94aa7ba68135f6c07b808-1\",\n \"telephonySessionId\": \"s-9cdb248614c94aa7ba68135f6c07b808\"\n },\n {\n \"id\": \"s-e1e9696d863742758a18654dcc22a2fd\",\n \"direction\": \"Inbound\",\n \"queueCall\": false,\n \"fromName\": \"Charlie Williams\",\n \"from\": \"66666\",\n \"toName\": \"Bob Brown\",\n \"to\": \"66666\",\n \"telephonyStatus\": \"Ringing\",\n \"sipData\": {\n \"toTag\": \"blf\",\n \"fromTag\": \"p-e1e9696d863742758a18654dcc22a2fd-2\",\n \"remoteUri\": \"do-not-use-me-I-am-example\",\n \"localUri\": \"do-not-use-me-I-am-example\"\n },\n \"sessionId\": \"118139217021\",\n \"startTime\": \"2019-07-09T16:17:37.705Z\",\n \"partyId\": \"p-e1e9696d863742758a18654dcc22a2fd-2\",\n \"telephonySessionId\": \"s-e1e9696d863742758a18654dcc22a2fd\"\n }\n ],\n \"sequence\": 2013,\n \"presenceStatus\": \"Busy\",\n \"userStatus\": \"Available\",\n \"dndStatus\": \"TakeAllCalls\",\n \"meetingStatus\": \"Disconnected\",\n \"allowSeeMyPresence\": true,\n \"ringOnMonitoredCall\": true,\n \"pickUpCallsOnHold\": true,\n \"totalActiveCalls\": 2\n }\n }\n```\n\n"},{"title":"Extension Favorites Event","description":" \n*Since 1.0.26 (Release 8.2)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite` enables notifications in case of extension favorite list changes.\n\nThe updated extension data is accessible by calling the [Get Favorite Contact List](https://developers.ringcentral.com/api-reference/External-Contacts/listFavoriteContacts) method.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadContacts` | Viewing user personal contacts |\n \n**Notification Payload Structure**\n \nThe client receives extension favorites list notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Extension Info | Notification payload body |\n\n**Extension Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"8b5594e0-d659-4e25-b36b-980ad907ae55\",\n \"event\": \"/restapi/v1.0/account/~/extension/9141626004/favorite\",\n \"timestamp\": \"2016-03-17T14:36:08.302Z\",\n \"subscriptionId\": \"2242051f-2980-4612-84ab-2d25e2efce2c\",\n \"ownerId\": 9141626004,\n \"body\": {\n \"extensionId\": 9141626004\n }\n } \n ```\n\n"},{"title":"Extension Grant List Event","description":" \n*Since 1.0.15 (Release 7.0)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/grant` enables notifications in case of extension grant list changes.\n\nThe updated extension data is accessible by calling the [Get Extension Grant List](https://developers.ringcentral.com/api-reference#User-Settings-listExtensionGrants) method.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Notification Payload Structure**\n \nThe client receives extension grant list notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Extension Grant List Event | Notification payload body |\n\n**Extension Grant List Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n\n\n**Example**\n\n```HTTP\n{ \n \"uuid\":\"ed1cf00c-0420-4bf5-a0ae-e659cc9f77e0\",\n \"event\":\"/restapi/v1.0/account/~/extension/8475874957/grant\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": 8475874957,\n \"timestamp\": \"2015-02-24T12:00:00.000Z\",\n \"body\":{ \n \"extensionId\": 8475874957\n }\n}\n ```\n\n"},{"title":"Extension Info Event","description":"\n*Since 1.0.15 (Release 7.0)*\n \nEvent filter /restapi/v1.0/account/{accountId}/extension/{extensionId} enables notifications in case of the current extension changes:\n\n* addition/removal of extensions to/from account\n* contact info (first/last name; company name; email; business phone; business address)\n* status\n* regional settings (timezone, home country, language, greeting language, formatting locale, time format)\n* permissions (administrator permission, international calling)\n* phone numbers (assign/unassign)\n* departments (added to/removed from)\n* service features (for the current extension only) - *SMS/SMSReceiving*, *Pager/PagerReceiving*, *Fax/FaxReceiving*, *Voicemail*, *EncryptionAtRest*, *BlockedMessageForwarding*, *DnD*, *RingOut*, *InternationalCalling*, *Presence*, *Conferencing*, *VoIPCalling*, *CallPark*, *OnDemandCallRecording*\n\nIf the client is subscribed to the current event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}` then notifications will be sent whenever any extension information change occurs. The `hints` property value returned in notification body helps to distinguish what type of change was actually made; each hint is mapped to the corresponding API method that can be called to get the required change. Please consider the 'Hints' table at the bottom of this page.\n\nThe full updated extension data is accessible by calling the [Get Extension Info](https://developers.ringcentral.com/api-reference#User-Settings-loadExtensionInfo) method.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Notification Payload Structure**\n \nThe client receives extension info notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Extension Info Event | Notification payload body |\n\n**Extension Info Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n| `eventType` | 'Update' or 'Delete' | Type of change |\n| `hints` | Collection of Hints | Returned for 'Update' event type only. See the list of supported hints and the corresponding APIs in the table below|\n\n\n**Hints**\n\n| Hint | Target API | \n|-----------|------|\n| `AccountSettings` | `account/~` |\n| `AccountStatus` | `account/~` |\n| `AnsweringRules` | `account/~/extension/~`|\n| `CompanyNumbers` | `account/~/extension/~/phone-number` |\n| `DialingPlan` | `account/~/dialing-plan` |\n| `ExtensionInfo` | `account/~/extension/~/` |\n| `Features` | `account/~/extension/~/features` |\n| `Limits` | `account/~/extension/~/features` |\n| `Permissions` | `account/~/extension/~/features` |\n| `ProfileImage` | `/account/~/extension/~/profile-image` |\n| `VideoConfiguration`| `account/~/extension`, `account/~/extension/~/` |\n\n\n\n**Example**\n\n```HTTP\n{ \n \"uuid\":\"ed1cf00c-0420-4bf5-a0ae-e659cc9f77e0\",\n \"event\":\"/restapi/v1.0/account/~/extension/8475874957\",\n \"timestamp\": \"2013-06-14T12:00:00.000Z\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": 8475874957,\n \"body\":{ \n \"extensionId\": \"8475874957\",\n \"eventType\": \"Update\",\n \"hints\": [ \"ExtensionInfo\", \"CompanyNumbers\"] \n }\n}\n ```\n\n"},{"title":"Extension List Event","description":" \n*Since 1.0.15 (Release 7.0)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/extension` enables notifications in case of extension list changes:\n\n* addition/removal of extensions to/from account\n* contact info (first/last name; company name; email; business phone; business address)\n* status\n* regional settings (timezone, home country, language, greeting language, formatting locale, time format)\n* permissions (administrator permission, international calling)\n* phone numbers (assign/unassign)\n* departments (added to/removed from)\n* service features (for the current extension only) - *SMS/SMSReceiving*, *Pager/PagerReceiving*, *Fax/FaxReceiving*, *Voicemail*, *EncryptionAtRest*, *BlockedMessageForwarding*, *DnD*, *RingOut*, *InternationalCalling*, *Presence*, *Conferencing*, *VoIPCalling*, *CallPark*, *OnDemandCallRecording*\n\nThe updated extension data is accessible by calling the methods [Get Extension List](https://developers.ringcentral.com/api-reference#Account-Provisioning-listExtensions) and/or [Get Extension Info](https://developers.ringcentral.com/api-reference#User-Settings-loadExtensionInfo).\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Notification Payload Structure**\n \nThe client receives extension list notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Extension List Event | Notification payload body |\n\n**Extension List Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n| `eventType` | 'Create' or 'Update' or 'Delete' | Type of change |\n| `hints` | Collection of Hints | Returned for 'Update' event type only. See the list of supported hints and the corresponding APIs in the table below|\n\n**Hints**\n\n| Hint | Target API | \n|-----------|------|\n| `AccountSettings` | `account/~` |\n| `AccountStatus` | `account/~` |\n| `AnsweringRules` | `account/~/extension/~`|\n| `CompanyNumbers` | `account/~/extension/~/phone-number` |\n| `DialingPlan` | `account/~/dialing-plan` |\n| `ExtensionInfo` | `account/~/extension/~/` |\n| `Features` | `account/~/extension/~/features` |\n| `Limits` | `account/~/extension/~/features` |\n| `Permissions` | `account/~/extension/~/features` |\n| `ProfileImage` | `/account/~/extension/~/profile-image` |\n| `VideoConfiguration`| `account/~/extension`, `account/~/extension/~/` |\n\n\n\n**Example**\n\n```HTTP\n{\n \"timestamp\": \"2014-04-29T14:29:27.408+0000\",\n \"subscriptionId\": \"a45645-0001-cc71-9de3-674476722\",\n \"ownerId\": 1500723004,\n \"uuid\": \"b11c9430-9687-4498-b12b-3fcb470bfe04\",\n \"event\": \"/restapi/v1.0/account/~/extension\",\n\n \"body\": { \"extensions\":[ \n { \n \"extensionId\": \"74953947939\",\n \"eventType\": \"Delete\"\n },\n { \n \"extensionId\": \"8798797945\",\n \"eventType\": \"Create\"\n },\n { \n \"extensionId\": \"8475874957\",\n \"eventType\": \"Update\",\n \"hints\": [ \"ExtensionInfo\", \"CompanyNumbers\"] \n }\n ]\n }\n } \n ```\n\n"},{"title":"Extension Presence Event","description":" \n*Since 1.0.6 (Release 5.15)*\n \n1. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence` enables notifications in case of any change of non-detailed presence information:\n\n2. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line/presence` enables notifications in case of changes of presence information for extensions monitored by the current extension. \n\n3. Event filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite/presence` enables notifications if presence status of any extension included in favorites list of the current extension is changed.\n\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadPresence` | Getting user presence information |\n \n**Notification Payload Structure**\n \nThe client receives non-detailed presence notification payload as a JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Presence Event\t | Notification payload body |\n\n**Presence Event**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `extensionId\t` | string | Internal identifier of an extension |\n| `telephonyStatus` | 'NoCall' or 'CallConnected' or 'Ringing' or 'OnHold' or 'ParkedCall' | Telephony presence status. Returned if telephony status is changed. See Telephony Status Values |\n| `sequence` | integer | Order number of a notification to state the chronology |\n| `presenceStatus` | 'Offline' or 'Busy' or 'Available' | Aggregated presence status, calculated from a number of sources |\n| `userStatus` | 'Offline' or 'Busy' or 'Available' | User-defined presence status (as previously published by the user) |\n| `meetingsStatus` | 'Connected' or 'Disconnected' | Meetings presence status |\n| `dndStatus` | 'TakeAllCalls' or 'DoNotAcceptAnyCalls' or 'DoNotAcceptDepartmentCalls' | Extended DnD (Do not Disturb) status |\n| `allowSeeMyPresence` | boolean | If 'True' enables other extensions to see the extension presence status |\n| `sequence`| integer | Order number of a notification to state the chronology | \n| `ringOnMonitoredCall` | boolean | If 'True' enables to ring extension phone, if any user monitored by this extension is ringing |\n| `pickUpCallsOnHold` | boolean | If 'True' enables the extension user to pick up a monitored line on hold |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"045b81dc-9f73-4864-84de-08aa6324a7f5\",\n \"event\": \"/restapi/v1.0/account/~/extension/6610372004/presence\",\n \"timestamp\": \"2016-02-18T09:37:24.597Z\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": \"6610372004\",\n \"body\": {\n \"extensionId\": 6610372004,\n \"telephonyStatus\": \"CallConnected\",\n \"sequence\": 2698,\n \"presenceStatus\": \"Busy\",\n \"userStatus\": \"Available\",\n \"meetingStatus\": \"Disconnected\",\n \"dndStatus\": \"TakeAllCalls\",\n \"allowSeeMyPresence\": true,\n \"ringOnMonitoredCall\": false,\n \"pickUpCallsOnHold\": false\n }\n } \n ```\n\n"},{"title":"Extension Presence Line Event","description":" \n*Since 1.0.16 (Release 7.1)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/line` enables notifications in case of change of presence of extension(s) monitored by the current extension.\n\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadPresence` | Getting user presence information |\n \n**Notification Payload Structure**\n \nThe client receives presence line notifications payload as a JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Presence Line Event | Notification payload body |\n\n**Presence Line Event**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `extension` | Extension Info | Extension information |\n| `sequence` | integer | Order number of a notification to state the chronology |\n\n**Extension Info**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of the extension |\n| `id` | string | Internal identifier of the returned line |\n\n**Example**\n\n```HTTP\n{ \n \"timestamp\": \"2014-04-29T13:23:12.468+0000\",\n \"uuid\": \"a295fa1f-af6a-4518-b333-acf091bdd7ea\",\n \"event\": \"/restapi/v1.0/account/~/extension/406149828004/presence/line\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": 406149828004,\n \"body\": {\n \"extension\": {\n \"id\": \"677628004765\"\n },\n {\n \"id\": \"3\"\n },\n {...}\n \n },\n \"sequence\": 2698,\n\n } \n```\n\n"},{"title":"Extension Telephony Sessions Event","description":" \n*Since 1.0.36 (Release 10.2)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/telephony/sessions` enables notifications in case of change of session information of specified extension.\n\nThe client receives detailed call notification payload as a JSON object.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `CallControl` | Creating and managing telephony sessions |\n\n\n**Query Parameters**\n\n| Parameter | Type | Description |\n|---------------|--------------------|\n| `direction` | 'Outbound' or 'Inbound' | Allows to send notifications only on call(s) with a specified direction |\n| `missedCall` | boolean | Allows to send notifications only on missed call(s) event | \n| `phoneNumber` | string | Allows to send notifications only on call(s) to/from a certain phone number; e.164 format with '+' sign is supported |\n| `sipData` | boolean | Enables detailed notifications with SIP information |\n| `statusCode` | 'Setup' or 'Proceeding' or 'Answered' or 'Disconnected' or 'Gone' or 'Parked' or 'Hold' or 'VoiceMail' or 'FaxReceive' or 'VoiceMailScreening' | Enables notifications on call sessions with a particular status. It is possible to subscribe to multiple statuses via different event filters |\n\n**Notification Payload Structure**\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of a call action in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Telephony Sessions Event | Body of Telephony Session Event |\n\n\n**Telephony Sessions Event**\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `sequence` | integer | Order number of a notification to state the chronology |\n| `sessionId` | string | Legacy identifier of a call session |\n| `telephonySessionId` | string | Call session identifier, required for Telephony API |\n| `serverId` | string | Identifier of a server |\n| `eventTime` | string | The call start datetime in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `origin` | Session Origin Details | Session Origin Details |\n| `parties` | Session Parties Details | Call participants details |\n\n**Session Origin Details**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `type` | string | The reason of Session creation. Could be 'Call' or 'RingOut' or 'RingMe' or 'Conference' or 'GreetingsRecording' or 'VerificationCall' or 'TestCall' |\n\n**Session Parties Details**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `accountId` | string | Internal identifier of an account |\n| `extensionId` | string | Internal identifier of an extension |\n| `id` | string | Internal identifier of a party, globaly unique |\n| `direction` | 'Inbound' or 'Outbound' | Technical call direction. 'Inbound' direction often means the call in the party context is initiated from RC to Customer endpoint. 'Outbound' is vice versa, e.g. User make outbound call from any of RC application. |\n| `queueCall` | boolean | Identifies if a call belongs to the call queue |\n| `to` | Callee Info | Callee Info |\n| `from` | Caller Info | Caller Info |\n| `status` | Session Status Info | Session Status Info |\n| `missedCall` | boolean | If 'True' means the call was missed by the party |\n| `standAlone` | boolean | Indicates whether the call party is standalone or not |\n| `muted` | boolean | If 'True' means the party is muted |\n| `conferenceRole` | 'Host' or 'Participant'| Defines party role in Server Side Conference |\n| `sipData` | SIP Info | SIP (Session Initiation Protocol) information. Returned if query parameter `sipData` is set to 'True' |\n\n**Callee Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Callee Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)(with '+' sign) format |\n| `name` | string | Callee Name |\n| `extensionId` | string | Internal identifier of an Callee extension |\n\n**Caller Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Caller Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `name` | string | Caller Name |\n| `extensionId` | string | Internal identifier of an Caller extension |\n\n**Session Status Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `code` | string | State Code for the party |\n| `reason` | string | Might be specified for some codes to add more details |\n| `parkData` | string | Appears in 'Parked' state. |\n| `peerId` | Linked Session Details | Contains details of the 'linked' Session. Appears in 'Gone' State Code |\n| `mobilePickupData` | Mobile Pickup Data | Appears, if User configured to answer the call on Desktop/Mobile applications|\n\n**SIP Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `toTag` | string | Recipient data |\n| `fromTag` | string | Sender data|\n| `callId` | string | SIP call identifier |\n\n**Linked Session Details**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `sessionId` | string | Legacy identifier of a linked call session |\n| `telephonySessionId` | string | Linked call session identifier, required for Telephony API |\n| `partyId` | string | Party identifier of a linked call session |\n\n\n**Mobile Pickup Data**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `ccMailboxes` | string | The list of extension IDs, configured to pick a call from Desktop/Mobile applications |\n| `to` | string | SIP proxy registration name |\n| `sid` | string | User data |\n| `srvLvl` | string | User data |\n| `srvLvlExt` | string | User data |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"837270960869181944\",\n \"subscriptionId\": \"5c37f936-fa66-4b4b-95af-1e94b51a748d\",\n \"ownerId\": \"400144455008\",\n \"pn_apns\": {\n \"aps\": {\n \"content-available\": 1\n },\n \"uuid\": \"837270960869181944\",\n \"event\": \"/restapi/v1.0/account/400144452008/extension/400144455008/telephony/sessions\",\n \"timestamp\": \"2018-06-05T00:14:50.181Z\",\n \"subscriptionId\": \"5c37f936-fa66-4b4b-95af-1e94b51a748d\",\n \"ownerId\": \"400144455008\",\n \"body\": {\n \"sequence\": 5,\n \"sessionId\": \"402936341008\",\n \"telephonySessionId\": \"Y3MxNzE4NDE5MDM0MzQwMTgzODRAMTAuNjIuMjUuMTEx\",\n \"serverId\": \"10.62.25.111.TAM\",\n \"eventTime\": \"2018-06-05T00:14:50.147Z\",\n \"accountId\": \"400144452008\",\n \"parties\": [\n { \n \"sipData\":{\n \"callId\":\"555555555555\",\n \"toTag\":\"123\",\n \"fromTag\":\"456\"\n },\n \"extensionId\": \"400144455008\",\n \"id\": \"cs171841903434018384-2\",\n \"direction\": \"Inbound\",\n \"to\": {\n \"phoneNumber\": \"102\",\n \"name\": \"Tom Sawyer\",\n \"extensionId\": \"400144455008\"\n },\n \"from\": {\n \"phoneNumber\": \"103\",\n \"name\": \"TheCat Jerry\",\n \"extensionId\": \"400144457008\"\n },\n \"queueCall\": true,\n \"status\": {\n \"code\": \"Proceeding\",\n \"mobilePickupData\": {\n \"ccMailboxes\": [\n \"400144455008\"\n ],\n \"to\": \"#19008@sip-mesdevams.lab.nordigy.ru:5060\",\n \"sid\": \"402936472080\",\n \"srvLvl\": \"-149699523\",\n \"srvLvlExt\": \"390\"\n }\n },\n \"missedCall\": false,\n \"standAlone\": false,\n \"muted\": false\n }\n ],\n \"origin\": {\n \"type\": \"Call\"\n },\n \"extensionId\": \"400144455008\"\n }\n }\n }\n```\n\n"},{"title":"Inbound Fax Event","description":"*Since 1.0.37 (Release 10.3)*\n\nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/fax?direction=Inbound` enables notifications in case of new inbound fax message:\n\nThe updated message info is accessible by calling the Get Message List method.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadMessages` | Viewing user messages |\n\n**Notification Payload Structure**\n \nThe client receives messages notifications payload as JSON object with the following structure:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2018-03-10T18:07:52.534Z* |\n| `body` | Fax Message Event | Notification payload body |\n\n**Fax Message Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a message |\n| `to` | Collection of Recipient Info | Message receiver(s) information |\n| `from` | Sender Info | Message sender information |\n| `type` | string | Type of a message. The value is 'Fax' |\n| `creationTime` | datetime | Message creation datetime in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `lastModifiedTime` | datetime | Datetime when the message was modified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `readStatus` | string | Status of a message. The default value is 'Unread' |\n| `priority` | string | The default value is 'Normal' |\n| `attachments` | Collection of Instant Message Attachment Info | Message attachment data |\n| `direction` | string | Message direction. The default value is 'Inbound' |\n| `availability` | string | Message availability status. The default value is 'Alive' |\n| `subject` | string | Message subject. It replicates message text which is also returned as an attachment |\n| `messageStatus` | string | Status of a message. The default value is 'Received' |\n| `conversationId` | string | Internal identifier of a conversation this message belongs to |\n| `faxResolution` | string | Resolution of a fax message. ('High' for black and white image scanned at 200 dpi, 'Low' for black and white image scanned at 100 dpi)|\n| `faxPageCount` | integer | Page count of a fax message |\n\n\n**Recipient Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `extensionNumber` | string | Extension number |\n| `target` | boolean | 'True' specifies that message is sent exactly to this recipient. Returned in to field for group MMS. Useful if one extension has several phone numbers |\n| `location` | string | Contains party location (city, state), if any |\n| `name` | string | Symbolic name associated with a caller/callee |\n\n**Sender Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `extensionNumber` | string | Extension number |\n| `location` | string | Contains party location (city, state), if any |\n| `name` | string | Symbolic name associated with a caller/callee |\n\n**Fax Message Attachment Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a message attachment |\n| `uri` | string | Link to an attachment resource |\n| `size` | integer | Attachment size in bytes |\n| `type` | 'AudioRecording' or 'AudioTranscription'| Type of a message attachment |\n| `contentType` | string | Content type of an attachment, see also MIME Types |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\":\"ed1cf00c-0420-4bf5-a0ae-e659bb9f77e0\",\n \"event\": \"/restapi/v1.0/account/~/extension/823476228762/fax?direction=Inbound\",\n \"subscriptionId\": \"dc853541-66ac-45d8-a289-1a239fd72888\",\n \"ownerId\": \"823476228762\",\n \"timestamp\": \"2018-02-28T10:06:15.000Z\",\n \"body\": {\n \"id\": 404068973008,\n \"from\": {\n \"phoneNumber\": \"+14029997777\"\n },\n \"type\": \"Fax\",\n \"creationTime\": \"2018-02-28T05:11:37.000Z\",\n \"readStatus\": \"Unread\",\n \"priority\": \"Normal\",\n \"attachments\": [\n {\n \"id\": 404068973008,\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/404161512008/extension/404161514008/message-store/404068973008/content/404068973008\",\n \"type\": \"RenderedDocument\",\n \"contentType\": \"application/pdf\"\n }\n ],\n \"direction\": \"Inbound\",\n \"availability\": \"Alive\",\n \"subject\": \"+17015402626\",\n \"messageStatus\": \"Received\",\n \"faxResolution\": \"High\",\n \"faxPageCount\": 2,\n \"lastModifiedTime\": \"2018-02-28T05:11:37.673Z\"\n }\n}\n ```\n\n"},{"title":"Instant Message Event","description":"\n*Since 1.0.26 (Release 8.2)*\n\nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/instant?type=SMS` enables notifications in case of receiving a new inbound SMS message.\n \nThe updated message info is accessible by calling the Get Message List method.\n\n**Notification Payload Structure**\n \nThe client receives messages notifications payload as JSON object with the following structure:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2018-03-10T18:07:52.534Z* |\n| `body` | Instant Message Event | Notification payload body |\n\n**Instant Message Event**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a message |\n| `to` | Collection of Recipient Info | Message receiver(s) information |\n| `from` | Sender Info | Message sender information |\n| `type` | string | Type of a message. The default value is 'SMS' |\n| `creationTime` | datetime | Message creation datetime in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `lastModifiedTime` | datetime | Datetime when the message was modified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `readStatus` | string | Status of a message. The default value is 'Unread' |\n| `priority` | string | The default value is 'Normal' |\n| `attachments` | Collection of Instant Message Attachment Info | Message attachment data |\n| `direction` | string | Message direction. The default value is 'Inbound' |\n| `availability` | string | Message availability status. The default value is 'Alive' |\n| `subject` | string | Message subject. It replicates message text which is also returned as an attachment |\n| `messageStatus` | string | Status of a message. The default value is 'Received' |\n| `conversationId` | string | Identifier of the conversation the message belongs to |\n\n**Recipient Info**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `extensionNumber` | string | Extension number |\n| `target` | boolean | 'True' specifies that message is sent exactly to this recipient. Returned in to field for group MMS. Useful if one extension has several phone numbers |\n| `location` | string | Contains party location (city, state), if any |\n| `name` | string | Symbolic name associated with a caller/callee |\n\n**Sender Info**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `extensionNumber` | string | Extension number |\n| `location` | string | Contains party location (city, state), if any |\n| `name` | string | Symbolic name associated with a caller/callee |\n\n**Instant Message Attachment Info**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a message attachment |\n| `uri` | string | Link to an attachment resource |\n| `size` | integer | Attachment size in bytes |\n| `type` | 'AudioRecording' or 'AudioTranscription' or 'RenderedDocument' or 'Text' or 'MmsAttachment' | Type of a message attachment. The default value is 'Text' |\n| `contentType` | string | Content type of an attachment, see also MIME Types. The default value is 'text/plain' |\n\n**Example**\n\n```HTTP\n{\n \"uuid\":\"ed1cf00c-0420-4bf5-a0ae-e659bb9f77e0\",\n \"event\": \"/restapi/v1.0/account/~/extension/823476228762/message-store/instant?type=SMS\",\n \"subscriptionId\": \"dc853541-66ac-45d8-a289-1a239fd72888\",\n \"ownerId\": \"823476228762\",\n \"timestamp\": \"2013-06-14T12:00:00.000Z\",\n \"body\": {\n \"id\" : \"606090030016\",\n \"to\" : [ {\n \"phoneNumber\" : \"+16508974563\",\n \"location\" : \"Moss Beach, CA\",\n } ],\n \"from\" : {\n \"phoneNumber\" : \"+14157809227\",\n \"name\" : \"John Smith\"\n },\n \"type\" : \"SMS\",\n \"creationTime\" : \"2016-02-22T17:01:00.000Z\",\n \"lastModifiedTime\" : \"2016-02-22T17:01:00.000Z\",\n \"readStatus\" : \"Unread\", \n \"priority\" : \"Normal\",\n \"attachments\" : [ {\n \"uri\" : \"/restapi/v1.0/account/~/extension/823476228762/message-store/2640223004/content/2640223004\"\n \"id\" : \"606090030016\",\n \"type\" : \"Text\",\n \"contentType\" : \"text/plain\",\n \"size\": 4096\n } ],\n \"direction\" : \"Inbound\",\n \"availability\" : \"Alive\",\n \"subject\" : \"Hi there\",\n \"messageStatus\" : \"Received\",\n \"conversationId\" : \"7876416245344257449\"\n }\n}\n ```\n\n"},{"title":"Message Event","description":"\n*Since 1.0.6 (Release 5.15)*\n\nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store` enables notifications in case of:\n\n* any new message creation;\n* any message change in extension message store.\n\n\nThe updated message info is accessible by calling the Get Message List method.\n\n**Please note:** To receive notifications on a certain message type (Fax/Voicemail/Pager/SMS) and/or direction (Inbound/Outbound) the following event filter should be specified `/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?type={type}&direction={direction}`. \n\n*For example* to recieve notifications on outbound fax event use the filter: `/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?type=Fax&direction=Outbound`\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadMessages` | Viewing user messages |\n\n**Notification Payload Structure**\n\nThe client receives messages notifications payload as JSON object with the following structure:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event`\t| string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Message Event | Notification payload body |\n\n**Message Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `accountId` | string | Internal identifier of an account. Optional parameter |\n| `extensionId` | string | Internal identifier of an extension. Optional parameter |\n| `lastUpdated` | datetime | Datetime when the message was last modified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `changes` | Message Changes | Message changes |\n\n**Message Changes**\n\n| Parameter\t| Type | Description |\n|-----------|------|-------------|\n| `type` | 'Voicemail' or 'SMS' or 'Fax' or 'Pager' | Message type |\n| `newCount` | integer | The number of new messages. Can be omitted if the value is zero |\n| `updatedCount` | integer | The number of updated messages. Can be omitted if the value is zero |\n\n**Example**\n\n```HTTP\n{\n \"timestamp\": \"2014-04-29T14:29:27.408+0000\",\n \"uuid\": \"b11c9430-9687-4498-b12b-3fcb470bfe04\",\n \"event\": \"/restapi/v1.0/account/~/extension/406149828004/message-store\",\n \"ownerId\": \"406149828004\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"body\": {\n \"accountId\": 406149828004,\n \"extensionId\": 406149828004, \n \"lastUpdated\": \"2014-04-29T14:29:20.531+0000\",\n \"changes\": [\n {\n \"type\": \"Pager\",\n \"updatedCount\": 1,\n \"newCount\": 0\n }\n {\n \"type\": \"SMS\",\n \"updatedCount\": 0,\n \"newCount\": 1\n },\n {...} ], \n }, \n\n }\n ```\n\n\n"},{"title":"Voicemail Message Event","description":"\n*Since 1.0.36 (Release 10.2)*\n\nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/voicemail` enables notifications in case of new voicemail message is received.\n\nThe updated message info is accessible by calling the Get Message List method.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadMessages` | Viewing user messages |\n\n**Notification Payload Structure**\n \nThe client receives messages notifications payload as JSON object with the following structure:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId`\t| string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2018-03-10T18:07:52.534Z* |\n| `body` | Voicemail Message Event | Notification payload body |\n\n**Voicemail Message Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a message |\n| `to` | Collection of Recipient Info | Message receiver(s) information |\n| `from` | Sender Info | Message sender information |\n| `type` | string | Type of a message. The value is 'Voicemail' |\n| `creationTime` | datetime | Message creation datetime in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `lastModifiedTime` | datetime | Datetime when the message was modified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `readStatus` | string | Status of a message. The default value is 'Unread' |\n| `priority` | string | The default value is 'Normal' |\n| `attachments` | Collection of Instant Message Attachment Info | Message attachment data |\n| `direction` | string | Message direction. The default value is 'Inbound' |\n| `availability` | string | Message availability status. The default value is 'Alive' |\n| `subject` | string | Message subject. It replicates message text which is also returned as an attachment |\n| `messageStatus` | string | Status of a message. The default value is 'Received' |\n| `conversationId` | string | Internal identifier of a conversation this message belongs to |\n| `vmTranscriptionStatus`| string | Specifies if a voicemail message transcription is already completed or not|\n\n**Recipient Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `extensionNumber` | string | Extension number |\n| `target` | boolean | 'True' specifies that message is sent exactly to this recipient. Returned in to field for group MMS. Useful if one extension has several phone numbers |\n| `location` | string | Contains party location (city, state), if any |\n| `name` | string | Symbolic name associated with a caller/callee |\n\n**Sender Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `phoneNumber` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) (with '+' sign) format |\n| `extensionNumber` | string | Extension number |\n| `location` | string | Contains party location (city, state), if any |\n| `name` | string | Symbolic name associated with a caller/callee |\n\n**Voicemail Message Attachment Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of a message attachment |\n| `uri` | string | Link to an attachment resource |\n| `size` | integer | Attachment size in bytes |\n| `type` | 'AudioRecording' or 'AudioTranscription'| Type of a message attachment |\n| `contentType` | string | Content type of an attachment, see also MIME Types |\n| vmDuration | integer | Duration of a voicemail in seconds |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\":\"ed1cf00c-0420-4bf5-a0ae-e659bb9f77e0\",\n \"event\": \"/restapi/v1.0/account/~/extension/823476228762/voicemail\",\n \"subscriptionId\": \"dc853541-66ac-45d8-a289-1a239fd72888\", \n \"ownerId\": \"823476228762\",\n \"timestamp\": \"2018-02-28T10:06:15.000Z\",\n \"body\": {\n \"id\" : 82063400004,\n \"to\" : [ {\n \"name\" : \"John Doe\"\n } ],\n \"from\" : {\n \"phoneNumber\" : \"+18664320079\",\n \"name\" : \"Jane Doe\"\n },\n \"type\" : \"VoiceMail\",\n \"creationTime\" : \"2018-02-28T10:05:55.000Z\",\n \"readStatus\" : \"Unread\",\n \"priority\" : \"Normal\",\n \"attachments\" : [ {\n \"id\" : 82063400004,\n \"uri\" : \"https://platform.ringcentral.com/restapi/v1.0/account/14833636004/extension/14833636004/message-store/82063400004/content/82063400004\",\n \"type\" : \"AudioRecording\",\n \"contentType\" : \"audio/x-wav\",\n \"vmDuration\" : 3\n } ],\n \"direction\" : \"Inbound\",\n \"availability\" : \"Alive\",\n \"messageStatus\" : \"Received\",\n \"lastModifiedTime\" : \"2018-02-28T10:06:05.000Z\",\n \"vmTranscriptionStatus\" : \"Completed\"\n }\n}\n ``` \n\n"},{"title":"Emergency Address Event","description":"\n*Since 1.0.43 (Release 20.2)*\n\nEvent filter `/restapi/v1.0/account/{accountId}/device/{deviceId}/emergency-address` enables notifications in case of change of device emergency address.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number |\n\n**Notification Payload Structure**\n \nThe client receives emergency address notifications payload as a JSON object with the following structure:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2018-03-10T18:07:52.534Z* |\n| `body` | Emergency Address Event | Notification payload body |\n\n**Emergency Address Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n| `deviceId` | string | Internal identifier of a device |\n\n\n**Example**\n\n```HTTP\n{ \n \"uuid\":\"ed1cf00c-0420-4bf5-a0ae-e659cc9f77e0\",\n \"event\":\"/restapi/v1.0/account/~/device/8475874957/emergency-address\",\n \"timestamp\": \"2020-01-14T12:00:00.000Z\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": 12311555413,\n \"body\":{ \n \"extensionId\": 12311555413,\n \"deviceId\": 8475874957\n }\n}\n ``` \n\n"},{"title":"Contact Center Phone Number Event","description":"\n*Since 1.0.43 (Release 20.2)*\n\nEvent filter `/restapi/v1.0/account/{accountId}/phone-number?usageType=ContactCenterNumber` enables notifications in case of any change related to Contact Center phone numbers. A change can be defined by the `usageType` filter with the following values: \n*Created* - a new phone number is created its first assignment is \"Contact Center\";\n*Deleted* - a Contact Center number is deleted;\n*Updated* - the existing phone number (already assigned to any extension type) was converted to \"Contact Center\"; the existing phone number of 'Contact Center' type is reassigned to any other extension type.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number |\n\n**Notification Payload Structure**\n \nThe client receives contact center numbers notifications payload as a JSON object with the following structure:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2018-03-10T18:07:52.534Z* |\n| `body` | Contact Center Phone Number Event | Notification payload body |\n\n**Contact Center Phone Number Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `eventType` | 'Created' or 'Updated' or 'Deleted' | Type of change |\n| `phoneNumberInfo` | Phone Number Info | Information on a changed phone number |\n\n**Phone Number Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uri` | string | Link to a phone number resource |\n| `id` | string | Internal identifier of a phone number |\n| `phoneNumber` | string | Phone number in e.164 format |\n| `paymentType` | string | Type of payment |\n| `location` | string | Phone number location |\n| `type` | 'Voice' or 'Fax' or 'VoiceFax' | Type of a number |\n| `usageType` | 'ContactCenterNumber' | Phone number usage type |\n| `status` | string | Phone number status |\n| `contactCenterProvider` | Contact Center Provider Info | Information on a Contact Center Provider |\n\n\n**Contact Center Provider Info**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Internal identifier of provider|\n| `name` | string | Provider name |\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"ed1cf00c-0420-4bf5-a0ae-e659cc9f77e0\",\n \"event\": \"/restapi/v1.0/account/{accountId}/phone-number?usageType=ContactCenterNumber\",\n \"timestamp\": \"2013-06-14T12:00:00.000Z\",\n \"subscriptionId\": \"9d38419f-645f-4ee3-a053-8cf1368c21c4\",\n \"ownerId\": 8475874957,\n \"body\": {\n \"eventType\": \"Created\",\n \"phoneNumberInfo\": {\n \"uri\": \"https://platform.ringcentral.com/restapi/v1.0/account/37439510/phone-number/987654321\",\n \"id\": 987654321,\n \"phoneNumber\": \"+12024999741\",\n \"paymentType\": \"Local\",\n \"location\": \"Washington, DC\",\n \"type\": \"VoiceFax\",\n \"usageType\": \"ContactCenterNumber\",\n \"status\": \"Normal\",\n \"contactCenterProvider\": {\n \"id\": \"12345\",\n \"name\": \"ProviderName\"\n }\n }\n }\n}\n```\n\n"},{"title":"Message Batch Event","description":" \n*Since 1.0.45 (Release 20.4)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/a2p-sms/batch` enables notifications in case of any message batch change on the current account.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Query Parameters**\n\n| Parameter | Type | Description |\n|---------------|--------------------|\n| `from` | string | Notification is received if the message batch is sent from a specific number in E.164 format, e.g. +16505550100|\n\n**Notification Payload Structure**\n \nThe client receives message batch notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Message Batch Event | Notification payload body |\n\n**Message Batch Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Unique identifier of the message batch |\n| `from` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the messages are going to be sent |\n| `batchSize` | integer | Total number of messages in the accepted batch |\n| `processedCount` | integer | Total number of messages currently processed in the batch |\n| `lastModifiedTime` | string | Last time the batch was processed |\n| `status` | 'Processing' or 'Completed' | Current status of a message batch |\n| `creationTime` | string | The time at which the batch was created |\n\n\n**Example**\n\n```HTTP\n\n\n```\n\n"},{"title":"Specific Message Batch Event","description":" \n*Since 1.0.45 (Release 20.4)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/a2p-sms/batch/{batchId}` enables notifications in case of specific message batch change.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n\n\n**Notification Payload Structure**\n \nThe client receives message batch notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Specific Message Batch Event | Notification payload body |\n\n**Specific Message Batch Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Unique identifier of the message batch |\n| `from` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the messages are going to be sent |\n| `batchSize` | integer | Total number of messages in the accepted batch |\n| `processedCount` | integer | Total number of messages currently processed in the batch |\n| `lastModifiedTime` | string | Last time the batch was processed |\n| `status` | 'Processing' or 'Completed' | Current status of a message batch |\n| `creationTime` | string | The time at which the batch was created |\n\n\n**Example**\n\n```HTTP\n\n\n```\n\n"},{"title":"Batch Messages Event","description":" \n*Since 1.0.45 (Release 20.4)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/a2p-sms/messages` enables notifications in case of any message change in any batch on the current account.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Query Parameters**\n\n| Parameter | Type | Description |\n|---------------|--------------------|\n| `direction` | 'Inbound' or 'Outbound' | Specifies if notification is sent on inbound or outbound messages |\n| `batchId` | string | Notification is sent on inbound/outboud messages of the specific message batch |\n| `from` | string | Notification is sent on outbound messages from a specific phone number in E.164 format |\n| `to` | string | Notification is sent on inbound messages to a specific phone number in E.164 format |\n\n**Notification Payload Structure**\n \nThe client receives message batch notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Batch Messages Event | Notification payload body |\n\n**Batch Messages Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `id` | string | Unique identifier of the message batch |\n| `from` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the messages are sent |\n| `to` |string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format to which the messages are sent |\n| `text` | string | Text of a message, maximum number of characters is 1000 |\n| `creationTime` | string | The time at which the message was created |\n| `lastModifiedTime` | string | The time when this message was last updated |\n| `messageStatus` |'Queued' or 'Delivered' or 'Sent' or 'SendingFailed' or 'DeliveryFailed' |Current status of a message |\n| `segmentCount`|integer | Number of segments of a message |\n| `cost`| number | Cost of a message |\n| `batchId` | string |The batch in which the message was submitted |\n| `direction`| 'Inbound' or 'Outbound' | Indicates whether the message is outbound or inbound |\n| `errorCode` | string | RC error code of the message sending failure reason |\n\n**Example**\n\n```HTTP\n\n\n```\n\n\n"},{"title":"Batch Message Opt-Out Event","description":" \n*Since 1.0.45 (Release 20.4)*\n \nEvent filter `/restapi/v1.0/account/~/a2p-sms/opt-outs` enables notifications in case customers opt out. \nOpt-out events are sent when a user connects to the RingCentral opt-out service using standard keywords including stop, unstop, start, etc.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n**Query Parameters**\n\n| Parameter | Type | Description |\n|---------------|--------------------|\n| `direction` | 'Inbound' or 'Outbound' | Specifies if notification is sent on inbound or outbound messages |\n| `batchId` | string | Notification is sent on inbound/outboud messages of the specific message batch |\n| `from` | string | Notification is sent on outbound messages from a specific phone number in E.164 format |\n| `to` | string | Notification is sent on inbound messages to a specific phone number in E.164 format |\n\n**Notification Payload Structure**\n \nThe client receives message batch notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | Opt-Out Event | Notification payload body |\n\n**Opt-Out Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `from` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format from which the message is sent |\n| `to` | string | Phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format to which the message is sent |\n| `active` | boolean | Indicates if opt-out service is active or not from/to the number specified|\n\n\n**Example**\n\n```HTTP\n{\n \"uuid\":\"12345678901234567890\",\n \"event\":\"/restapi/v1.0/account/11111111/a2p-sms/opt-outs\",\n \"timestamp\":\"2020-10-01T00:00:00.000Z\",\n \"subscriptionId\":\"11112222-3333-4444-5555-666677778888\",\n \"ownerId\":\"22222222\",\n \"body\":{\n \"from\":\"+16505550100\",\n \"to\":\"+12125550100\",\n \"active\":true\n }\n}\n\n```\n\n"},{"title":"Extension DND Status Event","description":"\n*Since 1.0.46 (Release 21.1)*\n \nEvent filter `/restapi/v1.0/account/{accountId}/extension/{extensionId}/presence/dnd` enables notifications in case of `dndStatus` change of the current extension.\n\n**Required Permissions**\n\n| Permission | Description |\n|----------------|-----------------------|\n| `ReadAccounts` | Viewing user account info (including name, business name, address and phone number/account number) |\n \n\n**Notification Payload Structure**\n \nThe client receives DND status change notification payload as JSON object with the following structure:\n \n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `uuid` | string | Universally unique identifier of a notification |\n| `event` | string | Event filter URI |\n| `ownerId` | string | Internal identifier of subscription owner extension |\n| `subscriptionId` | string | Internal identifier of a subscription |\n| `timestamp` | datetime | Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z* |\n| `body` | DND Status Event | Notification payload body |\n\n**DND Status Event**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `extensionId` | string | Internal identifier of an extension |\n| `dndStatus` | 'TakeAllCalls' or 'DoNotAcceptAnyCalls' or 'DoNotAcceptDepartmentCalls' | Extended DnD (Do not Disturb) status |\n\n**Example**\n\n```HTTP\n{\n \"uuid\": \"045b81dc-9f73-4864-84de-08aa6324a7f5\",\n \"event\": \"/restapi/v1.0/account/6610372004/extension/6610372004/presence/dnd\",\n \"timestamp\": \"2021-02-18T09:37:24.597Z\",\n \"ownerId\": \"6610372004\",\n \"body\": {\n \"extensionId\": 6610372004,\n \"dndStatus\": \"TakeAllCalls\"\n }\n }\n\n```\n"}]}],"x-introduction":[],"guideMapping":{"Using the API":"/guide/basics","Account":"/guide/account","Address Book":"/guide","Authentication":"/guide/authentication","Events & Notifications":"/guide/notifications","Team Messaging":"/guide/team-messaging","Meetings":"/guide/meetings","SMS and Fax":"/guide/messaging","Provisioning":"/guide","Utilities":"/guide","Voice":"/guide/voice"},"primaryIcons":{"Using the API":"group_icon_basics","Authentication":"group_icon_auth","Account":"group_icon_account","Address Book":"group_icon_address","Events & Notifications":"group_icon_notification","Team Messaging":"group_icon_glip","Meetings":"group_icon_meeting","SMS and Fax":"group_icon_messaging","Provisioning":"group_icon_provisioning","Utilities":"group_icon_utilities","Voice":"group_icon_voice"}}