ColivoGet started
API & developers

The Colivo API

A simple REST API to create shipments, print labels and follow every status from your own system.

Basics

  • Base URL: https://colivo.ca/v1
  • Authentication: Authorization: Bearer clv_test_… / clv_live_…
  • Test keys create shipments that are never picked up or billed.
  • JSON requests and responses; errors as { error: { code, message } }.
  • Keys are stored hashed: copy them when created.

Endpoints

MethodPathPurpose
POST/v1/ratesGet a price
POST/v1/shipmentsCreate a shipment (Idempotency-Key header required)
GET/v1/shipmentsList your shipments
GET/v1/shipments/{id}Retrieve a shipment
GET/v1/shipments/{id}/label4 × 6 label (ZPL or JSON)
POST/v1/shipments/{id}/cancelCancel before pickup
GET/v1/tracking/{number}Track a parcel
POST/v1/pickupsRequest a pickup
GET · POST/v1/webhooksList or create webhooks
DELETE/v1/webhooks/{id}Delete a webhook

Example

curl https://colivo.ca/v1/shipments \
  -H "Authorization: Bearer clv_test_…" \
  -H "Idempotency-Key: commande-1042" \
  -H "Content-Type: application/json" \
  -d '{"service":"next_day","to":{"name":"Julie Roy","address":"455 rue Notre-Dame Centre","city":"Trois-Rivières","postal":"G9A 4X4"},"parcel":{"weight_kg":2}}'

Webhooks

Each event is sent as a POST with a Colivo-Signature header: t=<timestamp>,v1=<HMAC-SHA256(secret, "t.body")>. Failed deliveries are retried.

  • shipment.created
  • shipment.label_printed
  • shipment.picked_up
  • shipment.at_hub
  • shipment.out_for_delivery
  • shipment.delivered
  • shipment.delivery_failed
  • shipment.returned
  • shipment.cancelled