{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitbybit-dev/json-schema/bitbybit-dev-task-accepted-response-schema.json",
  "title": "TaskAcceptedResponse",
  "description": "HTTP 202 response when a task is accepted for async processing",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bitbybit-dev-models-api-openapi.yml#/components/schemas/TaskAcceptedResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "$ref": "#/$defs/TaskCreatedResult"
    }
  },
  "required": [
    "ok",
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "TaskCreatedResult": {
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string",
          "description": "Unique task identifier - use this to poll for status and retrieve results",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "const": "queued",
          "description": "Initial task status (always 'queued' upon creation)"
        },
        "statusUrl": {
          "type": "string",
          "description": "Relative URL to poll for task status updates"
        }
      },
      "required": [
        "taskId",
        "status",
        "statusUrl"
      ],
      "additionalProperties": false,
      "description": "Returned when a CAD task is accepted. Poll the statusUrl to track progress."
    }
  }
}