Add Phone Number in DomainAsk AIpost https://{server}/ns-api/v2/domains/{domain}/phonenumbersThis will allow adding a phone number.Path Paramsdomainstringrequiredlength ≤ 64Defaults to ~This is the main organization name. This is used to link resource to its group/tenant/organization/enterprise. Then using in path for GET you can set to "~" to use the domain name linked to your token/key instead of the domain name itself when reading for your own domain.Body ParamsphonenumberstringrequiredThis is the main phonenumber setting. Should be a formated in a e164 format with country count and number. US domestic numbers should be similiar to 18005551234enabledstringenumDefaults to yesThis allows any added configurations to specify a hostname. Default to "yes"yesyesnoAllowed:yesnodial-rule-applicationstringenumThis is the application that the call will be routed using. It works in partnership with dial-rule-translation-destination-user and dial-rule-translation-destination-host to forward to a next destination.available-numberavailable-numberto-voicemail-residentialto-callqueueto-callqueue-announce-count-callers-aheadto-callqueue-announce-expected-wait-timeto-connectionto-connection-or-user-no-failoverto-single-deviceto-userto-user-residentialto-voicemailspam-screeningto-connection-block-caller-idto-connection-no-timeoutto-connection-add-header-force-caller-idto-connection-add-header-no-timeoutto-connection-add-headerto-single-device-add-header-allow-voicemailto-single-device-add-header-allow-voicemail-residentialto-single-device-add-headerto-user-add-headerto-user-residential-add-headerto-user-notify-of-recordinghangupto-user-answer-and-fake-ringbackShow 25 enum valuesdial-rule-parameterstringThis is the application parameter field that can be used for additional settings based on the dial-rule-application. Default is empty string.dial-rule-translation-destination-userstringrequiredThis is the forward destination the call will be sent to in partnership with the application (dial-rule-application) and host (dial-rule-translation-destination-host). This might be a user, queue or offnet number depending on the application.dial-rule-translation-destination-hoststringDefaults to [*]This is the forward destination host the call will be sent to in partnership with the application (dial-rule-application) and user (dial-rule-translation-destination-user). This might be the domain name or a connection name if trying to route offnet.dial-rule-translation-source-namestringDefaults to [*]This field will allow customization of the source "name" often used for teh caller id name or the the descriptive quoted value outside of the sip uri. Defaults to [] but you can add a prefix for example with something like this, sales_[]dial-rule-descriptionstringThis is a description of the number/rule that can be used for defintion or tracking purposes.Responses 202Accepted 400Bad Request 401Authentication Required 404Record not found 409DuplicateUpdated 11 months ago