{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jobopportunitiesapi-org/json-schema/jobopportunitiesapi-org-export-pack-schema.json",
  "title": "ExportPack",
  "description": "One export pack (BETA), a background whole-country CSV export of this account.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jobopportunitiesapi-org-openapi.json#/components/schemas/ExportPack",
  "properties": {
    "completed_at": {
      "description": "When the pack completed or failed (UTC). Absent while queued or running.",
      "format": "date-time",
      "type": "string"
    },
    "country": {
      "description": "The two-letter country code the pack was created for.",
      "type": "string"
    },
    "created_at": {
      "description": "When the pack was queued (UTC).",
      "format": "date-time",
      "type": "string"
    },
    "download_url": {
      "description": "A signed, expiring download link for the gzip CSV file. Present only when the status is `completed`; needs no key. Each read of the pack returns a link valid for 7 days from that read, but the file itself is removed at `expires_at`.",
      "format": "uri",
      "type": "string"
    },
    "error": {
      "description": "Why the pack failed. Present only when the status is `failed`.",
      "type": "string"
    },
    "expires_at": {
      "description": "When the file is removed from the server, 7 days after completion. Absent while queued or running.",
      "format": "date-time",
      "type": "string"
    },
    "family": {
      "description": "The job-family filter the pack was created with. Absent when none was set.",
      "type": "string"
    },
    "file_bytes": {
      "description": "Size of the gzip CSV file in bytes. Present once the file exists (status `completed`).",
      "format": "int64",
      "type": "integer"
    },
    "id": {
      "description": "The pack id, the one `POST /v1/export-packs` returned.",
      "format": "uuid",
      "type": "string"
    },
    "rows_written": {
      "description": "Rows written to the file so far. Final once the status is `completed`.",
      "format": "int64",
      "type": "integer"
    },
    "status": {
      "description": "`queued` waiting to start, `running` being written, `completed` the file is ready, `failed` the pack stopped (see `error`).",
      "enum": [
        "queued",
        "running",
        "completed",
        "failed"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "country",
    "status",
    "rows_written",
    "created_at"
  ],
  "type": "object"
}