{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/boardwalkai-com/json-schema/boardwalkai-com-csv-export-job-accepted-schema.json",
  "title": "CsvExportJobAccepted",
  "description": "HTTP 202 body for `POST /exports` and `GET /projects/search?format=csv`, and the same shape from `GET /exports/{id}`.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/boardwalkai-com-openapi.yml#/components/schemas/CsvExportJobAccepted",
  "type": "object",
  "properties": {
    "exportJobId": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "ready",
        "failed",
        "expired",
        "no_matching_rows",
        "no_billable_rows"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "csv"
      ]
    },
    "pollUrl": {
      "type": "string"
    },
    "downloadUrl": {
      "type": "string"
    },
    "webExportsUrl": {
      "type": "string",
      "description": "Product UI export history for the same team scope."
    },
    "job": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "contactBilling": {
          "$ref": "#/$defs/ContactBillingReceipt"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "projectCount": {
          "type": "integer"
        },
        "creditsReserved": {
          "type": "integer"
        },
        "columnGroups": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "csvFields": {
          "type": "string"
        },
        "enrichmentRequested": {
          "type": "boolean",
          "description": "True when this job will run Find Contact Info for the exported project IDs."
        },
        "creditsUsed": {
          "type": "integer"
        },
        "downloadable": {
          "type": "boolean"
        }
      }
    }
  },
  "$defs": {
    "ContactBillingReceipt": {
      "type": [
        "object",
        "null"
      ],
      "description": "Cumulative job billing. meta.creditsUsed on polling remains zero. Only a newly unlocked project delivering an external person email, phone, or personal LinkedIn qualifies. Company links and names alone are free.",
      "properties": {
        "attemptKey": {
          "type": "string"
        },
        "reserved": {
          "type": "integer"
        },
        "charged": {
          "type": "integer"
        },
        "released": {
          "type": "integer"
        },
        "refunded": {
          "type": "integer"
        },
        "qualifyingProjects": {
          "type": "integer"
        },
        "newlyUnlockedProjects": {
          "type": "integer"
        },
        "alreadyUnlockedProjects": {
          "type": "integer"
        },
        "recordReserved": {
          "type": "integer"
        },
        "recordCharged": {
          "type": "integer"
        },
        "recordReleased": {
          "type": "integer"
        },
        "settled": {
          "type": "boolean"
        }
      }
    }
  }
}