For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

get

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, archived or asset_ids, or look one up by external_id.

  • Archived assets are hidden unless you pass archived or asset_ids.

  • Deleted assets, and assets still being processed (a fresh upload or a just-generated output), are never listed. external_id is 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_ids with flow_id or run_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. true shows only archived assets, false only non-archived. When omitted, archived assets are hidden (except with asset_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_id and run_id only 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 of AssetSummary objects. Each asset includes flow_id and run_id so you can correlate it back to the flow / run that produced it.

  • has_more: Indicates if there are more results available

  • next_cursor: Cursor for the next page

Access Control:

  • Only assets belonging to your organization are returned, except that asset_ids also returns public / shared assets from other organizations

  • Assets not found or not accessible are silently excluded

Errors:

  • 401: Missing or invalid API key

  • 422: Invalid parameter (malformed UUID, limit outside 1-100)

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Query parameters
asset_idsstring · uuid[] · nullableOptional

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.

flow_idstring · uuid · nullableOptional

Return only assets produced by this flow (across all its runs). Uploaded assets are never returned by this filter.

agent_idstring · uuid · nullableOptionalDeprecated

Deprecated alias for flow_id, removed 31 December 2026. Ignored when flow_id is also supplied.

run_idstring · uuid · nullableOptional

Return only assets produced by this specific run. Uploaded assets are never returned by this filter.

external_idstring · nullableOptional

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.

tagsstring[] · nullableOptional

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.

bookmarkedboolean · nullableOptional

true returns only bookmarked assets, false only non-bookmarked ones. Omit to ignore the bookmark state.

archivedboolean · nullableOptional

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.

limitinteger · min: 1 · max: 100Optional

Maximum number of items to return

Default: 20
cursorstring · nullableOptional

Cursor for pagination (from next_cursor)

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
200

Successful Response

application/json
has_morebooleanRequired
next_cursorstring · nullableOptional
get/v1/assets/
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"
}

Get Asset

get

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 details

  • is_flow_output_sample: Whether this asset is a sample from a flow execution

  • blur_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_id is not a valid UUID

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
asset_idstring · uuidRequired

ID of the asset

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
200

Successful Response

application/json

Complete asset with all metadata.

idstring · uuidRequired

Unique asset identifier

external_idstring · nullableOptional

Client-supplied reference id provided at upload, if any

asset_typestring · enumRequired

Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)

Possible values:
media_typestring · enumRequired

Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)

Possible values:
media_extensionstring · enumRequired

File extension of the stored file: png, jpg, mp4, pdf, etc.

Possible values:
visibilitystring · enumRequired

Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)

Possible values:
bookmarkedbooleanOptional

Whether the asset is bookmarked

Default: false
archivedbooleanOptional

Whether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns

Default: false
tagsstring[]Optional

Tag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)

downloadedbooleanOptional

Whether a download link has ever been requested for this asset, through the API or the Pletor web app

Default: false
created_atstring · date-timeRequired

When the asset was created

updated_atstring · date-timeRequired

When the asset was last modified

urlstringRequired

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

large_urlstring · nullableOptional

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

flow_idstring · uuid · nullableOptional

ID of the flow that produced this asset. Null for uploaded assets.

run_idstring · uuid · nullableOptional

ID of the run that produced this asset. Null for uploaded assets.

is_flow_output_samplebooleanOptional

Whether this asset is a sample output displayed on the flow card

Default: false
blur_hashstring · nullableOptional

BlurHash string for progressive image loading. Null until processing completes, and for audio and other files

agent_idstring · uuid · nullableRead-onlyRequiredDeprecated

Deprecated alias for flow_id, removed 31 December 2026.

get/v1/assets/{asset_id}
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"
}

Delete Asset

delete

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 404 rather than deleted.

Response:

  • 204 No Content on success

Errors:

  • 401: Missing or invalid API key

  • 404: Asset not found or access denied

  • 410: Asset has already been deleted

  • 422: asset_id is not a valid UUID

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
asset_idstring · uuidRequired

ID of the asset

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
204

Successful Response

No content

