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.
Authentication
Headers
Body
Get Subscription
Get a subscription by ID.
π Important Notes
- Returns the subscription details including webhook URL and subscription rules.
- The response will include an
ETagheader, which should be used for theIf-Matchheader in subsequent updates.
Path Parameters
The ID of the subscription.
Example:50b2863f-c75e-45cb-8d50-b5a975d67865
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.
SubscriptionResponse
Details of a subscription.
The fully qualified URL of the subscription.
Example:https://event-api.centraldispatch.com/subscriptions/id/50b2863f-c75e-45cb-8d50-b5a975d67865
The ID of the subscription.
Example:50b2863f-c75e-45cb-8d50-b5a975d67865
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
Indicates whether the subscription is currently active.
Example:true
Details of subscription rules.
Show Child Parameters
Authentication
Path Parameters
Headers
Update Subscription
Update a subscription.
π Important Notes
- Requires the full subscription payload for updates.
- Must include all existing event types plus any new ones.
- The
If-Matchheader is required and its value can be found in theETagresponse header of the resourceβs GET by ID endpoint.
Path Parameters
The ID of the subscription.
Example:50b2863f-c75e-45cb-8d50-b5a975d67865
Headers
This is a required field to ensure the update is being completed on an item that has not changed since it was last read. The value of this field will be the value of the ETag header that was received on the preceding get call.
Example:8675309
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
UpdateSubscriptionRequest
UpdateSubscriptionRequest
Details of update subscription request.
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
Indicates whether the subscription is currently active.
Default:false
Example:true
Response
Response
No Content. Successful request.
Authentication
Path Parameters
Headers
Body
Renew Subscription
Renew your subscription API key.
π Important Notes
- Use this endpoint if your API key was lost or compromised.
- The new
Api-Keywill be returned in the response headers. - The old API key will be immediately invalidated.
- All future events will use the new API key for authentication.
- The
If-Matchheader is required and its value can be found in theETagresponse header of the resourceβs GET by ID endpoint.
Path Parameters
The ID of the subscription.
Example:50b2863f-c75e-45cb-8d50-b5a975d67865
Headers
This is a required field to ensure the update is being completed on an item that has not changed since it was last read. The value of this field will be the value of the ETag header that was received on the preceding get call.
Example:8675309
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
Response
Response
No Content. Successful request.
Authentication
Path Parameters
Headers
Reactivate Subscription
Re-enables a subscription that has been deactivated. Sets the subscription status to active so that event notifications resume delivery to the registered callback URL. The existing API token is preserved β the partner does not need to update their cached token after reactivation.
π Important Notes
- The
If-Matchheader is required and its value can be found in theETagresponse header of the resourceβs GET by ID endpoint.
Path Parameters
The ID of the subscription.
Example:50b2863f-c75e-45cb-8d50-b5a975d67865
Headers
This is a required field to ensure the update is being completed on an item that has not changed since it was last read. The value of this field will be the value of the ETag header that was received on the preceding get call.
Example:8675309
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
Response
Response
No Content. Successful request.