Event
Get Event Types
Get a collection of all events currently offered.
Returns a list of event types and descriptions, enabling users to create subscriptions for events of interest.
Headers
The major version of the API to make a request against. This is a custom MIME type that contains vnd.coxauto.v[#]+. For example, to request a resource from version 1.x.x of an API, the Accept header should be set to application/vnd.coxauto.v1+json.
Example:application/vnd.coxauto.v1+json
Response
application/json
Response
OK. Successful request.
EventTypeCollection
Details of the event types.
The URL used to query the current collection of the resource.
Example:https://event-api.centraldispatch.com/event-types
The total count of resources in the collection.
Example:1
Details of an event type.
Show Child Parameters
Authentication
Headers
Search Events
Search for published events.
Query Parameters
Search for events with created date greater than value, in UTC/ISO 8601 format.
Example:gt(createdOn,2024-01-19)
Search for events with created date less than value, in UTC/ISO 8601 format.
Example:lt(createdOn,2024-02-13)
Search for events with subscription ID equal to value (GUID).
Example:eq(subscriptionId,50b2863f-c75e-45cb-8d50-b5a975d67865)
Search for events with event ID equal to value (GUID).
Example:eq(eventId,eec2b82e-29b1-47c3-a391-6da6cce37d7d)
Search for events with publish status equal to value. Allowed values: SUCCESS, FAILED.
Example:eq(publishStatus,SUCCESS)
Search for events with event type equal to value. Use the Get Event Types endpoint to retrieve valid values.
Example:eq(eventType,DispatchCreated)
The maximum number of items to be returned in the response.
startingPointis 1-based integer, default 1.numberOfResultsis an integer, default 500, maximum 500.
Example:limit(1,10)
Headers
The major version of the API to make a request against. This is a custom MIME type that contains vnd.coxauto.v[#]+. For example, to request a resource from version 1.x.x of an API, the Accept header should be set to application/vnd.coxauto.v1+json.
Example:application/vnd.coxauto.v1+json
Response
application/json
Response
OK. Successful request.
SearchIntegratorEventCollection
Details of search event.
The URL used to query the current collection of the resource.
Example:https://event-api.centraldispatch.com/integrator-events?limit(5,1)
The URL to the previous page of the collection, if available.
Example:https://event-api.centraldispatch.com/integrator-events?limit(4,1)
The URL to the first page of the collection.
Example:https://event-api.centraldispatch.com/integrator-events?limit(1,1)
The URL to the next page of the collection, if available.
Example:https://event-api.centraldispatch.com/integrator-events?limit(6,1)
The total count of resources in the collection.
Example:23
The maximum number of items to be returned in the response.
Example:1
Details of an event.
Show Child Parameters
Authentication
Query Parameters
Headers
Subscription
Create Subscriptions
Create new event subscriptions.
π Important Notes
- Creates a webhook subscription for specified event types.
- The response will be empty but includes three important headers.
- The
Api-Keyheader value should be stored by the caller and used to authenticate all incoming events from Central Dispatch. The value will be contained in theApi-Tokenheader in all events delivered as part of this subscription. - The response will contain a
Locationheader that contains the fully qualified URL of the newly created resource. The final segment of the URL will be the ID of the resource. - The response will include an
ETagheader, which should be used for theIf-Matchheader in subsequent updates.
Headers
The major version of the API to make a request against. This is a custom MIME type that contains vnd.coxauto.v[#]+. For example, to request a resource from version 1.x.x of an API, the Content-Type header should be set to application/vnd.coxauto.v1+json.
Example:application/vnd.coxauto.v1+json
Body
application/json
Body
SubscriptionRequest
SubscriptionRequest
Details of a subscription.
A valid URL that you own, which will be used to receive event notifications from the Central Dispatch Event service.
Example:https://abc-trcking.net/webhook
Details of subscription rules.
Show Child Parameters
Response
Response
Created. Successful request.