CarrierCloud (v1) - Universal Transportation API

Register and remove event webhooks on individual objects or on whole object types.


Webhooks - Register Object

POST
https://carriercloud.ai
/v1/webhooks/{partnercode}/register/

Register a webhook for a specific Carrier Cloud object.

Webhooks - Register Object › path Parameters

partnercode
​string · required

Partner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.

Webhooks - Register Object › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Webhooks - Register Object › Request Body

type
​string · enum · required

Event to subscribe to: update, archive, gps, hos, arrive, depart, truckperformance. gps applies to driver, truck, trailer, order and segment objects; hos to drivers; arrive/depart to orders and segments; truckperformance to trucks.

Enum values:
update
archive
gps
hos
arrive
depart
truckperformance
cardid
​string · required
url
​string · required

Webhooks - Register Object › Responses

Webhook registered on the object.

_id
​string · required

Identifier of the registration. Keep it; removal is by card id and type.


Webhooks - Register Type

POST
https://carriercloud.ai
/v1/webhooks/{partnercode}/type/register/

Register a webhook for all Carrier Cloud objects of a given type.

Webhooks - Register Type › path Parameters

partnercode
​string · required

Partner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.

Webhooks - Register Type › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Webhooks - Register Type › Request Body

type
​string · enum · required

Event to subscribe to: update, archive, gps, hos, arrive, depart, truckperformance. gps applies to driver, truck, trailer, order and segment objects; hos to drivers; arrive/depart to orders and segments; truckperformance to trucks.

Enum values:
update
archive
gps
hos
arrive
depart
truckperformance
cardtype
​string · enum · required
Enum values:
order
segment
driver
truck
trailer
carrier
event
invoice
url
​string · required

Webhooks - Register Type › Responses

Webhook registered for the object type on every board the partnership shares. Registering the same subscription twice is ignored.

No data returned

Webhooks - Remove Object

DELETE
https://carriercloud.ai
/v1/webhooks/{partnercode}/{cardid}/{type}

Remove a previously registered object webhook. Remove a registered webhooks for the specific object specified.

Webhooks - Remove Object › path Parameters

partnercode
​string · required

Partner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.

cardid
​string · required

Identifier of the object the webhook is registered on, for example a load id or a tractor id.

type
​string · required

Webhook event type: update, archive, gps or hos (the removable types).

Webhooks - Remove Object › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Webhooks - Remove Object › Responses

Webhook removed.

No data returned

Webhooks - Remove Type

DELETE
https://carriercloud.ai
/v1/webhooks/{partnercode}/type/{cardtype}/{type}

Remove a previously registered type webhook. All registered webhooks for objects of the specified type will be removed.

Webhooks - Remove Type › path Parameters

partnercode
​string · required

Partner code of the company whose data this request reads or writes (its VIA company code, for example MIST). Your API key identifies your own company; the request succeeds only when the two companies have an approved, API-enabled partnership in the Partner Network. Use Get Active Partners to list the codes available to you.

cardtype
​string · required

Object type the type-level webhook applies to, for example order, segment, driver, truck or trailer.

type
​string · required

Webhook event type: update, archive, gps or hos (the removable types).

Webhooks - Remove Type › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Webhooks - Remove Type › Responses

Type-level webhook removed from every shared board.

No data returned