Reading a verdict

Read a file returns a file’s verdict; Read a delivery, those of the whole delivery, with the link to its review in ValidFile, where your team approves and exports.

curl https://validfile.ca/api/v1/deliveries/$DELIVERY/files/$FILE \
  -H "Authorization: Bearer $VALIDFILE_KEY"

Publish on ready

ready: true means ValidFile’s export would send this file as it is. A file can pass its specs and still be held: a platform the campaign did not tick, a placement ValidFile chose among several. heldReason says why, with the export page’s own reasons.

heldReasonWhy the file is held
refusedIt breaks a rule of its placement: checks says which.
no_formatNo format of the catalogue takes it.
to_confirmValidFile chose its placement among several, or set aside the one your team had chosen: someone must confirm.
outsideIt goes to a platform the campaign did not tick.
named_elsewhereIts name names another platform than the one it was judged on.
wrong_boxYour client dropped it in another platform’s box, which refuses it: it is judged on the one that takes it, until your client says which it is for.
not_orderedIts placement is not in the delivery’s order.
uncheckedPart of the file could not be checked, a cut-off image for instance.
unseenNothing shows it decodes: no preview could be made of it, or the review could not play the video.
waitingIt is not measured yet.
unreadableOur reader could not read it.
duplicateA file with the same bytes, name, placement and ad text is already in the delivery: the export sends one of them. Two files of one name that differ in any of these both go out. If the agency files its exports as the client sent them, the zip, Google Drive and OneDrive also send such a file kept in another of the client’s folders: the API says what the export by platform sends.
scanningThe antivirus has not scanned it yet.
infectedThe antivirus recognised a known threat in it: it will never go out.
not_checkedAn HTML5 banner measured by the version of ValidFile that, in November 2026, set banners aside without checking them: opening its review in ValidFile again measures and judges it.

Verdicts

verdict says what the specs think of the file.

verdictWhat it meansWhat to do
passIt meets its placement’s specs.Publish it if it is ready.
warnIt passes, with a recommendation not met.Publish it if it is ready, or have it fixed.
failA rule of the placement is broken.Send it back to the studio with the lines of fix, unless doubtful is true there.
no_formatNo format of the catalogue takes it. nearest gives the nearest.Check the platform aimed at, or ask for the format in ValidFile.
needs_placementSeveral placements take it, and they do not all judge it alike; candidates lists them. When they are one platform’s placements, the delivery has no order, each gives it the same verdict, and the file itself carries no warning (an EXIF orientation, an extension naming another type), it has that verdict, on the placement the tool took.Choose one with Choose a placement, or in the review.
pendingNot measured yet.Wait for the webhook, or read it again with wait.
unreadableOur reader could not read it. Its credit is given back.Send it again; if it happens again, write to support.
infectedThe antivirus recognised a known threat in it, named in antivirus.threat. It is not judged.Do not open it; ask whoever sent it for a new version.
not_checkedAn HTML5 banner measured by the version of ValidFile that, in November 2026, set banners aside without checking them. It is not judged, and counts no credit; a banner already counted before that version keeps its credit. A banner measured since is judged like any file, and never has this verdict.Open its review in ValidFile again: it is measured again and judged, with no further credit.

Checks

checks gives each rule of the placement, what it asks for (expected) and what ValidFile measured (actual).

statusWhat it means
passThe rule is met.
warnA recommendation is not met: the file passes all the same.
failThe rule is broken: the file is refused, unless accepted is true.
skippedValidFile could not make the check, and says so rather than count it as good. unmeasured says why.
noteA remark, with no effect on the verdict: the advised delivery size, for instance.

Each check has its key, key. A key can come twice, for a rule and for a recommendation, or for several rules of an HTML5 banner. A new key can be added when ValidFile learns a check: your script should take it.

