API Stock · Schema

TaskStatusResponseDto

Artificial IntelligenceMachine LearningLLMPlatform

Properties

Name Type Description
code number HTTP status code
data object Task data
View JSON Schema on GitHub

JSON Schema

api-stock-com-task-status-response-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-stock-com/json-schema/api-stock-com-task-status-response-dto-schema.json",
  "title": "TaskStatusResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-stock-com-task-management-api-openapi.yml#/components/schemas/TaskStatusResponseDto",
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "HTTP status code"
    },
    "data": {
      "description": "Task data",
      "allOf": [
        {
          "$ref": "#/$defs/TaskDataDto"
        }
      ]
    }
  },
  "required": [
    "code",
    "data"
  ],
  "$defs": {
    "MediaFileDto": {
      "type": "object",
      "properties": {
        "fileUrl": {
          "type": "string",
          "description": "Direct URL to the generated file (retained for 3 days)"
        },
        "fileType": {
          "type": "string",
          "description": "Type of media file: 'image', 'video' or 'music'",
          "enum": [
            "image",
            "video",
            "music"
          ]
        }
      },
      "required": [
        "fileUrl",
        "fileType"
      ]
    },
    "TaskDataDto": {
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string",
          "description": "Unique task identifier"
        },
        "status": {
          "type": "string",
          "description": "Task status: not_started, processing, finished, failed, expired",
          "enum": [
            "not_started",
            "processing",
            "finished",
            "failed",
            "expired"
          ]
        },
        "files": {
          "description": "Generated media files (populated when status is finished)",
          "type": "array",
          "items": {
            "$ref": "#/$defs/MediaFileDto"
          }
        },
        "output": {
          "type": [
            "object",
            "null"
          ],
          "description": "Structured result data. For data generations (e.g. Suno lyrics text or created persona) this is the full result. For media generations it carries extra metadata when available — e.g. Suno music returns `tracks` with per-track title, duration, lyrics, tags and cover image URLs (order matches `files`)."
        },
        "createdTime": {
          "type": "string",
          "description": "ISO 8601 timestamp of task creation"
        },
        "errorMessage": {
          "type": [
            "string",
            "null"
          ],
          "description": "Error description (when status is failed)"
        }
      },
      "required": [
        "taskId",
        "status",
        "files",
        "createdTime"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/api-stock-com-task-status-response-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.