{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crawdar-com/json-schema/crawdar-com-search-job-envelope-schema.json",
  "title": "SearchJobEnvelope",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crawdar-com-openapi.yml#/components/schemas/SearchJobEnvelope",
  "type": "object",
  "required": [
    "id",
    "status",
    "statusUrl",
    "exportUrl",
    "retryUrl",
    "cancelUrl",
    "expiresInSeconds"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "enum": [
        "queued",
        "running",
        "completed",
        "failed",
        "canceled"
      ]
    },
    "jobToken": {
      "type": "string",
      "description": "Shown once. Send it in x-job-token for subsequent requests."
    },
    "statusUrl": {
      "type": "string",
      "format": "uri"
    },
    "exportUrl": {
      "type": "string",
      "format": "uri"
    },
    "retryUrl": {
      "type": "string",
      "format": "uri"
    },
    "cancelUrl": {
      "type": "string",
      "format": "uri"
    },
    "progress": {
      "type": "object",
      "additionalProperties": true
    },
    "expiresInSeconds": {
      "type": "integer"
    },
    "cacheHit": {
      "type": "boolean"
    },
    "resultCount": {
      "type": "integer"
    }
  }
}