Docs
API referenceDeliveries

Record a delivery

Preview· P9
POST
/deliveries

Records a parcel, envelope or food received at a site, for a person, a team or the front desk, for example from your own mailroom system. With notify_recipient (the default), Agoo tells the recipient (or each member of the team) by their notification preferences, with a one-time collection code, and reminds them until it's collected, as the organisation's settings say. Upload photos first (POST /files, kind delivery_label or delivery_photo). Fires delivery.received.

Scope: deliveries:write · Plan: Pro and Enterprise in live mode; every plan in test mode.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people.
agoo_pk_test_Publishable key, test modeAs above, in test mode

Admins create keys in Console → Developers → API keys and choose each key's scopes. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.

Scope: deliveries:write

Header Parameters

Idempotency-Key*string

A UUID you generate for this operation. If you retry with the same key within 24 hours, Agoo returns the original response instead of acting twice. While the first request is still running, a retry returns conflict. Reusing a key with a different request returns idempotency_key_reused. Responses with rate_limited, internal_error or unavailable aren't stored, so retry those with the same key.

Formatuuid

Request Body

application/json
  1. body
site_id*SiteId

A site ID (TypeID with the site prefix).

Match^site_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"site_01kjpt3yw0fz0v414608h9x65s"
recipient_type?DeliveryRecipientType

Defaults to person with recipient_id, team with team_id, else the organisation's default recipient.

Value in"person""team""front_desk"
recipient_id?PersonId

A person ID (TypeID with the person prefix).

Match^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"person_01kjsesxm0e4zbyvkr7bcfxbfg"
team_id?TeamId

A team ID (TypeID with the team prefix).

Match^team_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"team_01m4r6y616e1b973vj50h0643y"
for?string
Lengthlength <= 160
kind?DeliveryKind
Value in"parcel""envelope""food""other"
size?DeliverySize
Value in"small""medium""large"
location?string
Lengthlength <= 80
sender?string
Lengthlength <= 120
carrier?string
Lengthlength <= 120
tracking_number?string
Lengthlength <= 120
description?string
Lengthlength <= 300
package_count?integer
Range1 <= value <= 100
Default1
rider_name?string
Lengthlength <= 120
rider_phone?string
Match^\+[1-9][0-9]{6,14}$
label_file_id?FileId

A file ID (TypeID with the file prefix).

Match^file_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"file_01m4z8vge0fkktt139dhkf42gw"
photo_file_ids?array<>
Itemsitems <= 4
notify_recipient?boolean
Defaulttrue

Response Body

The new delivery.

application/json
  1. response

A parcel, envelope or food received at a site, for a person, a team or the front desk.

id*DeliveryId

A delivery ID (TypeID with the delivery prefix).

Match^delivery_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"delivery_01m4x0bj50e43vcf8bz0ar7qhp"
status*DeliveryStatus

received and notified are waiting at reception (notified once the recipient was told); then collected, returned (sent back) or refused (turned away at the door).

Value in"received""notified""collected""returned""refused"
site_id*SiteId

A site ID (TypeID with the site prefix).

Match^site_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"site_01kjpt3yw0fz0v414608h9x65s"
recipient_type*DeliveryRecipientType

Who a delivery is for: a person in your directory, a team, or the front_desk itself.

Value in"person""team""front_desk"
recipient_id*|

The person it's for. null for a team or the front desk.

Match^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
team_id*|

The team it's for. null otherwise.

Match^team_[0-7][0-9a-hjkmnp-tv-z]{25}$
for*|

Who the label or the courier said it's for, in words.

Example"Kwabena Adjei, Accounts"
kind*DeliveryKind
Value in"parcel""envelope""food""other"
size*|null
location*|

Where reception keeps it.

Example"Shelf B"
sender*|
Example"Coastline Consult"
carrier*|
Example"Dispatch rider"
tracking_number*string|null
description*|
Example"Signed engagement letter"
package_count*integer
Range1 <= value
Example1
rider_name*|

The courier or rider who brought it.

rider_phone*|

The rider's phone number, E.164.

Match^\+[1-9][0-9]{6,14}$
source*string

Where it was logged: api, console, workspace (the app), kiosk, web_kiosk (a kiosk in a browser) or drop_off (a courier's own phone, from a poster).

Value in"api""console""workspace""kiosk""web_kiosk""drop_off"
received_at*string
Formatdate-time
received_by*|

The person at reception who logged it. null when a courier logged it, or through the API.

Match^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
notified_at*|

When the recipient was first told.

Formatdate-time
reminders_sent*integer
Range0 <= value
collected_at*|
Formatdate-time
collection_method*|

How it was handed over: the recipient's code, a signature, staff confirmation, or through the api.

Value in"code""signature""staff""api"null
collected_by*|

The person in your directory who collected it, if known.

Match^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
collected_by_name*|

Who collected it, in words, if not someone in your directory.

handed_over_by*|

The person at reception who handed it over, or sent it back.

Match^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
returned_at*|
Formatdate-time
return_reason*string|null
label_file_id*|

The photo of its label.

Match^file_[0-7][0-9a-hjkmnp-tv-z]{25}$
photo_file_ids*array<>

Other photos of it.

created_at*string
Formatdate-time
updated_at*string
Formatdate-time
curl -X POST 'https://api.agoohq.com/v1/deliveries' \  -H 'Idempotency-Key: 3f6b2a1e-8c4d-4f7a-9b2e-5d1c0a7e9f64' \  -H 'Content-Type: application/json' \  -d '{  "site_id": "site_01kjpt3yw0fz0v414608h9x65s",  "recipient_id": "person_01kjsesxm0e4zbyvkr7bcfxbfg",  "for": "Kwabena Adjei, Accounts",  "kind": "envelope",  "size": "small",  "location": "Shelf B",  "sender": "Coastline Consult",  "carrier": "Dispatch rider",  "description": "Signed engagement letter",  "package_count": 1,  "rider_name": "Yaw Boateng",  "rider_phone": "+233244000111",  "label_file_id": "file_01m4x0bh10e43vcf8bz0ar7qhn",  "notify_recipient": true}'
{  "id": "delivery_01m4x0bj50e43vcf8bz0ar7qhp",  "status": "received",  "site_id": "site_01kjpt3yw0fz0v414608h9x65s",  "recipient_type": "person",  "recipient_id": "person_01kjsesxm0e4zbyvkr7bcfxbfg",  "team_id": null,  "for": "Kwabena Adjei, Accounts",  "kind": "envelope",  "size": "small",  "location": "Shelf B",  "sender": "Coastline Consult",  "carrier": "Dispatch rider",  "tracking_number": null,  "description": "Signed engagement letter",  "package_count": 1,  "rider_name": "Yaw Boateng",  "rider_phone": 233244000111,  "source": "api",  "received_at": "2026-10-14T10:47:00Z",  "received_by": null,  "notified_at": null,  "reminders_sent": 0,  "collected_at": null,  "collection_method": null,  "collected_by": null,  "collected_by_name": null,  "handed_over_by": null,  "returned_at": null,  "return_reason": null,  "label_file_id": "file_01m4x0bh10e43vcf8bz0ar7qhn",  "photo_file_ids": [],  "created_at": "2026-10-14T10:47:00Z",  "updated_at": "2026-10-14T10:47:00Z"}