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.
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
API key passed in the header.
Body
Body
organizationIdstring<uuid>UUID of the organization (optional, converted to lowercase)
websiteIdstring<uuid>UUID of the website (optional, converted to lowercase)
userIdstring<uuid>UUID of the user (optional, converted to lowercase)
filePath"images" | "videos" | "banners" | "fonts" | "posts" | "profiles" | "minting" | "loyalty" | "tokenClaims" | "dapps"The file path, must be a valid enum value.
"images" | "videos" | "banners" | "fonts" | "posts" | "profiles" | "minting" | "loyalty" | "tokenClaims" | "dapps"fileNamestringrequiredThe name of the file, must match the regex pattern (converted to lowercase) and have a valid extension.
^[^\/\\]+$fileSizenumberrequiredSize of the file in bytes. Uploaded file must match this file size. 1mb for images and 10mb for videos.
Response
200
signedUrlstring<uri>requiredThe pre-signed URL to be used for uploading the file.
urlstring<uri>requiredThe URL of the uploaded file.