A request will be made to your app when a user does something in the system. The following triggers are available.
Each trigger is a POST request with a JSON body, and your app endpoint must use HTTPS. Your app has 30 seconds to respond. If five requests in a row time out, Upsales pauses requests to your app for that customer for 10 minutes. A change made through your own app's API key does not trigger a request to your app.
The endpoint that will be called includes the entity id of the object. For example, for a company created with id 105, the path will be /clientinsert/105.
Company triggers
Company was created
https://yourapp.com/clientinsert/:entityId
Company was updated
https://yourapp.com/clientupdate/:entityId
Company was deleted
https://yourapp.com/clientdelete/:entityId
Contact triggers
Contact was created
https://yourapp.com/contactinsert/:entityId
Contact was updated
https://yourapp.com/contactupdate/:entityId
Contact was deleted
https://yourapp.com/contactdelete/:entityId
Order or Opportunity triggers
Order or Opportunity was created
https://yourapp.com/orderinsert/:entityId
Order or Opportunity was updated
https://yourapp.com/orderupdate/:entityId
Order or Opportunity was edited
https://yourapp.com/orderedit
Order or Opportunity was deleted
https://yourapp.com/orderdelete/:entityId
Subscription triggers
Recurring order was created
https://yourapp.com/agreementinsert/:entityId
Recurring order was updated
https://yourapp.com/agreementupdate/:entityId
Recurring order was deleted
https://yourapp.com/agreementdelete/:entityId
Activity triggers
Activity was created
https://yourapp.com/activityinsert/:entityId
Activity was updated
https://yourapp.com/activityupdate/:entityId
Activity was deleted
https://yourapp.com/activitydelete/:entityId
Appointment triggers
Appointment was created
https://yourapp.com/appointmentinsert/:entityId
Appointment was updated
https://yourapp.com/appointmentupdate/:entityId
Appointment was deleted
https://yourapp.com/appointmentdelete/:entityId
Campaign triggers
Campaign was created
https://yourapp.com/projectinsert/:entityId
Campaign was updated
https://yourapp.com/projectupdate/:entityId
Campaign was deleted
https://yourapp.com/projectdelete/:entityId
Lead triggers
Lead was created
https://yourapp.com/leadinsert/:entityId
Lead was updated
https://yourapp.com/leadupdate/:entityId
Lead was deleted
https://yourapp.com/leaddelete/:entityId
User triggers
User was created
https://yourapp.com/userinsert/:entityId
User was updated
https://yourapp.com/userupdate/:entityId
Role triggers
Role was created
https://yourapp.com/roleinsert/:entityId
Role was updated
https://yourapp.com/roleupdate/:entityId
Role was deleted
https://yourapp.com/roledelete/:entityId