keyWhat it checks
mimeThe file’s format, read from its bytes: JPEG, PNG, MP4…
maxBytesThe file’s weight, at most.
minBytesThe file’s weight, at least: a file too light for its placement.
dimensionsThe width and height, in pixels.
aspectRatioThe width-to-height ratio.
durationThe length of a video or a sound.
fpsA video’s frames per second.
videoCodecThe video codec.
audioCodecThe audio codec.
audioThe audio track: asked for, or refused.
bitrateThe bitrate.
audioSampleRateThe sound’s sample rate.
audioChannelsThe sound’s channels: mono or stereo.
colorSpaceAn image’s colour space: sRGB, CMYK…
alphaAn image’s transparency.
animationLengthAn animated image’s (GIF) length, loops included, as a browser plays it; an HTML5 banner’s, watched as it plays. For a banner, a warning only; note, “Not judged”, when it could not be watched.
animationFpsAn animated image’s frames per second.
animationPlaysHow many times an animated image plays.
adSizeHTML5 banner: the size its ad.size tag declares.
clickTagHTML5 banner: a clickTag the ad server can read.
clickOpensHTML5 banner: a click on the banner, played in a browser, opens its clickTag. A warning only; note, “Not judged”, when it could not be played or what its click opens could not be followed.
hardcodedUrlsHTML5 banner: no click address written into the code.
bannerFilesHTML5 banner: the zip’s files, their number, types and names.
pageAtRootHTML5 banner: the page is at the top of the zip, not in a folder. A warning in the base catalogue.
bannerReferencesHTML5 banner: each file the page loads is in the zip.
bannerExtrasHTML5 banner: no file the computer added (__MACOSX, .DS_Store).
browserStorageHTML5 banner: no storage in the browser.
secureLoadsHTML5 banner: everything loads over https.
externalLoadsHTML5 banner: the files loaded from outside the zip.
initialLoadHTML5 banner: what it loads before its page’s load event, then after it, gzipped, as the IAB weighs it. A warning only; note, “Not judged”, when it could not be measured.
backupImageHTML5 banner: a backup image in the zip, and its weight. No format asks for one for now, the base catalogue no more than another.
  • A skipped check did not pass. unmeasured: true means a measurement was missing; false, that there was nothing to check, an absent audio track for instance.
  • accepted: true marks a rule your team let through in ValidFile, with “Accept anyway”: it stays fail, but no longer holds the file.
  • message is ValidFile’s sentence in English, as its check writes it; text says it in French and in English, in the site’s words, which can differ. To automate, read key, status and heldReason, which will not change.

The words to show

key, status and heldReason are made for a script. For a person, each check carries text and each file fix: what ValidFile says of it in its review, in French (fr) and in English (en) in the same answer. Show them as they are, without summing them up.

