Assets
Assets are files you upload or that are generated through the API. They serve as inputs for runs (product photos, logos) and outputs produced by them (images, videos). Use these endpoints to upload, retrieve metadata, and download files across the full asset lifecycle — and to organize them with tags, bookmarks, archiving, and deletion.
Upload, retrieve, download, and organize files used as inputs or generated as outputs.
List assets with pagination and optional filtering.
This endpoint returns a paginated list of assets belonging to your organization, newest first. You can optionally filter by a specific list of asset IDs, by the flow or run that produced them, by tag, and by bookmark / archive state.
What the default listing contains:
Without filters, the list holds the assets generated by your runs. Uploaded files are left out unless you pass
tags,bookmarked,archivedorasset_ids, or look one up byexternal_id.Archived assets are hidden unless you pass
archivedorasset_ids.Deleted assets, and assets still being processed (a fresh upload or a just-generated output), are never listed.
external_idis the exception: it returns the asset in any state.
Primary Use Cases:
Browse your generated assets with pagination
Retrieve specific assets using their IDs
Fetch every asset produced by a given flow across all its runs
Fetch every asset produced by a specific run
Verify the provenance of a known asset list (combine
asset_idswithflow_idorrun_id)
Pagination Parameters:
limit: Maximum number of items to return (default: 20, max: 100)cursor: Cursor for pagination (optional)
Filtering Parameters:
asset_ids: Optional list of UUIDs to filter specific assets (repeatable).flow_id: Optional flow UUID. Returns all assets produced by that flow across every run.run_id: Optional run UUID. Returns all assets produced by that single run.external_id: Optional reference id you set at upload. Exact lookup that ignores every other filter.tags: Optional tag names (repeatable). Returns assets carrying at least one of them (case-insensitive OR). Unknown tag names match nothing.bookmarked: Optional boolean. Filters by bookmark state.archived: Optional boolean.trueshows only archived assets,falseonly non-archived. When omitted, archived assets are hidden (except withasset_ids).The filters compose as an AND. For example,
?asset_ids=<id>&flow_id=<flow>returns the asset only if it was produced by that flow; otherwise the response is empty.flow_idandrun_idonly match assets that were produced by a flow run, so uploaded assets are excluded when either filter is set.
Response: Returns a CursorPaginatedResponse object containing:
data: List ofAssetSummaryobjects. Each asset includesflow_idandrun_idso you can correlate it back to the flow / run that produced it.has_more: Indicates if there are more results availablenext_cursor: Cursor for the next page
Access Control:
Only assets belonging to your organization are returned, except that
asset_idsalso returnspublic/sharedassets from other organizationsAssets not found or not accessible are silently excluded
Errors:
401: Missing or invalid API key
422: Invalid parameter (malformed UUID,
limitoutside 1-100)429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
Restrict the result to this list of asset IDs (repeat the parameter to pass several). Combines with every other filter as an AND. Unlike the default listing, this lookup also returns uploads, archived assets (unless archived=false), and public/shared assets owned by other organizations.
Return only assets produced by this flow (across all its runs). Uploaded assets are never returned by this filter.
Deprecated alias for flow_id, removed 31 December 2026. Ignored when flow_id is also supplied.
Return only assets produced by this specific run. Uploaded assets are never returned by this filter.
Return the asset you uploaded with this reference id. Use after a 409 on upload to fetch the existing asset. This is an exact lookup: all other filters are ignored when it is set, and the asset is returned whatever its state — still processing, archived, or deleted.
Return only assets carrying at least one of these tag names (case-insensitive, OR semantics). Repeat the parameter to pass several: ?tags=summer&tags=hero. Names that match no tag in your organization match nothing.
true returns only bookmarked assets, false only non-bookmarked ones. Omit to ignore the bookmark state.
true returns only archived assets, false only non-archived ones. Omit to hide archived assets (the default), except with asset_ids, which returns them unless this is false.
Maximum number of items to return
20Cursor for pagination (from next_cursor)
Active organization ID for multi-org support
Successful Response
Validation error (validation_error)
GET /api/public/v1/assets/ HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"external_id": "text",
"asset_type": "reference",
"media_type": "image",
"media_extension": "png",
"visibility": "public",
"bookmarked": false,
"archived": false,
"tags": [
"text"
],
"downloaded": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "text",
"large_url": "text",
"flow_id": "123e4567-e89b-12d3-a456-426614174000",
"run_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"has_more": true,
"next_cursor": "text"
}Retrieve complete metadata for a specific asset.
This endpoint returns detailed information about an asset, including its metadata, access URLs, and processing information. Use this when you need complete asset details rather than just summary information.
Unlike the listing, this returns an asset in any state: one still being processed, and one that has been deleted (it comes back with archived: true, and its download answers 410).
Parameters:
asset_id: UUID of the asset to retrieve
Response: Returns a complete Asset object with all AssetSummary fields plus:
asset_metadata: Dictionary with processing metadata and technical detailsis_flow_output_sample: Whether this asset is a sample from a flow executionblur_hash: Hash for progressive image loading (images and videos)
Access Control:
Asset must be owned by the authenticated user's organization, or
Asset must have "public" or "shared" visibility
Errors:
401: Missing or invalid API key
404: Asset not found or access denied
422:
asset_idis not a valid UUID429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
ID of the asset
Active organization ID for multi-org support
Successful Response
Complete asset with all metadata.
Unique asset identifier
Client-supplied reference id provided at upload, if any
Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)
Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)
File extension of the stored file: png, jpg, mp4, pdf, etc.
Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)
Whether the asset is bookmarked
falseWhether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns
falseTag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)
Whether a download link has ever been requested for this asset, through the API or the Pletor web app
falseWhen the asset was created
When the asset was last modified
Signed URL to the full asset file. It expires (at most one hour after the response), so re-fetch the asset instead of storing it. While a generated asset is still processing, this is the provider's own short-lived URL
Stable CDN URL for a preview: a WebP rendition fitting 700x700 for images, a PNG poster frame for videos. Null for audio and other files. While an asset is still processing it is the provider's short-lived URL for images and null for videos
ID of the flow that produced this asset. Null for uploaded assets.
ID of the run that produced this asset. Null for uploaded assets.
Whether this asset is a sample output displayed on the flow card
falseBlurHash string for progressive image loading. Null until processing completes, and for audio and other files
Deprecated alias for flow_id, removed 31 December 2026.
Validation error (validation_error)
GET /api/public/v1/assets/{asset_id} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"external_id": "text",
"asset_type": "reference",
"media_type": "image",
"media_extension": "png",
"visibility": "public",
"bookmarked": false,
"archived": false,
"tags": [
"text"
],
"downloaded": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "text",
"large_url": "text",
"flow_id": "123e4567-e89b-12d3-a456-426614174000",
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"asset_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"is_flow_output_sample": false,
"blur_hash": "text"
}Soft-delete an asset.
Marks the asset as deleted (and archived) so it stops appearing in listings and can no longer be downloaded or modified: its download, PATCH and tag endpoints answer 410. The record is kept, so GET /assets/{asset_id} and GET /assets?external_id= still return it, with archived: true. Its external_id stays claimed. There is no API to restore a deleted asset. An asset still being processed can be deleted.
Parameters:
asset_id: UUID of the asset to delete
Access Control:
Asset must be owned by the authenticated user's organization. Assets from other organizations are reported as
404rather than deleted.
Response:
204 No Contenton success
Errors:
401: Missing or invalid API key
404: Asset not found or access denied
410: Asset has already been deleted
422:
asset_idis not a valid UUID429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
ID of the asset
Active organization ID for multi-org support
Successful Response
No content
Validation error (validation_error)
DELETE /api/public/v1/assets/{asset_id} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
No content
Update an asset's organization flags.
Use this endpoint to bookmark/unbookmark and archive/unarchive an asset. Fields omitted from the request body, or sent as null, are left unchanged; an empty body returns the asset as it is.
Request body:
bookmarked: Optional boolean.truebookmarks the asset,falseremoves the bookmark.archived: Optional boolean.truearchives the asset (it disappears from default listings; retrieve it withGET /assets?archived=true),falseunarchives it.
Response: Returns the complete updated Asset object.
Access Control:
Asset must be owned by the authenticated user's organization. Assets from other organizations are reported as
404rather than updated.
Errors:
401: Missing or invalid API key
404: Asset not found or access denied
409:
archived: truewas sent while the asset is still being processed — retry once processing has completed (bookmarking is allowed meanwhile)410: Asset has been deleted
422: Invalid request body (a field is not a boolean) or malformed
asset_id429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
ID of the asset
Active organization ID for multi-org support
Fields an API client can update on an asset. Omitted fields are unchanged.
Set to true to bookmark the asset, false to remove the bookmark. Omit or send null to leave it unchanged
Set to true to archive the asset, false to unarchive it. Omit or send null to leave it unchanged. Archiving an asset still being processed returns 409
Successful Response
Complete asset with all metadata.
Unique asset identifier
Client-supplied reference id provided at upload, if any
Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)
Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)
File extension of the stored file: png, jpg, mp4, pdf, etc.
Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)
Whether the asset is bookmarked
falseWhether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns
falseTag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)
Whether a download link has ever been requested for this asset, through the API or the Pletor web app
falseWhen the asset was created
When the asset was last modified
Signed URL to the full asset file. It expires (at most one hour after the response), so re-fetch the asset instead of storing it. While a generated asset is still processing, this is the provider's own short-lived URL
Stable CDN URL for a preview: a WebP rendition fitting 700x700 for images, a PNG poster frame for videos. Null for audio and other files. While an asset is still processing it is the provider's short-lived URL for images and null for videos
ID of the flow that produced this asset. Null for uploaded assets.
ID of the run that produced this asset. Null for uploaded assets.
Whether this asset is a sample output displayed on the flow card
falseBlurHash string for progressive image loading. Null until processing completes, and for audio and other files
Deprecated alias for flow_id, removed 31 December 2026.
Validation error (validation_error)
PATCH /api/public/v1/assets/{asset_id} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"bookmarked": true,
"archived": true
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"external_id": "text",
"asset_type": "reference",
"media_type": "image",
"media_extension": "png",
"visibility": "public",
"bookmarked": false,
"archived": false,
"tags": [
"text"
],
"downloaded": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "text",
"large_url": "text",
"flow_id": "123e4567-e89b-12d3-a456-426614174000",
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"asset_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"is_flow_output_sample": false,
"blur_hash": "text"
}Add tags to an asset.
Tags are named labels scoped to your organization, shared with the Pletor web app. Adding a tag name that doesn't exist yet creates it automatically; names are matched case-insensitively, and tags already on the asset are skipped, so this endpoint is safe to retry. Leading and trailing whitespace is trimmed. A name matching an existing tag reuses it with that tag's original casing: once Summer exists, adding summer attaches Summer.
An asset that is still being processed (for example a fresh upload) can be tagged straight away.
Request body:
tags: Non-empty list of tag names to add (1-50 characters each, after trimming).
Response: Returns the complete updated Asset object; its tags field reflects all tags now on the asset.
Retrieval: Filter assets by tag with GET /assets?tags=<name> (repeatable, matches assets carrying any of the given tags). An asset appears there once its processing has completed.
Access Control:
Asset must be owned by the authenticated user's organization.
Errors:
401: Missing or invalid API key
404: Asset not found or access denied
410: Asset has been deleted
422: Empty
tagslist, or a tag name that is blank or longer than 50 characters429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
ID of the asset
Active organization ID for multi-org support
Tag names to add to an asset.
Tag names to add (at least one; 1-50 characters each after trimming surrounding whitespace; case-insensitive). Tags that don't exist yet in your organization are created automatically; tags already on the asset are skipped.
Successful Response
Complete asset with all metadata.
Unique asset identifier
Client-supplied reference id provided at upload, if any
Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)
Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)
File extension of the stored file: png, jpg, mp4, pdf, etc.
Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)
Whether the asset is bookmarked
falseWhether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns
falseTag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)
Whether a download link has ever been requested for this asset, through the API or the Pletor web app
falseWhen the asset was created
When the asset was last modified
Signed URL to the full asset file. It expires (at most one hour after the response), so re-fetch the asset instead of storing it. While a generated asset is still processing, this is the provider's own short-lived URL
Stable CDN URL for a preview: a WebP rendition fitting 700x700 for images, a PNG poster frame for videos. Null for audio and other files. While an asset is still processing it is the provider's short-lived URL for images and null for videos
ID of the flow that produced this asset. Null for uploaded assets.
ID of the run that produced this asset. Null for uploaded assets.
Whether this asset is a sample output displayed on the flow card
falseBlurHash string for progressive image loading. Null until processing completes, and for audio and other files
Deprecated alias for flow_id, removed 31 December 2026.
Validation error (validation_error)
POST /api/public/v1/assets/{asset_id}/tags HTTP/1.1
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"tags": [
"text"
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"external_id": "text",
"asset_type": "reference",
"media_type": "image",
"media_extension": "png",
"visibility": "public",
"bookmarked": false,
"archived": false,
"tags": [
"text"
],
"downloaded": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "text",
"large_url": "text",
"flow_id": "123e4567-e89b-12d3-a456-426614174000",
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"asset_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"is_flow_output_sample": false,
"blur_hash": "text"
}Remove a tag from an asset.
The tag is matched by name, case-insensitively. Only the link between the asset and the tag is removed — the tag itself remains available in your organization. Removing a tag the asset doesn't carry succeeds as a no-op, so this endpoint is safe to retry.
Parameters:
asset_id: UUID of the assettag_name: Name of the tag to remove (URL-encode names containing spaces or special characters)
Response:
204 No Contenton success
Access Control:
Asset must be owned by the authenticated user's organization.
Errors:
401: Missing or invalid API key
404: Asset not found, access denied, or no tag with this name exists in your organization
410: Asset has been deleted
422:
asset_idis not a valid UUID429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
ID of the asset
Name of the tag to remove, matched case-insensitively. URL-encode names containing spaces or special characters.
Active organization ID for multi-org support
Successful Response
No content
Validation error (validation_error)
DELETE /api/public/v1/assets/{asset_id}/tags/{tag_name} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
No content
Upload an asset file.
This endpoint handles the complete asset upload process in a single request: send your file and get back the created asset, with asset_type: reference.
Request (multipart/form-data):
file: The file to upload (required, up to 40 MB). Set the part'sContent-Typeto the file's real MIME type — the type is read from that header, not from the file's content. The file's name only picks between extensions that share a MIME type (.ai/.eps,.jpg/.jpeg).visibility: Accepted for compatibility; uploads are currently always stored as"private"(only accessible by your organization).filename: Optional display filename, used as the downloaded file's name. Defaults to the uploaded file's own name.external_id: Optional client-supplied reference id (≤255 chars), unique per organization. Makes the upload safe to retry — reusing a key returns409instead of a duplicate asset; fetch the existing one viaGET /assets?external_id=.
Supported File Types:
Images: png, jpg/jpeg, webp, gif, svg, heic, heif, avif
Video: mp4, mov, webm
Audio: mp3, wav
Documents and other files: pdf, docx, xlsx, pptx, csv, txt, json, md, html, css, js, xml, yaml/yml, zip, ai, eps, ttf, otf, woff, woff2
Response: Returns the created Asset object (with external_id echoed). Its id can be passed to a run straight away — the run waits for processing to finish.
Processing: The asset is processed in the background after upload (resizing, previews, metadata extraction). Until processing completes, its url / large_url may not resolve yet, GET /assets/{asset_id}/download answers 425, the asset is left out of GET /assets listings (find it with GET /assets/{asset_id} or GET /assets?external_id=), and it cannot be archived. It can already be tagged, bookmarked or deleted.
Errors:
400: Missing or unsupported file type (see above), or file cannot be read
401: Missing or invalid API key
409:
external_idalready used by another asset (don't retry; GET it instead)413: File larger than 40 MB. Rejected by the gateway before it reaches the API, so the body is not the usual JSON error envelope.
422: Missing
filepart, orexternal_idlonger than 255 characters429: Rate limit exceeded — retry after the
Retry-Afterheader500: Server error during upload or processing
503: Storage service temporarily unavailable
API key for authentication
Active organization ID for multi-org support
The file to upload. Its type is taken from this part's Content-Type header, which must name a supported type; application/octet-stream or a missing type is rejected with 400.
Requested visibility. Uploads are currently always stored as private, whatever this value is.
privateDisplay filename, used as the name of the downloaded file. Defaults to the uploaded file's own name.
Optional client-supplied reference id, unique per organization. Reusing one returns 409; fetch the existing asset via GET /assets?external_id=. Makes the upload safe to retry without creating a duplicate.
Successful Response
Complete asset with all metadata.
Unique asset identifier
Client-supplied reference id provided at upload, if any
Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)
Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)
File extension of the stored file: png, jpg, mp4, pdf, etc.
Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)
Whether the asset is bookmarked
falseWhether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns
falseTag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)
Whether a download link has ever been requested for this asset, through the API or the Pletor web app
falseWhen the asset was created
When the asset was last modified
Signed URL to the full asset file. It expires (at most one hour after the response), so re-fetch the asset instead of storing it. While a generated asset is still processing, this is the provider's own short-lived URL
Stable CDN URL for a preview: a WebP rendition fitting 700x700 for images, a PNG poster frame for videos. Null for audio and other files. While an asset is still processing it is the provider's short-lived URL for images and null for videos
ID of the flow that produced this asset. Null for uploaded assets.
ID of the run that produced this asset. Null for uploaded assets.
Whether this asset is a sample output displayed on the flow card
falseBlurHash string for progressive image loading. Null until processing completes, and for audio and other files
Deprecated alias for flow_id, removed 31 December 2026.
Validation error (validation_error)
POST /api/public/v1/assets/upload/ HTTP/1.1
X-Api-Key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 77
{
"file": "text",
"visibility": "private",
"filename": "text",
"external_id": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"external_id": "text",
"asset_type": "reference",
"media_type": "image",
"media_extension": "png",
"visibility": "public",
"bookmarked": false,
"archived": false,
"tags": [
"text"
],
"downloaded": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "text",
"large_url": "text",
"flow_id": "123e4567-e89b-12d3-a456-426614174000",
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"asset_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"is_flow_output_sample": false,
"blur_hash": "text"
}Get a download link for an asset's file.
The response does not carry the file itself. It is a text/event-stream body holding one event, data: <url>, where <url> is a signed link to the file. Fetch that URL (no API key needed) to get the bytes; it is served as an attachment named after the asset's filename and expires after one hour, so request a fresh link rather than storing it. Each call marks the asset as downloaded.
Primary Use Cases:
Download generated images/videos from completed flow executions
Retrieve uploaded assets for local processing or display
Parameters:
asset_id: Asset UUID identifiersvg: Optional boolean.trueconverts a raster image to SVG and links to the converted file (experimental; SVG sources and non-image assets are returned unchanged)
Access Control:
Same access rules as
GET /assets/{asset_id}: owned by your organization, orpublic/shared
Errors:
401: Missing or invalid API key
404: Asset not found or access denied
410: Asset has been deleted, or its file is no longer available
422: Asset processing failed (re-upload the file), SVG conversion is not available for this asset, or malformed
asset_id425: Asset is still being processed — retry in a moment
429: Rate limit exceeded — retry after the
Retry-Afterheader
API key for authentication
ID of the asset
true vectorizes a raster image and returns a URL to the SVG version. Ignored for SVG sources and non-image assets, which are served as they are.
Active organization ID for multi-org support
A text/event-stream body holding a single event whose data is a signed download URL, valid for one hour.
Validation error (validation_error)
GET /api/public/v1/assets/{asset_id}/download HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*
data: https://…/assets/<asset_id>.png?X-Amz-…
Last updated

