Make a delivery

POST /api/v1/deliveries

Makes a delivery: a client’s campaign, whose every file will be judged on the placements of the platforms it will run on. One per campaign.

Scope · deliveries:write Takes an Idempotency-Key

Request body

client string required
The client, 200 characters at most.
campaign string required
The campaign, 200 characters at most.
platforms array of string required
Where the campaign will run, at least one platform, written exactly as Platforms returns it, accents included: Vidéo, not Video. Each file is judged on these platforms’ placements.
campaignRef string | null optional
Your own id for the campaign, to find it again with GET /deliveries?campaignRef=. Folded to lower case, 128 characters at most, among a-z, 0-9, ., _, :, / and -, the first a letter or a digit: Bynder:4471 is kept as bynder:4471, and a space or an accent is refused. It goes as it is in webhooks: put nothing in it that a mistyped address must not receive.

What the response holds · 201

delivery delivery
The delivery made.

The fields of delivery

id uuid
The delivery’s id.
client string
The client, as you gave it.
campaign string
The campaign, as you gave it.
platforms array of string | null
The campaign’s platforms, in the order of GET /platforms, or null for a delivery started in ValidFile before its Campaign step: each of its files is judged on the whole catalogue.
campaignRef string | null
Your campaign reference, folded to lower case, or null.
closed boolean
True once the delivery is closed: by POST …/close, or by your client when it says on its drop link that its delivery is complete. A closed delivery still takes files.
createdAt date-time
When it was made.
keptUntil date-time
The day it will be erased if nothing happens to it before, by your plan’s retention. It moves later with each activity. Once erased, it answers 404. For a test delivery: 24 h after its making or its last file.
test boolean
True for a delivery made with a test key (vf_test_): its files cost nothing and are erased after 24 h, and ValidFile shows it nowhere. Authentication.

Errors

400invalidFix the request: a field is missing, too long or of another type, or the JSON is malformed.
403scopeThe key does not have the scope the route asks for: a read-only key tried to write, or a key without drop-links:write tried to make or cut a drop link.
409idempotency_mismatchThe same Idempotency-Key with another body: take a new one.
409idempotency_in_progressThe first call is still running: try again in a moment, with the same key.

And those of any call, in Limits and errors.

With an Idempotency-Key, a call sent again because its response was lost returns the same delivery rather than making a second one. Limits and errors says how.

curl https://validfile.ca/api/v1/deliveries \
  -H "Authorization: Bearer $VALIDFILE_KEY" \
  -H "Idempotency-Key: bynder-4471" \
  -H "Content-Type: application/json" \
  -d '{
    "client": "Fromagerie Boivin",
    "campaign": "Noël 2026",
    "platforms": ["Meta", "Display"],
    "campaignRef": "bynder:4471"
  }'
{
  "delivery": {
    "id": "0b6c2f4e-8d1a-4c7b-9f3e-5a2d1c8b7e60",
    "client": "Fromagerie Boivin",
    "campaign": "Noël 2026",
    "platforms": ["Meta", "Display"],
    "campaignRef": "bynder:4471",
    "closed": false,
    "createdAt": "2026-10-28T18:40:02.114Z",
    "keptUntil": "2027-10-28T18:42:10.531Z",
    "test": false
  }
}