A collection holds faces you want to recognise later: your staff at a door, the members of a club, the people allowed on a site. You enroll each face once, with your own reference for it, and DecisionNode keeps the face's template, never the picture. A request then names the collection in the face_recognition booster, and each face in its pictures is matched against the collection before the decision.
| Type | face for now. A collection's type never changes, and later types bring their own items and booster |
|---|---|
| An item | One face: its template, your reference (up to 64 characters of letters, digits and _ . : -, such as an employee number) an optional label (up to 128 characters, shown in a match) and optional metadata (up to 20 flat fields of your own) |
| Never stored | The picture. The template is made when you enroll and the picture is forgotten; a template cannot be turned back into a picture |
| Who sees it | Your workspace only: no other workspace can see, search or be billed for your collections |
The public collection#
celebrities belongs to DecisionNode, is searched like your own and carries no storage fee.
| Collection | Who may search it | A match returns |
|---|---|---|
celebrities | Every workspace | The public figure's name, a reference and the score |
Create a collection and enroll faces#
Collections are managed with your API key (dn_live_...) at https://api.decisionnode.com/v1/collectionshttps://api.decisionnode.com/, or on the console's Collections page. Create one, then enroll a face per call: one picture, in any form a decision takes (url, data or upload_id).
curl -X POST https://api.decisionnode.com/v1/collections \
-H "Authorization: Bearer $DECISIONNODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"face","name":"Staff, Stockholm office"}'{
"id": "col_3f6c1a9e0b2d4c7f8a1e5d9b2c4f6a80",
"type": "face",
"name": "Staff, Stockholm office",
"public": false,
"items": 412,
"created_at": "2026-10-12T09:00:00Z",
"deletion": null
}- One item is one face. A picture with several faces enrolls the largest, and
faces_foundsays how many faces it could take, at most 64: a face the detector is at least 0.7 sure of and at least 1,000 square pixels in size.boxshows which face was taken, in pixels of the picture as you sent it. - A picture with no such face is a
422with the entryno_faceatimage. Nothing is stored, and the enrollment is billed, since the face model ran. - A picture that cannot be read is never billed, since the face model did not run: a
422image_unreadable(not a JPEG, PNG or WebP, too large, aurlthat cannot be reached in time, or more than 1,024 faces in it), the400image_url_refusedof aurlwe do not fetch, or an upload's own400. Nor is a529: retry one after itsRetry-After, except one whosedetails.reasonisenrollment_unpriced, which says enrollment is not offered here yet and is never retried. - A reference may repeat: the same person enrolled twice keeps one reference on two items.
- Public collections take no enrollment:
403collection_read_only. - Limits: up to 100 collections and 1,000,000 items in all of them per workspace; write to us to raise them. Past them,
409collections_limit_reachedoritems_limit_reached. - Zero retention does not stop an enrollment: an item is data you chose to keep, held until you delete it.
- A workspace whose data is kept in a storage location other than the default cannot create collections or enroll:
403collections_region_unavailable. - Metadata: an item may carry up to 20 flat fields of your own, 4,096 bytes at most, such as a department or a badge number. A match on your own collection carries them, and the model reads them as evidence: see Enroll a face.
- Edit an item without enrolling it again:
PATCH /changes its reference, its label or its metadata, never billed.v1/ collections/ {id}/ items/ {item_id} - A retried create, enrollment or edit runs once when you send the same
Idempotency-Keyheader with it: see Retrying.
Search a collection#
Name the collection in the face_recognition booster's collection option: a public collection's name or the id of one of yours. Each face in the request's pictures is compared with the collection, and the nearest item at or above threshold (0 to 1, 0.5 when you leave it out) is a match. The model still answers every question; the matches come back in evidence.
{
"images": [
{
"id": "door",
"url": "https://files.example.com/office/door-cam/0904.jpg"
}
],
"boosters": [
{
"name": "face_recognition",
"options": {
"collection": "col_3f6c1a9e0b2d4c7f8a1e5d9b2c4f6a80",
"threshold": 0.6
}
}
],
"questions": {
"staff": {
"type": "truth",
"instructions": "Is the person at the door in our Staff, Stockholm office collection?"
}
}
}The model reads each match's collection_name with its score and reference, so a question can name the collection, as this one does with "Staff, Stockholm office". A search of your own collection also carries collection_name on the picture's result. Both are present only on a reading from a worker on the dn-evidence-4 format, so read them as optional. A collection whose name says what it holds (staff, members, allowed on site) makes such questions read plainly.
{
"image": "door",
"faces": 1,
"collection_name": "Staff, Stockholm office",
"matches": [
{
"box": { "x1": 640, "y1": 122, "x2": 731, "y2": 240 },
"score": 0.91,
"collection": "col_3f6c1a9e0b2d4c7f8a1e5d9b2c4f6a80",
"collection_name": "Staff, Stockholm office",
"reference": "emp-1042",
"label": "Anna, reception",
"metadata": {
"department": "reception",
"badge": 1042,
"visitor": false
}
}
]
}facesis how many faces were searched: up to 64 a picture, the most certain first, each one the detector is at least 0.7 sure of and at least 1,000 square pixels in size.matchesis always there,[]when nothing matched, best score first, at most 64.- Each match carries its
box(in the request's units, as every booster's box), itsscore, thecollectionsearched, itscollection_name(your collection's name, or itscol_id when it has none; a public collection's id, such ascelebrities) and the item'sreference, withlabelfor your own item that has one, itsmetadatawhen it carries some, andnamefor a public figure. No match ever carries a picture. - A picture with more than 1,024 faces, or a search that cannot finish in its time, is the booster's
errorortimeoutand is not billed; see When a booster cannot read. - A match is a measure of similarity, not an identification. Act on it as evidence, beside your own threshold and the model's answers; the Terms forbid deciding about a person on a match alone.
What collections cost#
| What | Price |
|---|---|
| A search of your own collection, per picture | $0.001 |
A search of celebrities, per picture | $0.001 |
| An enrollment, per picture the face model reads, a face found or not | $0.001 |
| Storage, per item and month | $0.00001 |
- Searches are booster calls: billed per picture and collection searched, only for a reading that ran, with your request's tokens.
- Storage is a monthly fee: every item stored at any time in a month pays that month, an item you delete during it included, with no proration. It is charged on the 1st of the next month, from your balance (a dedicated workspace's invoice carries it). The public collections carry none.
- Face collections are in Pro and Business, and in the trial, where searches of them and of
celebritiesare billed booster calls; on Starter acelebritiessearch runs only as a test call. An enrollment and storage are always billed. - When the balance cannot cover the storage charge, it is retried 3 times, 10 days apart, and your workspace's owner and admins are emailed each time. After the third failure every item of your collections is marked for deletion 30 days later: the owner and admins are emailed the date, and a reminder goes out 7 days before it.
- During those days the items stay searchable, and a top-up or a new payment method retries the charge at once; a success clears the marks. At the date the items are deleted for good, and the collections stay, empty.
Your data#
- Templates only. An item is a template, your reference, your label, your metadata and its times. No picture is stored.
- Yours alone. Every call is scoped to the key's workspace; another workspace's collection reads as not found.
- Deleting is real. A deleted item or collection leaves no template behind, and it cannot be restored.
- Never used to train. Biometric data in a collection or a search is never used to improve the models, whatever your settings.
- Your lawful basis. For every face you enroll you need a lawful basis, the person's consent where the law requires it, and the notice the law requires; see section 6.10 of the Terms.