The REST Hooks screen demonstrates how to register callbacks triggered on specific Actionstep events that you can programmatically respond to. The screen shows how to list, create, and update REST hooks.
Registering a REST hook allows you to take advantage of when certain types of events occur in Actionstep. Actionstep will call any registered REST hooks and expects to receive an http status code of 200 in response.
NB: If Actionstep receives any other response code it will automatically disable the REST hook.
Event | Description |
---|---|
ActionCreated | Raised when a new action (matter) is created. |
ActionUpdated | Raised when an existing action (matter) is updated. |
DataCollectionRecordUpdated | Raised when an individual custom data collection record is updated. |
ParticipantCreated | Raised when a new participant is created. |
FileNoteCreated | Raised when a new file note is created. |
TaskCreated | Raised when a new task is created. |
ActionParticipantCreated | Raised when a new action (matter) participant is created. |
ActionParticipantDeleted | Raised when an existing action (matter) participant is removed. |
StepChanged | Raised when a step is changed in a workflow. |
ActionDocumentCreated | Raised when a new action (matter) document is created. |
ActionDocumentUpdated | Raised when an existing action (matter) document is updated. |
ActionDocumentDeleted | Raised when an existing action (matter) document is deleted. |
To create (register) a new REST hook click on the Add+ button. Select the event for which you wish to receive notification and provide the target url for Actionstep to call. In the example shown Ngrok is being used as a proxy to route callbacks into the localhost development environment for testing purposes.
If during testing any of your callback methods fail and do not respond with an http 200 status code the rest hook will be disabled by Actionstep. Under this scenario you will need to register a new REST hook for the target event.
You can delete REST hooks either singularly or use the checkboxes displayed in the first column to enable the Delete Selected button.