delete/v1/assets/{asset_id}
DELETE /api/public/v1/assets/{asset_id} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*

No content

Update Asset

patch

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. true bookmarks the asset, false removes the bookmark.

  • archived: Optional boolean. true archives the asset (it disappears from default listings; retrieve it with GET /assets?archived=true), false unarchives 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 404 rather than updated.

Errors:

  • 401: Missing or invalid API key

  • 404: Asset not found or access denied

  • 409: archived: true was 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_id

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
asset_idstring · uuidRequired

ID of the asset

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Body

Fields an API client can update on an asset. Omitted fields are unchanged.

bookmarkedboolean · nullableOptional

Set to true to bookmark the asset, false to remove the bookmark. Omit or send null to leave it unchanged

archivedboolean · nullableOptional

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

Responses
200

Successful Response

application/json

Complete asset with all metadata.

idstring · uuidRequired

Unique asset identifier

external_idstring · nullableOptional

Client-supplied reference id provided at upload, if any

asset_typestring · enumRequired

Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)

Possible values:
media_typestring · enumRequired

Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)

Possible values:
media_extensionstring · enumRequired

File extension of the stored file: png, jpg, mp4, pdf, etc.

Possible values:
visibilitystring · enumRequired

Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)

Possible values:
bookmarkedbooleanOptional

Whether the asset is bookmarked

Default: false
archivedbooleanOptional

Whether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns

Default: false
tagsstring[]Optional

Tag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)

downloadedbooleanOptional

Whether a download link has ever been requested for this asset, through the API or the Pletor web app

Default: false
created_atstring · date-timeRequired

When the asset was created

updated_atstring · date-timeRequired

When the asset was last modified

urlstringRequired

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

large_urlstring · nullableOptional

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

flow_idstring · uuid · nullableOptional

ID of the flow that produced this asset. Null for uploaded assets.

run_idstring · uuid · nullableOptional

ID of the run that produced this asset. Null for uploaded assets.

is_flow_output_samplebooleanOptional

Whether this asset is a sample output displayed on the flow card

Default: false
blur_hashstring · nullableOptional

BlurHash string for progressive image loading. Null until processing completes, and for audio and other files

agent_idstring · uuid · nullableRead-onlyRequiredDeprecated

Deprecated alias for flow_id, removed 31 December 2026.

patch/v1/assets/{asset_id}
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 Asset Tags

post

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 tags list, or a tag name that is blank or longer than 50 characters

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
asset_idstring · uuidRequired

ID of the asset

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Body

Tag names to add to an asset.

tagsstring[] · min: 1Required

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.

Responses
200

Successful Response

application/json

Complete asset with all metadata.

idstring · uuidRequired

Unique asset identifier

external_idstring · nullableOptional

Client-supplied reference id provided at upload, if any

asset_typestring · enumRequired

Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)

Possible values:
media_typestring · enumRequired

Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)

Possible values:
media_extensionstring · enumRequired

File extension of the stored file: png, jpg, mp4, pdf, etc.

Possible values:
visibilitystring · enumRequired

Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)

Possible values:
bookmarkedbooleanOptional

Whether the asset is bookmarked

Default: false
archivedbooleanOptional

Whether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns

Default: false
tagsstring[]Optional

Tag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)

downloadedbooleanOptional

Whether a download link has ever been requested for this asset, through the API or the Pletor web app

Default: false
created_atstring · date-timeRequired

When the asset was created

updated_atstring · date-timeRequired

When the asset was last modified

urlstringRequired

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

large_urlstring · nullableOptional

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

flow_idstring · uuid · nullableOptional

ID of the flow that produced this asset. Null for uploaded assets.

run_idstring · uuid · nullableOptional

ID of the run that produced this asset. Null for uploaded assets.

is_flow_output_samplebooleanOptional

Whether this asset is a sample output displayed on the flow card

Default: false
blur_hashstring · nullableOptional

BlurHash string for progressive image loading. Null until processing completes, and for audio and other files

agent_idstring · uuid · nullableRead-onlyRequiredDeprecated

Deprecated alias for flow_id, removed 31 December 2026.

