{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "export-job.json", "title": "Zylo Export Job", "description": "An export job represents an asynchronous task for exporting subscription data from Zylo. The workflow involves creating the export job and then polling for completion, at which point a download URL is provided.", "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier of the export job." }, "status": { "type": "string", "description": "The current status of the export job.", "enum": ["pending", "processing", "completed", "failed"] }, "downloadUrl": { "type": "string", "format": "uri", "description": "The URL to download the exported data. Only available when the job status is completed." }, "createdAt": { "type": "string", "format": "date-time", "description": "The date and time the export job was created." }, "completedAt": { "type": "string", "format": "date-time", "description": "The date and time the export job completed." }, "error": { "type": "string", "description": "Error message if the job failed." } }, "required": ["id", "status"] }