Access Authentication

From Prime Wiki
Share on FacebookShare on TwitterShare on Google+Share on LinkedIn

URL The HTTP API is available at:

Note For security reasons, you should always send API requests using HTTPS. AuthenticationTop

All requests require the following authentication parameters:

   auth-userid: Your Live Account Reseller Id (See the instructions below for finding your Reseller Id).
   api-key: An alphanumeric code that can be used to authenticate your API calls (See the instructions below for finding your API Key),

Locating your Reseller IdTop

   Login to your Reseller Control Panel. 1
   Click the icon at the top right corner of the page and then click Manage Profile.
   In the Reseller Profile Details view that is now displayed, the first field indicates your Reseller Id.

Locating your API KeyTop

   Login to your Reseller Control Panel. 2
   In the Menu, point to Settings and then click API.
   Click the View API key link under the API Key section. Your unique API Key will be displayed in a pop-up window over a secure connection.
   You may generate a fresh API Key by clicking the Regenerate link.

Note Generating a fresh API Key will invalidate your old API Key immediately and this will have an impact on your existing API calls. Please exercise caution while generating a new API Key.

Whitelisting your IP Address(es)Top

   Login to your Reseller Control Panel. 3
   In the Menu, point to Settings and then click API.
   Under the Whitelist your IP Addresses section, specify the IP Addresses from where you will be making API requests and then click the Save whitelisted IP addresses button.

Note IP ranges and netblocks are not accepted.

Testing / Trying out the APITop

The HTTP API requires that all requests to retrieve data should use the GET method and requests that submit, change, or destroy data should use the POST method. Requests that require a particular HTTP method will return an error if you do not make your request with the correct method.

However, to make it easy for you to try out and test the API using the browser or command line tools, we have made available a special Test URL that allows you to make any request using the GET method. Example Test URL requests are provided for all API requests. The Test URLTop

Note The Test URL should only be used for trying out or testing the API via the browser/command line tools and should not be used in production environments.

We always recommend usage of a Demo Account Reseller Id and Password with the Test URL for authentication as against usage of your Live Account credentials. Usage of your Live Account credentials, even with the Test URL, will result in actions being performed in production environments.