Library

Start a chunked Library upload (large-file transport)

For files above the proxy cap: records a pending asset and returns presigned part URLs pointing straight at object storage. Finish with the multipart complete call. When identical content already exists in the Library the response carries existing (deduplicated=true) instead of an upload session — skip the transfer.

post/workspaces/{workspaceId}/library/multipart/initiate

Request

  • Base URL
    https://api.rendley.com/v1
  • Auth
    API key in header Authorization

Path parameters

workspaceIdstring required

Workspace ID

Request body

durationnumber
file_hashstring required

FileHash is required: multipart bytes go client→bucket, so the client is the only party that ever holds the full stream — every completed library row must carry its content hash (XXH3-64, 16 hex chars).

file_sizeinteger required
mime_typestring
original_file_namestring
part_countinteger required
source'uploaded' | 'export'

Source provenance; clients may claim "uploaded" (default) or "export".

transientboolean

Transient uploads are scratch input for an AI job: never listed as a Library asset, unmetered, removed by the daily stale-upload sweep. Reference by upload id only.

Example request

{
  "file_hash": "c6c8ec4f9a6fdd9d"
}

Response

OK

metaunknown

Example response

{
  "data": {
    "existing": {
      "file_hash": "c6c8ec4f9a6fdd9d",
      "media_id": "c448b6e3-2b78-4bda-b369-d1afc6aec07f"
    },
    "media_id": "c448b6e3-2b78-4bda-b369-d1afc6aec07f"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.