{
  "format": "Human-readable configuration recipe, not a native importable workflow",
  "platform": "zapier",
  "guide": "https://web.mockupsgenerator.com/guides/zapier-mockup-automation",
  "credential": {
    "storage": "API by Zapier connection",
    "header": "Authorization",
    "value": "Bearer YOUR_API_KEY (store in connection, never in this file)"
  },
  "submit": {
    "method": "POST",
    "url": "https://web.mockupsgenerator.com/api/v1/render-jobs",
    "headers": {
      "Content-Type": "application/json",
      "Idempotency-Key": "SOURCE_RECORD_ARTWORK_VERSION"
    },
    "body": {
      "template_id": "REPLACE_TEMPLATE_ID",
      "options": {
        "format": "png",
        "mode": "full",
        "slots": {
          "REPLACE_SLOT_ID": {
            "asset_id": "REPLACE_ASSET_ID",
            "fit": "contain"
          }
        }
      }
    },
    "success_status": 202,
    "persist": [
      "id",
      "source_record_id",
      "run_key"
    ]
  },
  "poll": {
    "method": "GET",
    "url": "https://web.mockupsgenerator.com/api/v1/render-jobs/JOB_ID",
    "interval_seconds": 5,
    "deadline_seconds": 1800,
    "waiting": [
      "queued",
      "running",
      "cancelling"
    ],
    "success": "done",
    "failure": [
      "error",
      "cancelled"
    ],
    "deadline_action": "Preserve job ID and resume reads later; server continues"
  },
  "download": {
    "method": "GET",
    "url": "https://web.mockupsgenerator.com/api/v1/render-jobs/JOB_ID/result",
    "response": "File bytes; upload to destination",
    "authentication": "Same connection; never forward bearer to a different origin"
  },
  "retries": {
    "idempotent_submission": "Unchanged body and SAME key only",
    "temporary_errors": [
      "network",
      "408",
      "429",
      "5xx"
    ],
    "maximum_attempts": 3,
    "permanent_errors": [
      "401",
      "402",
      "404",
      "409",
      "422"
    ]
  },
  "platform_notes": "Use a separate completion Zap or status record. Custom Request raw JSON does not produce a binary file object; use a destination capable of authenticated fetch or a trusted file bridge."
}
