Automated DID Provisioning
From VTwiki
VT_White Provisioning API
VT_White offers a Provisioning API to allow your web application to handle provisioning of DIDs. This can be useful if you are reselling the service to your own end users and do not want to manually handle provisioning on each of their DIDs.
The first thing you need to do is log into your VT_White control panel and add an API node [link: https://cp.vtwhite.com/apinodemanager.php]
The name can be anything you wish. This is just to help you keep track of multiple nodes. The username and password can be anything you wish. These are the credentials your web app will use to authenticate with VT_White. The IP address should be the IP of the web server that will be connecting to VT_White's API. If you are also going to be using the E911 API to setup E911 access for DIDs, you can check 911 API Access as well. Once you have filled out all of the options, click on "Submit Query" to add the new user.
Once you have setup the API user, the next step is to connect your web application. As an example, I will use PHP and curl, but this can be accomplished with just about any scripting language.

The script above submits an XML packet via HTTP post to VT_White's API URL. The URL will respond back with an XML packet containing the results of your search, or an error code if one was generated. It merely prints the XML packet VT_White sends back, but it could be expanded to do anything you needed.
A couple important notes, per the VT_White API documentation:
1. You must use HTTP POST to submit your form. A GET request will not work.
2. You must submit the XML packet as a variable called "packet". If you do not do this, VT_White's API cannot work with the XML you send it.
3. Take care not to convert <, > signs in your XML into HTML Entities (>. <). The VT_White API expects to receive XML with standard tags.

