The Bantam Live API is a RESTful, JSON interface for accessing data within a Bantam Live account. We've designed the interface to be simple and easy to interact with and we'll be exposing more application features over time. See the "Support and Feedback" section below to ask us any questions or provide any feedback regarding our API. Thanks.
To use the API, you'll need enable access by logging in to your Bantam Live account and visiting the 'API Access' section from the 'Settings' area.
Authentication is handled using HTTP authentication over an SSL connection using your Bantam Live account credentials and the unique URL for your account. You will need to pass these credentials with each request. See the "Usage" section below for some examples of how this works.
Initially we have exposed the ability to read, create, update and delete contact records via the API. (More to come soon. Also see "Activity Stream" section below: the activity stream data is available to read via an authenticated RSS feed.) Simply use the
api
namespace to access contact data. Here are some examples using curl to show you how it works:
GET /api/contacts
curl -H "Accept: application/json" -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts"
GET /api/contacts?view=people
curl -H "Accept: application/json" -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts?view=people"
GET /api/contacts?view=companies
curl -H "Accept: application/json" -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts?view=companies"
GET /api/contacts/<id>
curl -H "Accept: application/json" -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts/4"
POST /api/contacts
curl -H "Content-Type: application/json"-X POST -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts" -d '{"first_name": "Tom", "last_name":"Jones", "type":"Person", "tag_names":"singer,vegas"}'
application/json
content-type and accept headers must be included. The JSON data keys map to the fields within the interface. When in doubt, simply read from a record that has the key you are trying to add. You must pass the
type
value to indicate if the contact is a person (
Person
) or a company (
Organization
).
PUT /api/contacts/<id>
curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts/4" -d '{"last_name":"McJones"}'
application/json
content-type and accept headers must be included. The JSON data keys map to the fields within the interface. When in doubt, simply read from a record that has the key you are trying to update. You may only update contacts the authenticated user is allowed to update.
DELETE /api/contacts/<id>
curl -H "Accept: application/json" -X DELETE -s "https://me%40example.com:mypassword@myaccount.bantamlive.com/api/contacts/4"
application/json
accept header must be included. You may only delete contacts the authenticated user is allowed to delete.
The dashboard activity stream is available to each user through an authenticated RSS feed. To obtain the feed address, visit your account and click on the 'Subscribe' link at the bottom of the stream (usually at the bottom of the page). We will be exposing this activity through the JSON API soon.
If you have any questions about the Bantam Live API or would like to provide us with some feedback about things that aren't working for you or features you would like to see, please submit a support request in the "Help" section of the Bantam Live application when you are logged in. We look forward to building out our API based on your feedback.
When you first sign up for Bantam Live, we'll send you a welcome email with your Bantam Live URL. It'll look like this:
This is the address you should bookmark to sign in to your account. If you lost the welcome email, please email us for help at support@bantamlive.com