---
title: "Create Job"
method: POST
path: "/api/data/jobs"
tags: ["datahub"]
---

# Create Job

`POST /api/data/jobs`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/data/jobs`
- Auth: HTTP bearer

Create a new data job.

Accepts either an explicit `source_id` UUID, or — when `source_id` is
omitted — auto-resolves the source from `config.source_type` (and
optional `config.provider`). The latter shape lets agents fire one POST
instead of querying `/api/data/sources` first.

## Request body

- DataJobCreateRequest: Request schema for creating a data job. `source_id` is optional. When omitted, the API resolves the data source from `config.source_type` (and optional `config.provider`) — agents that only know they want e.g. an Apify actor can pass `config={"source_type": "actor", "actor_id": "clockworks/tiktok-scraper", ...}` without first looking up the source UUID.
  - `agent_id` string, uuid, required
  - `name` string, required
  - `description` string
  - `source_id` string, uuid, nullable
  - `config` object
  - `schedule` string, nullable
  - `schema_hint` object, nullable
  - `storage_config` object
  - `created_by` string
  - `credit_cost_estimate` integer

## Response `200`

Successful Response

- DataJobResponse: Response schema for a data job.
  - `id` string, uuid, required
  - `agent_id` string, uuid, required
  - `user_id` string, uuid, required
  - `team_id` string, uuid, nullable, required
  - `name` string, required
  - `description` string, required
  - `source_id` string, uuid, required
  - `config` object, required
  - `schedule` string, nullable, required
  - `schema_hint` object, nullable, required
  - `schema_status` string, required
  - `storage_config` object, required
  - `status` string, required
  - `created_by` string, required
  - `approved_by` string, uuid, nullable, required
  - `credit_cost_estimate` integer, required
  - `last_run_at` string, date-time, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
