Treasure Data · Schema

Job

An asynchronous query or import job in Treasure Data.

Customer Data PlatformCDPBig DataData WarehouseHivePrestoEnterpriseArtificial IntelligenceMarketingAnalytics

Properties

Name Type Description
job_id string Unique identifier for the job
type string Type of job
database string Database against which the job runs
query string SQL or HiveQL query string
status string Current status of the job
priority integer Job scheduling priority (-2 = lowest, 2 = highest)
result string Output connector URI for job results
created_at string
updated_at string
start_at string
end_at string
duration number Job execution duration in seconds
result_size integer Size of job result in bytes
num_records integer Number of records in the result
View JSON Schema on GitHub

JSON Schema

job.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/treasure-data/main/json-schema/job.json",
  "title": "Job",
  "description": "An asynchronous query or import job in Treasure Data.",
  "type": "object",
  "properties": {
    "job_id": {
      "type": "string",
      "description": "Unique identifier for the job"
    },
    "type": {
      "type": "string",
      "description": "Type of job",
      "enum": ["presto", "hive", "bulk_import"]
    },
    "database": {
      "type": "string",
      "description": "Database against which the job runs"
    },
    "query": {
      "type": "string",
      "description": "SQL or HiveQL query string"
    },
    "status": {
      "type": "string",
      "description": "Current status of the job",
      "enum": ["queued", "running", "success", "error", "killed"]
    },
    "priority": {
      "type": "integer",
      "description": "Job scheduling priority (-2 = lowest, 2 = highest)",
      "minimum": -2,
      "maximum": 2
    },
    "result": {
      "type": "string",
      "description": "Output connector URI for job results"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "start_at": {
      "type": "string",
      "format": "date-time"
    },
    "end_at": {
      "type": "string",
      "format": "date-time"
    },
    "duration": {
      "type": "number",
      "description": "Job execution duration in seconds"
    },
    "result_size": {
      "type": "integer",
      "description": "Size of job result in bytes"
    },
    "num_records": {
      "type": "integer",
      "description": "Number of records in the result"
    }
  },
  "required": ["job_id", "type"]
}

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/job"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.