Download OpenAPI specification:
This documentation describes Delivre's platform API schemas and type usage.
The Delivre API provides developers with a simple and reliable way to integrate delivery, routing, and logistics capabilities into their applications.
With this API, you can programmatically:
Whether you're building an e-commerce platform, internal operations tool, or logistics service, the Delivre API enables you to automate and scale delivery operations efficiently.
To begin using the Delivre API:
You'll find examples and guides throughout this documentation to help you get up and running quickly.
Creates and schedules a new delivery request.
| deliveryDate required | string <date-time> |
required | object |
required | object |
required | object |
required | object |
| serviceType required | integer (ServiceType) Enum: 1 2 3 Delivery service type |
{- "deliveryDate": "2025-12-13T14:30:00Z",
- "coordinates": {
- "originLatitude": -1.286389,
- "originLongitude": 36.817223,
- "destinationLatitude": -1.292066,
- "destinationLongitude": 36.821945
}, - "dropOffDetails": {
- "name": "Dev One",
- "phoneNumber": "+93993939",
- "email": "dev@gmail.com",
- "address": "456 Elm St",
- "at": "2025-12-16T14:30:00Z"
}, - "pickupDetails": {
- "name": "Dev Two",
- "phoneNumber": "+03999494",
- "email": "mail.s.com",
- "address": "456 Elm St",
- "at": "2025-12-16T09:30:00Z"
}, - "itemDetails": {
- "itemType": 1,
- "itemSize": 1,
- "numberOfItems": 4
}, - "serviceType": 1
}{- "deliveryId": "dly_cmo6ybbup000001nvy2nc3ivv",
- "message": "delivery scheduled successfully"
}Retrieve details of a scheduled delivery by its unique delivery ID.
| deliveryId required | string Example: dly_cmo6ybbup000001nvy2nc3ivv Unique identifier of the delivery |
{- "deliveryId": "dly_cmo6ybbup000001nvy2nc3ivv",
- "pickupDate": "2025-12-16T09:30:00Z",
- "recipientId": "cst_cmml3p43h000101jw75qhxbxi",
- "senderId": "cst_cmml3p43h000101jw75qhxbxi",
- "trackingNumber": "DLV20042026Y2NC3IVV",
- "polylineRoute": "zfzFwzu_FuAj@wCjAkDpAmBr@...",
- "pickupDetails": {
- "at": "2025-12-16T09:30:00Z",
- "name": "Dev One",
- "email": "devone@gmail.com",
- "address": "456 Elm St",
- "phoneNumber": "+2547002993911",
- "time": "",
- "date": ""
}, - "dropOffDetails": {
- "at": "2025-12-16T09:30:00Z",
- "name": "Dev One",
- "email": "devone@gmail.com",
- "address": "456 Elm St",
- "phoneNumber": "+2547002993911",
- "time": "",
- "date": ""
}, - "coordinates": {
- "originLatitude": -1.286389,
- "originLongitude": 36.817223,
- "destinationLatitude": -1.292066,
- "destinationLongitude": 36.821945
}, - "itemDetails": {
- "itemType": "Documents",
- "itemSize": "Small (below 1kg)",
- "numberOfItems": 4
}, - "serviceType": "Standard",
- "status": "Order Placed"
}Retrieve a paginated list of deliveries with optional status filtering.
Delivery status codes:
1 - ORDER_PLACED
2 - CANCELED
3 - COURIER_ASSIGNED
4 - PICKED_UP
5 - IN_TRANSIT
6 - OUT_FOR_DELIVERY
7 - DELIVERED
8 - FAILED
9 - RETURNED
10 - CLOSED
| page | integer >= 1 Example: page=1 Page number |
| per_page | integer [ 1 .. 100 ] Example: per_page=20 Number of records per page |
| status | string Example: status=1,2,3,4 Comma-separated list of delivery status codes |
{- "deliveries": [
- {
- "deliveryId": "dly_cmo6ybbup000001nvy2nc3ivv",
- "pickupDate": "2025-12-16T09:30:00Z",
- "recipientId": "cst_cmml3p43h000101jw75qhxbxi",
- "senderId": "cst_cmml3p43h000101jw75qhxbxi",
- "trackingNumber": "DLV20042026Y2NC3IVV",
- "polylineRoute": "zfzFwzu_FuAj@wCjAkDpAmBr@...",
- "pickupDetails": {
- "at": "2025-12-16T09:30:00Z",
- "name": "Dev One",
- "email": "devone@gmail.com",
- "address": "456 Elm St",
- "phoneNumber": "+2547002993911",
- "time": "",
- "date": ""
}, - "dropOffDetails": {
- "at": "2025-12-16T09:30:00Z",
- "name": "Dev One",
- "email": "devone@gmail.com",
- "address": "456 Elm St",
- "phoneNumber": "+2547002993911",
- "time": "",
- "date": ""
}, - "coordinates": {
- "originLatitude": -1.286389,
- "originLongitude": 36.817223,
- "destinationLatitude": -1.292066,
- "destinationLongitude": 36.821945
}, - "itemDetails": {
- "itemType": "Documents",
- "itemSize": "Small (below 1kg)",
- "numberOfItems": 4
}, - "serviceType": "Standard",
- "status": "Order Placed"
}
]
}Automatically assigns the nearest available courier to the specified delivery.
| deliveryId required | string Example: dly_cmo6ybbup000001nvy2nc3ivv Unique identifier of the delivery |
{- "message": "Driver auto-assigned successfully"
}Manually assign a driver to a specific delivery.
| deliveryId required | string Example: dly_cmo6ybbup000001nvy2nc3ivv Unique identifier of the delivery |
| driverId required | string Unique identifier of the driver |
| deliveryId required | string Unique identifier of the delivery |
{- "driverId": "usr_cmo6ybbup0000045yu2nc3ivv",
- "deliveryId": "dly_cmo6ybbup000001nvy2nc3ivv"
}{- "message": "Driver assigned successfully"
}Removes an assigned driver from a delivery.
| deliveryId required | string Example: dly_cmo6ybbup000001nvy2nc3ivv Unique identifier of the delivery |
{- "message": "Driver unassigned successfully"
}Reassigns a different driver to an existing delivery, replacing the currently assigned driver if any.
| deliveryId required | string Example: dly_cmo6ybbup000001nvy2nc3ivv Unique identifier of the delivery |
| driverId required | string Unique identifier of the new driver |
| deliveryId required | string Unique identifier of the delivery |
{- "driverId": "usr_cmo6ybbup0000045yu2nc3ivv",
- "deliveryId": "dly_cmo6ybbup000001nvy2nc3ivv"
}{- "message": "Driver assigned successfully"
}Calculates the estimated delivery price based on route, item details, and service type.
required | object |
| from required | string |
| to required | string |
required | object |
| serviceType required | integer |
{- "coordinates": {
- "originLatitude": -1.286389,
- "originLongitude": 36.817223,
- "destinationLatitude": -1.292066,
- "destinationLongitude": 36.821945
}, - "from": "nairobi",
- "to": "nairobi",
- "itemDetails": {
- "itemType": 1,
- "itemSize": 1,
- "numberOfItems": 4
}, - "serviceType": 1
}{- "base": 0,
- "distance": 100,
- "weight": 1.5,
- "demand_impact": -162.4,
- "weather_impact": 0,
- "fragile_addon": 0,
- "fuel_impact": -2591.2950000000005,
- "urgent_impact": 0,
- "subtotal": -2652.1950000000006,
- "final_price": 70
}Retrieve real-time tracking information for a delivery using its tracking number.
| trackingNumber required | string Example: DLV090320260HR7L0ZR Unique tracking number of the delivery |
{- "trackingNumber": "DLV19012026291",
- "status": "Courier Assigned",
- "estimatedDelivery": "0001-01-01T00:00:00Z"
}Retrieves the full lifecycle timeline of a delivery using its tracking number.
| trackingNumber required | string Example: DLV090320260HR7L0ZR Unique tracking number of the delivery |
{- "deliveryId": 281,
- "placedAt": "2026-01-11 11:41:44.12585 +0000 UTC",
- "courierAssignedAt": "2026-01-11 13:03:23.045404 +0000 UTC",
- "pickedUpAt": "2026-01-11 13:03:56.512234 +0000 UTC",
- "inTransitAt": "0001-01-01 00:00:00 +0000 UTC",
- "outForDeliveryAt": "2026-01-11 15:39:43.527592 +0000 UTC",
- "failedAt": "0001-01-01 00:00:00 +0000 UTC",
- "returnedAt": "0001-01-01 00:00:00 +0000 UTC",
- "deliveredAt": "2026-01-11 15:40:13.499766 +0000 UTC"
}Retrieves delivery timelines filtered by a start and end date range.
| start required | string <date-time> Example: start=2026-03-08T00:30:00Z Start of the date range (ISO 8601) |
| end required | string <date-time> Example: end=2026-03-10T14:30:00Z End of the date range (ISO 8601) |
{- "deliveryTimelines": [
- {
- "deliveryId": 245,
- "placedAt": "2025-12-16 18:59:16.6795 +0000 UTC",
- "courierAssignedAt": "2025-12-16 21:30:36.010242 +0000 UTC",
- "pickedUpAt": "2025-12-16 21:32:16.773826 +0000 UTC",
- "inTransitAt": "0001-01-01 00:00:00 +0000 UTC",
- "outForDeliveryAt": "2025-12-17 06:42:09.062858 +0000 UTC",
- "failedAt": "0001-01-01 00:00:00 +0000 UTC",
- "returnedAt": "0001-01-01 00:00:00 +0000 UTC",
- "deliveredAt": "2025-12-17 06:42:10.639688 +0000 UTC"
}, - {
- "deliveryId": 241,
- "placedAt": "0001-01-01 00:00:00 +0000 UTC",
- "courierAssignedAt": "2025-12-16 21:30:21.577648 +0000 UTC",
- "pickedUpAt": "2025-12-16 21:32:12.764903 +0000 UTC",
- "inTransitAt": "0001-01-01 00:00:00 +0000 UTC",
- "outForDeliveryAt": "2025-12-17 07:39:16.706753 +0000 UTC",
- "failedAt": "0001-01-01 00:00:00 +0000 UTC",
- "returnedAt": "0001-01-01 00:00:00 +0000 UTC",
- "deliveredAt": "2025-12-17 09:30:31.820595 +0000 UTC"
}
]
}Retrieves delivery timelines filtered by a start and end date range.
| start required | string <date-time> Example: start=2026-03-08T00:30:00Z Start of the date range (ISO 8601) |
| end required | string <date-time> Example: end=2026-03-10T14:30:00Z End of the date range (ISO 8601) |
{- "deliveryTimelines": [
- {
- "deliveryId": 245,
- "placedAt": "2025-12-16 18:59:16.6795 +0000 UTC",
- "courierAssignedAt": "2025-12-16 21:30:36.010242 +0000 UTC",
- "pickedUpAt": "2025-12-16 21:32:16.773826 +0000 UTC",
- "inTransitAt": "0001-01-01 00:00:00 +0000 UTC",
- "outForDeliveryAt": "2025-12-17 06:42:09.062858 +0000 UTC",
- "failedAt": "0001-01-01 00:00:00 +0000 UTC",
- "returnedAt": "0001-01-01 00:00:00 +0000 UTC",
- "deliveredAt": "2025-12-17 06:42:10.639688 +0000 UTC"
}, - {
- "deliveryId": 241,
- "placedAt": "0001-01-01 00:00:00 +0000 UTC",
- "courierAssignedAt": "2025-12-16 21:30:21.577648 +0000 UTC",
- "pickedUpAt": "2025-12-16 21:32:12.764903 +0000 UTC",
- "inTransitAt": "0001-01-01 00:00:00 +0000 UTC",
- "outForDeliveryAt": "2025-12-17 07:39:16.706753 +0000 UTC",
- "failedAt": "0001-01-01 00:00:00 +0000 UTC",
- "returnedAt": "0001-01-01 00:00:00 +0000 UTC",
- "deliveredAt": "2025-12-17 09:30:31.820595 +0000 UTC"
}
]
}Creates a new API application with scoped permissions. The secret is returned only once.
| name required | string |
| scopes required | Array of strings |
{- "name": "e-commerce access",
- "scopes": [
- "delivery.create",
- "delivery.read"
]
}{- "appId": "app_cmo4ii25u0000r4eeo6r239r4",
- "secret": "04d7f49f5e1942a484a78a3df54d94b7",
- "name": "app two",
- "scopes": [
- "delivery.create",
- "delivery.read"
]
}Retrieves details of a specific application by its ID.
| appId required | string Example: app_cmo4ii25u0000r4eeo6r239r4 Unique identifier of the application |
{- "appId": "app_cmo4ii25u0000r4eeo6r239r4",
- "name": "app two",
- "scopes": [
- "delivery.create",
- "delivery.read"
]
}Retrieves a list of all API applications for the authenticated account.
{- "apps": [
- {
- "appId": "app_cmo4ibrnv0000gyeelvtjypi1",
- "name": "app one",
- "scopes": [
- "delivery.create"
]
}, - {
- "appId": "app_cmo4ii25u0000r4eeo6r239r4",
- "name": "app two",
- "scopes": [
- "delivery.create",
- "delivery.read"
]
}, - {
- "appId": "app_cmo65wnnu000001p9xzuddesh",
- "name": "Test App",
- "scopes": [
- "delivery.create",
- "delivery.read",
- "delivery.cancel"
]
}
]
}