Import file data via API for marketing uploads

API toolWorkatoRecipe ToolsData ParserMarketingUtilities

What it does

When someone sends a file to this API endpoint, this automation parses the JSON payload to extract file metadata and post type. It validates that the file has both an ID and name before logging the details to the job report.

Who it's for

Marketing operations teams who need to ingest media files through an API without manual processing.

How teams use this

Ingest social media files via API

Upload media files for social posts through the API endpoint, parse the JSON to extract file and post details, and log each upload to the job report for audit and tracking.

Validate files before downstream processing

Ensure every file has both an ID and name before it moves to the next step in this automation. Files missing either field are rejected and logged so the team knows what failed.

Route files by post type to different teams

Add a condition to check the post type and route social posts to one team and webinar files to another. Only files that pass validation are routed, keeping bad data out of downstream systems.

Enrich file records with integration metadata

Include integration identifier and message category variables in the parsed output so each file is tagged with its source system. This makes it easier to reconcile uploads across multiple integrations.

How it works

  1. Receive the file upload request. Someone sends a file to the API endpoint with JSON parameters for file ID, file name, post type, and other metadata in real time.
  2. Parse the file metadata. The Json Parser extracts the file ID, file name, post type, and other properties from the JSON payload so this automation can validate and route the data.
  3. Validate file presence. The Workato Recipe Function checks that both the file ID and file name are present in the parsed data. If either is missing, this automation stops and logs an error.
  4. Log file details to job report. The Workato Mapper records the file metadata, post type, and validation result in the job report so the team can track all uploads and any issues.