You may use the API to perform various actions with help desk. Check the Kayako Documentation at http://wiki.kayako.com/display/DEV/Kayako REST API