Creating a new person in Highrise API

Highrise API is run off of REST and is pretty powerful. Here would be an example of how to create a new person to account with the API.

First you need your script to turn the form values into a valid XML format. Then keep that xml in a variable or file.

From there you can run the cURL command like this:

curl -u 605b32dd:X -H ‘Content-Type: application/xml’ \
-d @newperson.xml http://sample.highrisehq.com/people.xml

The first line here should be easy to understand. The first half is authenticating and the second half is setting the header to XML. But the next line is a bit trickier. The first part is the file that your form values in XML form are located. You can use a variable here too I assume. The url at the end is very important in that it is telling there side of the API to create this new resource with the XML given. There is a different url for almost every different aspect of this API manipulation so to find the right one to use for your circumstance you would be best to look it up in the official documentation.

Once the request has been run you do get a response code back which you can also use logically if needed.

4 Comments so far »

  1. Nathan Biles said

    am June 14 2010 @ 11:25 pm

    I have found that Highrise API is really slow and giving me issues. Any comments? Have you noticed this? When I first wrote a plugin to do this it seemed pretty quick but days later I had extremely slow issues.

  2. admin said

    am June 20 2010 @ 7:54 pm

    Nathan – we haven’t had any problems with speed or reliability. Our work in the API is not data-intensive, mostly create stuff, so we haven’t done much with Read, Update or Delete. Where specifically are you having problems?

  3. Nathan biles said

    am June 23 2010 @ 12:07 am

    Well, I have been having issues with using the API with PHP and curl. Do you mind giving me an email and maybe I can share code and you can help me out…. Thanks!!

  4. Rojar said

    am December 21 2010 @ 4:02 am

    how a new contact is added only using the api key?

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: