Get Asset upload URL
This endpoint enables you to upload a file to the resource. Returns a presigned URL and the asset’s public URL. Call PUT with the file as the body to upload the asset using the presigned URL.
Authorizations
Body
Schema for uploading an asset with organization, website, and user details.
The name of the file, must match the regex pattern (converted to lowercase)
"example.png"
UUID of the organization (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174222"
UUID of the website (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174111"
UUID of the user (optional, converted to lowercase)
"123e4567-e89b-12d3-a456-426614174333"
The file path, must be a valid enum value.
announcements
, images
, videos
, banners
, fonts
, posts
, profiles
, minting
, loyalty
"images"
Response
Response returned upon successful generation of the signed URL for uploading the file.
The pre-signed URL to be used for uploading the file.
"https://snag-assets.s3.us-west-2.amazonaws.com/organizations/123e4567-e89b-12d3-a456-426614174222/websites/123e4567-e89b-12d3-a456-426614174111/images/example.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ABJSSMZGO3T2ZKBVJOG2%2F20240702%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240702T072637Z&X-Amz-Expires=60&X-Amz-Signature=6f7952568b7861edd14afb0915870970c9b048ba5237f7a70a16b0f10b96587e&X-Amz-SignedHeaders=host&x-id=PutObject"
The URL of the uploaded file.
"https://local-snag-assets.s3.us-west-2.amazonaws.com/organizations/123e4567-e89b-12d3-a456-426614174222/websites/123e4567-e89b-12d3-a456-426614174111/images/example.png"
Was this page helpful?