NFT Metadata
Upload Media
POST
/
api
/
v1
/
nft
/
uploadMedia
Authorization
Body
curl --location --request POST 'https://groupos.xyz/api/v1/nft/uploadMedia' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <token>' \
--form 'media=@<file-path>' \
{
"success": true,
"mediaUrl": "https://..."
}
This route assists in creating and managing the media metadata for NFTs.
Prior to minting or updating the metadata of an NFT, upload your file here to
receive a mediaUrl
which you can pass into the metadata arguments for both
ERC-721 and ERC-1155 NFT collections.
Note that media will be not be transformed or compressed in our systems so take dilligence to find your preferable balance of file size contrasting quality and load speeds.
Body
File uploads require using the header content-type: multipart/form-data
media
file
The media file to upload.
Response
success
boolean
Indicates whether the call was successful.
mediaUrl
string
Url to retrieve the uploaded media file.
curl --location --request POST 'https://groupos.xyz/api/v1/nft/uploadMedia' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <token>' \
--form 'media=@<file-path>' \
{
"success": true,
"mediaUrl": "https://..."
}