Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

Get a Callback

The following will retrieve a callback by its callback_id.

GET /companies/:company_id/config/callbacks/:callback_id

Note: A 404 - Not Found error will be returned if the callback cannot be located.

Return JSON

A callback entity.

List Callback

The following will list active and future callbacks.

GET /companies/:company_id/config/callbacks

Return JSON

An array of callback elements will be returned as follows.


Create a Callback

The following will create a new callback record.

POST /companies/:company_id/config/callbacks/

The callback_id, created_at, updated_at, and URL fields are not allowed. Any values will be ignored.

The destination_method, content_type, start_date, and end_date fields are optional.

Two callback registrations may not share an event type if they have overlapping active date ranges.

An HTTP 201 - Created response will be returned if the object has been successfully created.

Return JSON

A Callback entity.

Delete a Callback

DELETE /companies/:company_id/config/callbacks/:callback_id

An HTTP 200 - OK will be returned if the operation completes successfully.

An HTTP 404 - Not Found error will be returned if the entity does not exist.

This will set the end date of the callback to now and change it to inactive. If the start date of the callback was in the future, it will change that to now as well.

Return JSON

A Callback entity reflecting the new date ranges and active state.

Create a Test Callback Event

POST /companies/:company_id/config/callback_events/test
  "event_type": "person_added"

An HTTP 201 - Created will be returned if the callback was queued for send.

   "message":"Created event for event_type 'person_added'",

An HTTP 404 - Not Found error will be returned if an active callback does not exist.

         "message":"Could not find a callback registration for event type 'person_added'"

Returned Callback

Your callback endpoint will receive an event like the one shown below. It will contain the event_id returned in the response to the test request, and the details of the callback endpoint we are calling.


Data Elements



Person Entity

  • No labels