API Docs
Book and follow jobs from your own system.
The Couriffic API lets a client's or partner's system price a job, book it and follow it, with nobody typing it in. Webhooks tell your system the moment something happens.
Keys and Sign-In
The address is your courier's Couriffic address followed by /api/v1, for example https://app.couriffic.com/api/v1. Every request needs an API key, sent as a header:
Authorization: Bearer cf_…
- Keys are made by the courier's owner or manager in Settings ▸ Connections ▸ API Keys & Webhooks. A key is shown once; Couriffic keeps only a fingerprint of it.
- A key can be limited to one client. It then books jobs only for that client and sees only that client's jobs. A key given to a client should always be limited.
- A key can be turned off at any time; anything using it stops working at once.
- Send JSON with
Content-Type: application/json. Requests are limited to 1 MB.
Errors
Errors come back as JSON with an error message written for people:
| Status | When | Example |
|---|---|---|
400 | Something in the request is missing or wrong. | {"error":"pickup.address and delivery.address are required."} |
401 | No key, or a key that's wrong or turned off. | {"error":"Send your API key as: Authorization: Bearer cf_…"} |
404 | No such job (or not one this key may see), or an unknown address. | {"error":"No such job."} |
/api/v1/quotePrice a Job
Prices a job by the courier's own rules without booking it. Takes the same fields as booking a job.
curl https://app.couriffic.com/api/v1/quote \
-H "Authorization: Bearer cf_…" -H "Content-Type: application/json" \
-d '{"service": "BIKE", "pickup": {"name": "Front Desk", "address": "350 5th Ave"}, "delivery": {"name": "Legal Dept", "address": "250 Broadway", "contact": "Ana", "phone": "212-555-0142"}}'
Answer (200). priced is false when there's no price for that service and zone yet.
{
"price": 15,
"lines": [
{
"label": "Base (zone 1)",
"amount": 15
}
],
"zone": 1,
"priced": true
}/api/v1/jobsBook a Job
Books the job. It appears on the courier's dispatch board at once, marked as sent in through the API.
curl https://app.couriffic.com/api/v1/jobs \
-H "Authorization: Bearer cf_…" -H "Content-Type: application/json" \
-d '{"client": "1", "service": "BIKE", "reference": "PO 552", "pickup": {"name": "Front Desk", "address": "350 5th Ave"}, "delivery": {"name": "Legal Dept", "address": "250 Broadway", "contact": "Ana", "phone": "212-555-0142"}, "due": "15:00"}'
| Field | What it is |
|---|---|
client | Your client number. Ignored when the key is limited to one client: that client is always used. |
service | A service code from Settings ▸ Pricing ▸ Services (for example BIKE). Blank means the first service. |
pickup, delivery | {name, address, cross_street, contact, phone}. address is required for both. name is up to 20 characters. |
stops | Extra drop-offs before the delivery, each {name, address, cross_street, contact, phone}. |
day | YYYY-MM-DD. Blank means today; a past day is refused. |
ready, due | Times as HH:MM (24-hour). Anything else is ignored. |
reference | Your reference or PO number (up to 60 characters). |
caller | Who booked it (up to 60 characters). Blank means API. |
pieces, weight | How many pieces (blank means 1) and the weight. |
instructions | Instructions for the messenger (up to 500 characters). |
Answer (201): the job.
{
"no": 100000,
"day": "2026-10-16",
"status": "open",
"client": "1",
"reference": "PO 552",
"service": "BIKE",
"pickup": {
"name": "Front Desk",
"address": "350 5th Ave",
"cross_street": "",
"contact": "",
"phone": ""
},
"delivery": {
"name": "Legal Dept",
"address": "250 Broadway",
"cross_street": "",
"contact": "Ana",
"phone": "212-555-0142"
},
"stops": [],
"ready": "",
"due": "15:00",
"pieces": 1,
"picked_up_at": null,
"delivered_at": null,
"cancelled_at": null,
"signed_by": "",
"price": 15,
"tracking_url": "https://app.couriffic.com/pod/5e51f472974a1aff99010684"
}
| Field | What it is |
|---|---|
no | The job number. |
status | open (waiting for a messenger), assigned, picked, delivered or cancelled. |
day, ready, due | The job's day and times. |
picked_up_at, delivered_at, cancelled_at | When it happened (ISO 8601), or null. |
signed_by | The name of the person who took the delivery. |
stops | Extra stops: {name, address, delivered, signed_by}. |
price | The job's price as the courier's rules work it out (null when it can't be priced yet). |
tracking_url | A page anyone with the link can open to follow the job and see the proof of delivery. |
/api/v1/jobs/:noOne Job
The job with that number: its status, times, who signed and the tracking link. Same answer as booking a job.
curl https://app.couriffic.com/api/v1/jobs/100000 -H "Authorization: Bearer cf_…"/api/v1/jobsJobs Changed Since
Jobs changed since a time, oldest change first, up to 500 at a time. since is an ISO 8601 time; without it, the last 24 hours. To keep up, ask again with the time of your last call.
curl "https://app.couriffic.com/api/v1/jobs?since=2026-10-16T09:00:00-04:00" -H "Authorization: Bearer cf_…"
{"jobs": [ {…a job, as above…} ]}Webhooks
The courier pastes one web address in Settings ▸ Connections ▸ API Keys & Webhooks. From then on Couriffic sends every event below to it as a POST with a JSON body.
- The address must be a public
https://address. - Answer with any
2xxstatus within 10 seconds. Redirects aren't followed. - An event that doesn't get through is tried again, up to 5 times, a few seconds apart, then marked Failed. The courier sees each delivery under Recent Deliveries.
- Each request carries
X-Couriffic-Event(the event's name) andX-Couriffic-Signature.
A real job.created body:
{
"event": "job.created",
"job": {
"no": 100000,
"day": "2026-10-16",
"status": "open",
"client": "1",
"reference": "PO 552",
"service": "BIKE",
"pickup": {
"name": "Front Desk",
"address": "350 5th Ave",
"cross_street": "",
"contact": "",
"phone": ""
},
"delivery": {
"name": "Legal Dept",
"address": "250 Broadway",
"cross_street": "",
"contact": "Ana",
"phone": "212-555-0142"
},
"stops": [],
"ready": "",
"due": "15:00",
"pieces": 1,
"picked_up_at": null,
"delivered_at": null,
"cancelled_at": null,
"signed_by": "",
"price": 15,
"tracking_url": "https://app.couriffic.com/pod/5e51f472974a1aff99010684"
},
"sent_at": "2026-10-16T13:49:17.474Z"
}Events
| Event | When | Body |
|---|---|---|
job.created | A job is booked (in the office, the portal, the API, a standing order or a store order). | {"event":"job.created","job":{…the job, as above…},"sent_at":"…"} |
job.status | A job's status changes: assigned, picked up, delivered or cancelled. | {"event":"job.status","job":{…},"sent_at":"…"} |
job.portal | A client books a job in the client portal (sent as well as job.created). | {"event":"job.portal","job":{…},"sent_at":"…"} |
job.delivered | A job is delivered (sent as well as job.status). | {"event":"job.delivered","job":{…},"sent_at":"…"} |
job.late | A job is past its due time and not delivered yet (once per job). Its tracking_url is null. | {"event":"job.late","job":{…},"sent_at":"…"} |
invoice.created | An invoice is made. | {"event":"invoice.created","invoice":{"no":5001,"client":"1","client_name":"Smith & Co.","date":"2026-10-16","due":"2026-11-15","total":120,"balance":120,"jobs":[100000,100001]},"sent_at":"…"} |
payment.received | A payment is recorded on an invoice (by hand, or paid by card online). | {"event":"payment.received","payment":{"invoice":5001,"client":"1","client_name":"Smith & Co.","date":"2026-10-20","amount":120,"ref":"Check 1042","balance":0},"sent_at":"…"} |
invoice.paid | An invoice is paid in full. | {"event":"invoice.paid","invoice":{"no":5001,"client":"1","client_name":"Smith & Co.","total":120},"sent_at":"…"} |
client.created | A new client is added. | {"event":"client.created","client":{"no":"1","name":"Smith & Co.","contact":"","phone":"","email":"","address":"350 5th Ave"},"sent_at":"…"} |
Each job event carries the whole job, in the same shape as the API's answers.
A new online order, a job running late and a payment received also reach the phones of office staff who turned on alerts in the owner app. Those alerts aren't webhooks and need nothing set up here.
Checking the Signature
When the address is first saved, Couriffic shows a webhook secret once (the courier can make a new one later). Every request is signed with it:
X-Couriffic-Signature: sha256=<HMAC-SHA256 of the raw body, with the webhook secret, in hex>
Work it out from the body exactly as it arrived, before parsing it, and compare. In Node.js:
const crypto = require("crypto");
function fromCouriffic(rawBody, header, secret){
const want = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
return typeof header === "string" && header.length === want.length &&
crypto.timingSafeEqual(Buffer.from(header), Buffer.from(want));
}
In Python:
import hmac, hashlib
def from_couriffic(raw_body: bytes, header: str, secret: str) -> bool:
want = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(want, header or "")Zapier and Make
No programming needed:
- In Zapier, make a Zap that starts with Webhooks by Zapier ▸ Catch Hook (in Make: Webhooks ▸ Custom webhook) and copy the address it gives you.
- Paste it in Settings ▸ Connections ▸ API Keys & Webhooks and save.
- Book a test job so Zapier sees an example, then add the next step: a Google Sheets row, an email, a text, your CRM.
- To send jobs into Couriffic (say, from a web form), use an API key with Webhooks by Zapier ▸ POST to
/api/v1/jobs, with theAuthorizationheader above.