Get started in 5 minutes

Bring ad file validation into your own tools: send your clients’ creative to ValidFile, get their verdicts back and automate your deliveries.

What you need

Access to the API, which is part of the Custom offer, and the owner role in your agency to make a key. No access yet: this page’s Request API access button sends us your request.

The API also stays open to two cases from before November 18, 2026: an Agency plan bought while it included it, and the trial of an agency opened with trial credits that never had a plan, with Agency’s limits, for a new file while it has credits left (its files take the Free plan’s month first). The Free plan alone does not open the API.

Every address starts with https://validfile.ca/api/v1. Bodies are JSON, but for Validate a file’s, which is the file; dates are ISO 8601 in UTC, sizes in bytes.

1. Make a key

  1. In ValidFile, open Your agency › API and choose Make a key. Give it a name that says where it is used: “Bynder script”.
  2. Copy the key at once: it will never be shown again. Keep it in your tool’s secret manager, never in a published file.
  3. Put it in the VALIDFILE_KEY environment variable: that is where the examples on these pages read it.

2. Check that it answers

Ask for your balance. A 200 says the key is good and your plan has the API.

curl https://validfile.ca/api/v1/balance \
  -H "Authorization: Bearer $VALIDFILE_KEY"
{
  "plan": { "name": "Agence", "included": 3000, "left": 2841, "renewsAt": "2026-11-19T05:00:00.000Z" },
  "free": null,
  "credits": { "left": 500 }
}

3. Send a first file

A file of 25 MB at most is validated in one call, its bytes in the body and its verdict in the response:

curl "https://validfile.ca/api/v1/validate?name=Display_FR_300x250-noel.jpg&platforms=Display" \
  -H "Authorization: Bearer $VALIDFILE_KEY" \
  -H "Content-Type: image/jpeg" \
  --data-binary @Display_FR_300x250-noel.jpg

The response: the verdict (verdict), each check with what the placement asks and what ValidFile measured (checks), what to fix if anything (fix), and ready, which says whether the file can go out.

{
  "delivery": {
    "id": "5c1e8a2f-7d4b-4e93-a6f0-3b9d2c7e1a58",
    "client": "Bynder",
    "campaign": "Display_FR_300x250-noel.jpg",
    "platforms": ["Display"],
    "campaignRef": null,
    "closed": false,
    "createdAt": "2026-11-11T15:02:41.318Z",
    "keptUntil": "2027-11-11T15:02:41.322Z",
    "test": false
  },
  "file": {
    "id": "e7a3b5c9-1f2d-4c8e-9b6a-0d4f8e2c1a73",
    "name": "Display_FR_300x250-noel.jpg",
    "size": 48213,
    "ready": true,
    "heldReason": null,
    "verdict": "pass",
    "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": "47.1 KB", "message": null,
        "text": {
          "fr": { "rule": "Poids", "expected": "≤ 150 Ko", "actual": "47,1 Ko", "message": null },
          "en": { "rule": "File size", "expected": "≤ 150 KB", "actual": "47.1 KB", "message": null }
        },
        "status": "pass" },
      { "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": "sRGB", "message": null,
        "text": {
          "fr": { "rule": "Espace colorimétrique", "expected": "sRGB, Niveaux de gris", "actual": "sRGB", "message": null },
          "en": { "rule": "Colour space", "expected": "sRGB, Greyscale", "actual": "sRGB", "message": null }
        },
        "status": "pass" }
    ],
    "fix": null,
    "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 }
  },
  "duplicate": false,
  "reviewUrl": "https://validfile.ca/livraisons/5c1e8a2f-7d4b-4e93-a6f0-3b9d2c7e1a58/revue"
}

A larger file, a video for instance, takes three calls and an upload, and the delivery is closed once everything is sent. Its bytes do not go through ValidFile: they go straight to Cloud Storage, in Montréal, by an upload that resumes where it stopped.

  1. POST /deliveries Make the delivery, one per campaign.
  2. POST /deliveries/{id}/files Announce the file: a credit is reserved, the upload address comes back.
  3. PUT uploadUrl Send the bytes to Cloud Storage.
  4. POST /deliveries/{id}/files/{fileId}/complete Say they have arrived: measuring starts.
  5. POST /deliveries/{id}/close Close the delivery once everything is sent.

Complete examples does all of this for a folder, in Node and in Python.

4. Get the verdict

The verdict comes by webhook, or by reading the file again, with wait to have the read wait for it up to 60 seconds. A file is judged, or said unreadable, most often within minutes of being sent.

Publish on ready, never on verdict alone: a file can pass its specs and still be held. Reading a verdict says why.

Platforms change their specs without notice, and ValidFile reads their pages again every month. A ready file can therefore rest on a rule that is not yet certain: placement.rulesToConfirm is true when one of its rules is not yet settled by the official page alone, and placement.pageChanged when the last monthly check no longer found on the official page a sentence the catalogue quotes: the platform may ask for something other than what ValidFile checks. Neither holds the file: your script chooses whether to publish it or have someone look at it.

What you can connect

ToolWhat the API does there
Make, n8nValidates a delivery’s files in a scenario, through their HTTP module, which reads our routes in OpenAPI.
Your client portalChecks a file the moment your client drops it. With no code, a delivery’s drop link already does.
Your project management toolFlags a refused file as soon as its verdict is in, through a webhook.
An AI assistantReads your deliveries and their verdicts, changing nothing, through the MCP server.