Dtypes
Read, view, edit and create any stored value (a document, a recording, a tool result) by its handle. Values are handles: each is addressed by its content hash.
Every value is a dtype stored once under its handle,
<dtype>-<hash> (pdf-..., tree-..., audio-...): large
results, uploads and <attachment id="..."/> markers all carry
one. The stored value is never truncated, only its rendering is, and
it never changes: edit and create return new handles. An
unknown handle, or one owned by an entity the caller cannot read, is
a 404; read a handle in the organization of the call that produced
it. In a chat, ref may also be the tool_call_id of the result.
Read text with get_content (by path, range or query),
look at pages, images and clips with get_media, and ask info
what a handle is and where it came from. Any argument elsewhere may
name part of a stored value instead of copying it:
<ref id="<hash>" path="/json/pointer"/>.
Operations
- Create a value of any dtype from a source or a file, store it, and return its handle.
POST /Platform/dtypes/create - Edit a value into a new handle.
POST /Platform/dtypes/edit - Extract the fillable fields of a PDF or image form.
POST /Platform/dtypes/extract-form-fields - Read part of a value by handle.
POST /Platform/dtypes/get-content - Get a value by handle.
GET /Platform/dtypes/{dtype_hash} - Get a cached preview of a value.
GET /Platform/dtypes/{dtype_hash}/preview - Get cached previews of several values.
POST /Platform/dtypes/preview/batch - Download a value's raw bytes.
GET /Platform/dtypes/{dtype_hash}/raw - Get several values by handle.
POST /Platform/dtypes/batch - Render or slice a value for viewing.
POST /Platform/dtypes/get-media - Describe a handle and where it came from.
POST /Platform/dtypes/info - Resolve an address suggestion or free text into structured addresses.
GET /Platform/dtypes/resolve - Search a value's content (deprecated).
POST /Platform/dtypes/search-content - Suggest completions for an address or business.
GET /Platform/dtypes/suggest - Upload a file in one request.
POST /Platform/dtypes/upload - Validate a value against a dtype.
POST /Platform/dtypes/validate - Validate many values in one call.
POST /Platform/dtypes/validate-batch
Objects
AddressCandidate
line1: optional str. Street address.city: optional str. City.state: optional str. State or region.zip: optional str. Postal code.country: optional str. Country code.label: optional str. The full address as one line.relevance: optional float. Match confidence, 0..1 (1.0 for a place id).
CreateResponse
handle: str. New dtype handle ("<dtype>-<hash>").dtype: str. Dtype name that was constructed.
DtypeBatchResponse
dtypes: Dict[str, DtypeBatchEntry]. One entry per requested handle.
DtypeInfoResponse
handle: str. The described handle.dtype: optional str or null. Dtype name.description: optional str or null. Short shape description, e.g. "(tree, Boat, 12 leaves, depth 2)".type: optional str or null. The tree's type label.size_chars: optional int or null. Text size in characters, when textual.provenance: optional List[dict]. Provenance chain: this handle's record, then its parent's, ...
DtypePreview
hash: str. The dtype handle.dtype: str. Dtype name.content_type: optional str or null. Media type of the value.size: optional int or null. Byte length, when cached.needs_compute: optional bool. Whether some preview fields are not cached yet.missing: optional List[str] or null. Preview fields still to compute.failure: optional str or null. Why no preview could be built (unsupported dtype or load failure); fall back to get_dtype.audio: optional AudioPreview or null. Audio facts, for audio.image: optional ImagePreview or null. Image facts, for images.pdf: optional PdfPreview or null. PDF facts, for PDFs.file: optional FilePreview or null. File facts, for files.media_url: optional str or null. For audio, images, PDFs and files: a signed URL a browser element or new tab can load directly (mp3 for audio, with Range requests for seeking), bound to the organization the request acted in. A bearer link valid for one hour; null for other dtypes.
DtypePreviewBatchResponse
previews: Dict[str, DtypePreview]. One preview per requested handle.
DtypeResponse
hash: str. The dtype handle.dtype: str. Dtype name.is_binary: bool. Whether the value is binary (pdf/image/audio/file).content_type: optional str or null. Media type of the value.size: optional int or null. Byte length of a binary value, when known.value: optional str or null. The value of a text-backed dtype.preview: optional str or null. Agent-friendly rendering of a binary value: extracted text with locators and pointers to get_media for pixels.preview_parts: optional List[dict] or null. Structured RenderedMedia parts with inline image bytes omitted.metadata: optional dict or null. Stored dtype metadata.
DtypeSuggestResponse
supported: optional bool. False when the dtype has no suggestion provider.suggestions: optional List[DtypeSuggestion]. Suggestions, best first.
DtypeValidateBatchResponse
results: optional Dict[str, DtypeValidateResult]. Item key (or its position) to its validation result.
DtypeValidateResult
valid: bool. Whether the value is valid for the dtype.normalized: optional Any or null. JSON-safe normalized value the dtype would store, when valid.failures: optional List[str]. Why the value is invalid.
EditResponse
handle: str. The original handle, unchanged.edited_ref: optional str or null. Handle of the new, edited value.applied: optional List[dict]. Edits that were applied.skipped: optional List[dict]. Edits that were skipped, with reasons.engines: optional List[str]. Engines used to apply the edits.
ExtractFormFieldsResponse
handle: str. The extracted handle.fields: optional List[FormField]. Merged fields with stable ids.has_widgets: optional bool. Whether the document has real AcroForm widgets.engines: optional List[str]. Extraction engines that ran.
GetContentResponse
handle: str. Resolved handle; pass it back to read more narrowly.slices: optional str. Selected content with locators where the type has them.derived_handle: optional str or null. Handle of the stored selection when as_handle was set.mode_used: optional "grep" or "bm25" or "similarity" or "hybrid" or "match" or null. Search mode actually used: whatautoresolved to, else the mode requested. Null for a read without a query.rows: optional List[dict] or null. With hql: the result rows, one object per row keyed by column name. Null with as_handle (the rows are in derived_handle).columns: optional List[dict] or null. With hql: the result columns in order, each with name, kind (text, number, bool, date, datetime, phone) and the dtype a typed kind maps to.total_rows: optional int or null. With hql: rows the query produced before offset/limit.
GetMediaResponse
handle: str. Handle of the rendered value (a new handle for a PDF page selection).parts: optional List[dict]. RenderedMedia JSON dicts.