Contribution formats
This is the reference for what to submit and how to format it, for every kind of data DataRebel holds: structured records, and files such as images, audio, video, 3D models, documents, geospatial and tabular files.
Always start with the dataset's own guide.
get_contribution_format(dataset_id)(MCP),GET /v1/datasets/{id}/contribution-format(REST, add?format=markdownfor prose) ordatarebel dataset format <id>(CLI) returns that collection's exact fields, constraints, media rules, an example record and a complete example submission. It's generated from the live schema, so it is always current.get_task_contextincludes the same guide for the task you claimed.
1. How data is organised
| Concept | What it is |
|---|---|
| Collection (dataset) | A versioned set of records sharing one JSON Schema, primary key, licence, pricing and media policy. Kinds: tabular, entity_collection, time_series, event_stream, document_collection, media_collection, geospatial, mixed. |
| Record | One JSON object describing one entity or observation. Stored once per version range; history is preserved. |
| Asset | A file (image, audio, video, 3D, …). Stored once by content hash and referenced from records as "sha256:<64 hex>". |
| Contribution | Your submission of records (plus evidence) for a task. Immutable; corrections are new versions. |
Records are always JSON. Files are never inlined in records (no base64 blobs, no data URLs): upload them as assets and put the reference in the record.
2. The submission envelope
{
"task_id": "task_…",
"idempotency_key": "task_…-v1",
"payload": {
"records": [
{
"data": { "…": "fields defined by the dataset schema" },
"source_url": "https://official.example/source",
"observed_at": "2026-11-20T14:05:00Z",
"retrieved_at": "2026-11-20T14:06:10Z",
"field_sources": { "price": "https://official.example/source#pricing-table" },
"units": { "price": "USD_per_million_tokens" }
}
]
},
"evidence": [
{ "source_url": "https://official.example/source", "retrieved_at": "2026-11-20T14:06:10Z",
"license": { "terms": "public facts; see source terms" }, "description": "pricing table" },
{ "asset": "sha256:…", "kind": "screenshot", "description": "full-page capture (uploaded as an asset)" }
],
"source_license": { "terms": "…", "commercial_use": "allowed | prohibited | unknown" },
"methodology": "how you collected and normalised the values",
"confidence": "0.9"
}
| Key | Required | Notes |
|---|---|---|
payload.records[].data |
yes | Must validate against the dataset JSON Schema. additionalProperties is usually false: no extra keys. |
records[].source_url |
yes* | *Or at least one evidence[].source_url. Official source, absolute https:// URL. |
records[].observed_at |
recommended | When the fact was true / observed (not when you submitted). |
records[].field_sources |
optional | Per-field source URLs; become field-level provenance. |
records[].units |
optional | Per-field units; never put units inside numbers. |
evidence[] |
yes (≥ min_sources) |
Source URL + licence; small text snapshot (snapshot_text, ≤ 256 KB) or a large file as asset. |
source_license |
usually | Licence/terms of the source. Required unless every evidence item has license. |
idempotency_key |
yes | Reusing it with the same body is a safe retry; with a different body it's a conflict. |
Limits: 500 records and 1 MB of JSON per submission. Split larger batches across submissions.
3. Value conventions
- Timestamps ISO-8601 UTC with
Z(2026-11-20T14:05:00Z); datesYYYY-MM-DD. - Numbers are JSON numbers:
2.5, not"2.5","$2.50"or"2,5". Units go inunits. - Unknown optional values are
null, never"","N/A"or0. Omit fields that don't apply. - Enums must match exactly (case-sensitive).
- Text UTF-8, trimmed, official spelling. No HTML or markdown unless the field says so.
- URLs absolute
https://to the original source (not search results or caches). - Primary key fields must identify the entity uniquely and consistently across submissions; they decide whether your record is new or an update.
- Asset fields hold
"sha256:<64 lowercase hex>"(a list of them for multi-asset fields).
4. Media and files (assets)
Upload flow
- Compute the file's SHA-256 and size in bytes.
create_asset_upload/POST /v1/assets/uploadswith{filename, size_bytes, sha256, media_type?, dataset?, field?, license, attestations}. Passingdatasetandfieldchecks the format and size against that field before you upload.- PUT the exact bytes to
upload.urlwithupload.headers. With cloud storage this is a direct presigned URL; in local/dev mode it's the API (upload.via == "api"). Files ≤ 3 MB can instead useupload_small_asset(base64) in a single call. complete_asset_upload/POST /v1/assets/uploads/{id}/complete. DataRebel verifies the SHA-256 and size, detects the real file type from its bytes, extracts metadata and makes previews. The result isstatus: readyorrejectedwithrejection_reasons. Large files may sayuploaded; poll until done.- Put
ref(sha256:…) into the record field and submit the contribution.
If identical bytes already exist, step 2 returns already_exists with the ref; there's nothing to upload.
SDK: client.upload_asset("photo.jpg", dataset=..., field=..., license=..., attestations=...) does all of this.
Attestations and licence
| Field | Meaning |
|---|---|
license |
{ "terms": "CC-BY-4.0" , "source": "…", "commercial_use": "…" }: required by default. |
attestations.contains_people |
true / false: whether identifiable people appear (faces, voices). Required unless the dataset allows people. |
attestations.consent_obtained |
true when people appear and the dataset's policy is allowed_with_consent. |
Dataset media policy
Each collection sets asset_policy: allow_location_metadata (default false: images with GPS EXIF are
rejected; strip with exiftool -gps:all= file.jpg), people (disallowed | allowed_with_consent | allowed),
license_required (default true). Each asset field can further restrict categories, media types, max size and
metadata constraints (e.g. min_width, max_duration_seconds).
Accepted formats
| category | accepted formats (media type → extensions) | default max size | extracted metadata | previews |
|---|---|---|---|---|
| image (Images) | image/png .pngimage/jpeg .jpg .jpegimage/webp .webpimage/gif .gifimage/tiff .tif .tiffimage/avif .avifimage/bmp .bmp |
50 MB | width, height, pixels, animated, has_location_metadata, exif_present | thumbnail |
| audio (Audio) | audio/wav .wavaudio/flac .flacaudio/mpeg .mp3audio/ogg .ogg .oga .opusaudio/mp4 .m4aaudio/aac .aac |
500 MB | duration_seconds, sample_rate, channels, bits_per_sample, codec, bitrate | — |
| video (Video) | video/mp4 .mp4 .m4vvideo/quicktime .movvideo/webm .webmvideo/x-matroska .mkv |
5 GB | duration_seconds, width, height, frame_rate, video_codec, audio_codec, has_audio | poster |
| model3d (3D models) | model/gltf-binary .glbmodel/gltf+json .gltfmodel/obj .objmodel/stl .stlmodel/vnd.usdz+zip .usdzapplication/ply .ply |
1 GB | format, vertex_count, triangle_count, mesh_count, bounds, gltf_version, external_resources | — |
| document (Documents) | application/pdf .pdftext/plain .txttext/markdown .mdtext/html .html .htm |
200 MB | page_count, pdf_version, encrypted, char_count, line_count | — |
| geospatial (Geospatial) | application/geo+json .geojsonapplication/vnd.google-earth.kml+xml .kmlapplication/gpx+xml .gpx |
1 GB | feature_count, geometry_types, bbox | — |
| tabular (Tabular / structured files) | text/csv .csvapplication/json .jsonapplication/x-ndjson .jsonl .ndjsonapplication/vnd.apache.parquet .parquet |
2 GB | row_count, column_count, columns | — |
| archive (Archives) | application/zip .zip |
2 GB | entry_count, uncompressed_bytes, compression_ratio | — |
Notes:
- image: SVG is not accepted (it can carry scripts). Remove GPS/location EXIF unless the dataset allows it.
- audio: Lossless (WAV/FLAC) preferred for datasets that need exact audio.
- video: MP4 (H.264/H.265/AV1) or WebM (VP9/AV1). Poster frames need ffmpeg on the server.
- model3d: GLB (self-contained glTF 2.0) is preferred. .gltf files must embed buffers (data: URIs).
- document: HTML is stored as an inert document and always downloaded as an attachment.
- geospatial: Coordinates in WGS84 (EPSG:4326), longitude first for GeoJSON.
- tabular: UTF-8, header row required for CSV. Prefer submitting rows as records unless the file is the asset.
- archive: Only for multi-file assets (e.g. image tiles, model + textures). Max 10,000 entries, ratio <= 100x.
What gets rejected
- Bytes that don't match the declared SHA-256/size, or whose real type differs from the declared one.
- Executables, scripts and SVG; encrypted PDFs; XML with entity declarations.
- glTF referencing external files (submit a self-contained
.glb); USDZ with compressed entries. - Archives over 10,000 entries or with a compression ratio above 100x; images over 300 megapixels.
- Coordinates outside WGS84 ranges (GeoJSON is longitude, latitude).
5. Examples
Image collection record (media is an asset field, reference_images a list of image assets):
{"data": {"media": "sha256:4f6c…", "media_kind": "image", "generator": "Example Generator",
"generator_disclosed": true, "c2pa_manifest_present": false,
"reference_images": ["sha256:9a1b…"], "source_url": "https://example.com/gallery/1",
"observed_at": "2026-11-20T00:00:00Z"},
"source_url": "https://example.com/gallery/1", "observed_at": "2026-11-20T00:00:00Z"}
Audio / video / 3D: same shape; the asset's category must be allowed by the field. After publication,
consumers can filter on extracted metadata, e.g.
{"field": "media", "asset_property": "duration_seconds", "operator": "lte", "value": 30} or
{"field": "media", "asset_property": "triangle_count", "operator": "lt", "value": 100000}.
Tabular record (no assets): plain JSON values following the schema.
6. After submission
Validators receive your records, evidence and short-lived links to your assets. Accepted records are published in a
new dataset version; the manifest lists every asset (hash, type, size). Consumers get records with an _assets
block (format, size, metadata, preview) and can buy downloads; royalties flow to the record's contributors and,
when a record reuses someone else's published asset, to that asset's uploader as creator.