post/v1/assets/{asset_id}/tags
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 Asset Tag

delete

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 asset

  • tag_name: Name of the tag to remove (URL-encode names containing spaces or special characters)

Response:

  • 204 No Content on 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_id is not a valid UUID

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
asset_idstring · uuidRequired

ID of the asset

tag_namestringRequired

Name of the tag to remove, matched case-insensitively. URL-encode names containing spaces or special characters.

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
204

Successful Response

No content

delete/v1/assets/{asset_id}/tags/{tag_name}
DELETE /api/public/v1/assets/{asset_id}/tags/{tag_name} HTTP/1.1
X-Api-Key: YOUR_API_KEY
Accept: */*

No content

Upload Asset

post

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's Content-Type to 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 returns 409 instead of a duplicate asset; fetch the existing one via GET /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_id already 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 file part, or external_id longer than 255 characters

  • 429: Rate limit exceeded — retry after the Retry-After header

  • 500: Server error during upload or processing

  • 503: Storage service temporarily unavailable

Authorizations
X-Api-KeystringRequired

API key for authentication

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Body
filestringRequired

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.

visibilitystringOptional

Requested visibility. Uploads are currently always stored as private, whatever this value is.

Default: private
filenamestring · nullableOptional

Display filename, used as the name of the downloaded file. Defaults to the uploaded file's own name.

external_idstring · max: 255 · nullableOptional

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.

Responses
200

Successful Response

application/json

Complete asset with all metadata.

idstring · uuidRequired

Unique asset identifier

external_idstring · nullableOptional

Client-supplied reference id provided at upload, if any

asset_typestring · enumRequired

Asset role: reference (a file you uploaded), intermediate (produced mid-run), or output (a run's final result)

Possible values:
media_typestring · enumRequired

Media category: image, video, audio, file, or design (an HTML artboard, downloadable as a zip or a rendered image)

Possible values:
media_extensionstring · enumRequired

File extension of the stored file: png, jpg, mp4, pdf, etc.

Possible values:
visibilitystring · enumRequired

Visibility level: private (your organization only), or public / shared (readable by any authenticated caller that has the asset ID)

Possible values:
bookmarkedbooleanOptional

Whether the asset is bookmarked

Default: false
archivedbooleanOptional

Whether the asset is archived. Also true for a deleted asset, which GET /assets/{asset_id} still returns

Default: false
tagsstring[]Optional

Tag names applied to this asset, in their stored casing, sorted alphabetically (case-insensitive)

downloadedbooleanOptional

Whether a download link has ever been requested for this asset, through the API or the Pletor web app

Default: false
created_atstring · date-timeRequired

When the asset was created

updated_atstring · date-timeRequired

When the asset was last modified

urlstringRequired

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

large_urlstring · nullableOptional

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

flow_idstring · uuid · nullableOptional

ID of the flow that produced this asset. Null for uploaded assets.

run_idstring · uuid · nullableOptional

ID of the run that produced this asset. Null for uploaded assets.

is_flow_output_samplebooleanOptional

Whether this asset is a sample output displayed on the flow card

Default: false
blur_hashstring · nullableOptional

BlurHash string for progressive image loading. Null until processing completes, and for audio and other files

agent_idstring · uuid · nullableRead-onlyRequiredDeprecated

Deprecated alias for flow_id, removed 31 December 2026.

post/v1/assets/upload/
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"
}

Download Asset

get

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 identifier

  • svg: Optional boolean. true converts 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, or public / 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_id

  • 425: Asset is still being processed — retry in a moment

  • 429: Rate limit exceeded — retry after the Retry-After header

Authorizations
X-Api-KeystringRequired

API key for authentication

Path parameters
asset_idstring · uuidRequired

ID of the asset

Query parameters
svgboolean · nullableOptional

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.

Header parameters
X-Organization-Idstring · nullableOptional

Active organization ID for multi-org support

Responses
200

A text/event-stream body holding a single event whose data is a signed download URL, valid for one hour.

text/event-stream
stringOptional
get/v1/assets/{asset_id}/download
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