assets
public

Create Presigned Urls

Creates presigned URLs for uploading files associated with specific IDs.

This endpoint allows you to upload up to 20 files and associate each with an ID. It returns presigned URLs for uploading the files directly to the storage service.

Parameters

  • files (List[UploadFile]): List of files to be uploaded (maximum of 20 files).
  • ids (List[str]): List of IDs associated with the files.

Returns

Dict: A dictionary containing a message and a list of dictionaries mapping each ID to its presigned URL.

Example Response

{
    "message": "Files uploaded successfully.",
    "presigned_urls": [
        {
            "id1": "https://s3.amazonaws.com/your-bucket/tmp_filename1"
        },
        {
            "id2": "https://s3.amazonaws.com/your-bucket/tmp_filename2"
        }
    ]
}
post/v1/assets/presigned

Headers

API-Versionstring

Pass in an API version to guarantee a consistent response format.

The latest version should be used for all new API calls. Existing API calls should be updated to the latest version when possible.

Valid versions:

  • Latest API version (recommended): 2025-03

  • Previous API version (maintenance mode): 2025-02

If no API version header is included, the response format is considered unstable and could change without notice (not recommended).

Pass in an API version to guarantee a consistent response format.

The latest version should be used for all new API calls. Existing API calls should be updated to the latest version when possible.

Valid versions:

  • Latest API version (recommended): 2025-03

  • Previous API version (maintenance mode): 2025-02

If no API version header is included, the response format is considered unstable and could change without notice (not recommended).

Response

Successful Response

object required

Changes

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