Assets API
The assets API stores files inside the daemon state root and returns stable identifiers that can be referenced from later session inputs.HTTP endpoints
GET /v1/assetsGET /v1/assets/{asset_id}GET /v1/assets/{asset_id}/rawPOST /v1/assets
GET /v1/assets supports an optional query filter over the asset identifier, file name, media type, or digest.
Create an asset
POST /v1/assets accepts one inline upload payload:
Asset views
Asset summaries returned byGET /v1/assets include:
asset_idmedia_typefile_namesha256byte_lengthcreated_at_ms
GET /v1/assets/{asset_id} returns the full asset view, including:
uri, an opaque daemon-managed raw storage referencetext_uri, an opaque daemon-managed derived-text reference when the daemon extracted prompt-ready text from the assetpreview_image_uri, an opaque daemon-managed visual preview reference when one existspreview_image_media_type, the MIME type for that preview
Supported media types
The daemon currently accepts:text/plaintext/csvtext/markdownapplication/jsonapplication/pdfapplication/dxfimage/pngimage/jpegaudio/wavaudio/webmaudio/mpegaudio/mp4audio/m4aaudio/l16audio/l24
Normalization behavior
Important daemon-side rules:- imports are deduplicated by normalized media type and content digest
- CSV aliases normalize to
text/csv - DXF aliases normalize to
application/dxf - MP3 aliases normalize to
audio/mpeg, and M4A aliases normalize toaudio/m4a - PNG and JPEG uploads are decoded and re-encoded into normalized daemon-owned image payloads
- PDFs and supported text documents keep their raw payloads and, when possible, a derived text representation
- supported audio assets can later gain a derived
text_uriwhen the daemon performs speech-to-text and a transcription backend is configured - DXF uploads also derive a PNG preview when the daemon can parse the plan
- derived document text is what text-only routes consume later during prompt rendering
GET /v1/assets/{asset_id}/raw when a client needs the exact persisted bytes rather than the metadata view.
Limits
Current limits enforced by the daemon:- maximum raw upload size: 12 MiB
- maximum normalized image size: 4 MiB
- maximum image edge: 2048 pixels