{
  "file": {
    "id": "3d8f1b6e-52a4-4c0f-b7e9-6a1c4d2f8b05",
    "name": "Display_FR_300x250-noel.jpg",
    "size": 333596,
    "ready": false,
    "heldReason": "refused",
    "verdict": "fail",
    "placement": { "id": "display.300x250", "platform": "Display", "label": "Medium Rectangle 300x250", "rulesToConfirm": false, "pageChanged": false },
    "nearest": null,
    "checks": [
      { "key": "mime", "expected": "JPG, PNG, GIF", "actual": "JPG", "message": null,
        "text": {
          "fr": { "rule": "Format de fichier", "expected": "JPG, PNG, GIF", "actual": "JPG", "message": null },
          "en": { "rule": "File format", "expected": "JPG, PNG, GIF", "actual": "JPG", "message": null }
        },
        "status": "pass" },
      { "key": "maxBytes", "expected": "≤ 150 KB", "actual": "334 KB", "message": "334 KB is over the 150 KB limit. This limit is set by Google Ads: Campaign Manager 360 takes up to 9.50 MB.",
        "text": {
          "fr": { "rule": "Poids", "expected": "≤ 150 Ko", "actual": "334 Ko", "message": "Fichier de 334 Ko. Maximum recommandé : 150 Ko. C’est la limite de Google Ads : Campaign Manager 360 accepte jusqu’à 9,5 Mo." },
          "en": { "rule": "File size", "expected": "≤ 150 KB", "actual": "334 KB", "message": "File is 334 KB. Recommended maximum: 150 KB. This limit is set by Google Ads: Campaign Manager 360 takes up to 9.50 MB." }
        },
        "status": "warn", "accepted": false },
      { "key": "dimensions", "expected": "300x250 or 600x500", "actual": "300x250", "message": null,
        "text": {
          "fr": { "rule": "Dimensions", "expected": "300x250 ou 600x500", "actual": "300x250", "message": null },
          "en": { "rule": "Dimensions", "expected": "300x250 or 600x500", "actual": "300x250", "message": null }
        },
        "status": "pass" },
      { "key": "colorSpace", "expected": "sRGB, Greyscale", "actual": "CMYK", "message": "CMYK will shift colours on delivery — convert to sRGB.",
        "text": {
          "fr": { "rule": "Espace colorimétrique", "expected": "sRGB, Niveaux de gris", "actual": "CMYK", "message": "Image en CMYK. Ce format demande sRGB, Niveaux de gris. Convertissez-la en sRGB." },
          "en": { "rule": "Colour space", "expected": "sRGB, Greyscale", "actual": "CMYK", "message": "Image in CMYK. This placement requires sRGB, Greyscale. Convert it to sRGB." }
        },
        "status": "fail", "accepted": false }
    ],
    "fix": {
      "required": true,
      "doubtful": false,
      "fr": [
        "Espace colorimétrique : reçu CMYK, attendu sRGB, Niveaux de gris.",
        "Poids : ≤ 150 Ko si possible (reçu 334 Ko)."
      ],
      "en": [
        "Colour space: received CMYK, expected sRGB, Greyscale.",
        "File size: ≤ 150 KB if possible (received 334 KB)."
      ]
    },
    "antivirus": { "state": "clean", "threat": null, "reason": null, "signatures": "2026-11-11T09:27:01.000Z" },
    "origin": "api",
    "replaces": null,
    "declaredPlatform": null,
    "judgedAt": "2026-11-11T15:02:43.904Z",
    "catalogue": { "version": "2026.11.10.1", "agencyVersion": 0 }
  },
  "reviewUrl": "https://validfile.ca/livraisons/0b6c2f4e-8d1a-4c7b-9f3e-5a2d1c8b7e60/revue"
}
  • text gives the rule’s name (rule), what it asks for (expected), what was measured (actual) and ValidFile’s sentence (message), written as the review writes them: “≤ 150 KB”, “Greyscale”. The fields of the same name on the check itself do not change.
  • fix says what to change, line by line: what your team writes to your client from the review, with “Message to the client”. required: false is a remark: the file can go as it is.
  • doubtful: true: do not ask for a new file yet. The refusal may come from a placement the campaign did not buy, or from the platform its name names while another takes it, and the file may be right; your team settles it in the review, at reviewUrl.
  • fix: null does not mean ready. There is no change to ask for: the file goes as it is, is not judged yet, or waits for your team to check it. ready is what says whether it goes.
  • An infected file has no fix either, and that one is to be asked for again: there is nothing to change in it, a clean version is what is needed. Its verdict says so, with the threat in antivirus.threat.
  • A file ValidFile cannot use at all, empty, cut short or of an unknown type, is refused with no check at all: checks is empty, and its reason is in fix.
  • Do not compare these sentences in a script: they may be reworded. A sentence ValidFile cannot say in French yet stays in English under fr.

The verdict read is the one that holds

A file is judged again at every read, with the day’s specs: its verdict can change after a catalogue update, or when your team accepts a rule or chooses a placement in ValidFile. judgedAt and catalogue say what it was judged with. Read it again just before publishing.

  • Reading measures nothing. A pending file stays so until the measuring queue has measured it; reading every few seconds speeds nothing up. A script that cannot receive a webhook reads with wait=: the read waits for the verdict, up to 60 seconds, and answers as soon as it is there.
  • unreadable is not always the last word. If ValidFile measures the file again, when its review is opened for instance, the next read gives the verdict found, and file.judged goes out again.

Antivirus

Every file received is scanned by ValidFile’s antivirus, ClamAV, in Montréal. antivirus says where it stands, and a file is ready only once scanned. file.judged waits for the antivirus too.

  • clean means “no known threat found”, with the signatures dated in signatures. Not “no virus”: an antivirus only recognises what it knows.
  • unscanned is never clean. reason says why nobody looked: too_large (past 2,047 MiB, the most the antivirus reads of one file), limits (an archive past what the antivirus opens), encrypted (password-protected), failed (the antivirus did not answer), before (received before the antivirus). The file can go out; yours to judge.
  • infected never goes out, and nobody can let it through in ValidFile.

What the API does not do

The API measures a video, its dimensions, duration, codecs and bit rate, but does not play it. If ValidFile’s review could not play it, it is held (unseen), by the API too; a video nobody opened was only measured. Watch it before you publish it.