API INTRODUCTION
Bizstim CRM Business software uses a REST API architecture. Navigate to the API Index menu option above to see a full list of methods available. Over time, we will add to the methods available.
To use our API you will need to have a trial account or Enterprise account. You can review the features and prices for our All-In-1 CRM at your convenience. Click here to register for a FREE 21-day trial.
To use our API you need to generate an API Key. Once you have registered an account, login to your account and go to SETTINGS > SYSTEM (settings from the main menu and system from the sub-menu). You will see an area marked, "API Settings." Click on the "Generate API Key" button. Copy and paste the generated, 40 character API key to your web script.
HOW TO MAKE AN API REQUEST
Below is an example of a script using cURL to access the Bizstim CRM API. Replace the [METHOD] with the method you wish to use. If the method has a required parameter, replace the [PARAMETER] with this value. Typically, the parameter is an id associated with the table storing the data.
IMPORTANT: separate method names and parameters with a " /
" and NOT a " ?id=###
." You can append the API call with a " ?format=xml
" to style the response object in xml format. The default response object is json. Compatible formats include: json, jsonp, php, serialized, and xml.
Here is an example of an API call that returns a specific client by their client id in xml:
https://www.bizstim.com/api/client/5121?format=xml
EXAMPLE API REQUEST
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://www.bizstim.com/api/{METHOD}/{PARAMETER}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "x-api-key: {PASTE-API-KEY-HERE}" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
In the example above we are echoing out the response. Don't do this in production! Instead, store the response in a $response variable and use the data accordingly.
USING GET METHODS
When you want to retrieve data
you make a GET Request
.
We urge you to review the API Index and Methods in more detail to achieve a good understanding of the required parameters and resulting responses. From there you will be able to map out the sequence of your API calls.
USING PUT METHODS
When you want to update data
you make a PUT Request
.
We urge you to review the API Index and Methods in more detail to achieve a good understanding of the required parameters and resulting responses. From there you will be able to map out the sequence of your API calls.
USING POST METHODS
When you want to insert data
you make a POST Request
.
We urge you to review the API Index and Methods in more detail to achieve a good understanding of the required parameters and resulting responses. From there you will be able to map out the sequence of your API calls.
USING DELETE METHODS
When you want to delete data
you make a DELETE Request
.
We urge you to review the API Index and Methods in more detail to achieve a good understanding of the required parameters and resulting responses. From there you will be able to map out the sequence of your API calls.
API CALL LIMITATIONS
You are allowed 1000 requests per hour per method per API key. Make sure your scripts do not exceed the call limits. API calls that exceed the hourly limit will not be responded to with valid data. If you would like to increase this limit please contact the support and we will consider the request.