Add Audio to your NFTs

In this guide, we will look into how you can add an audio or multiple audio files to your NFTs. Note that adding the audio will happen during the creation of the token-type (NFT template).
📘You need to have the URL of the audio address that you wish to add. If you need to upload your media, then learn how to store your media/images on quantum Servers.
Prerequisites
You already have an NFT collection (contract) created using the NFT-API. Read the Getting Started guide if you haven't.
contractAddress: The public address of your NFT contract.
Request Endpoint: reference
HTTP
POST /api/v2/token-types/creationsExample Request
We will use the create token-type endpoint and within the request body, we will specify the animationUrls array.
HTTP
POST /api/v2/token-types/creationsRequest Body
📘
In the
animationUrlsarray, we have defined the object withtype: audioand itsvalue(The URL of the audio address).You can add multiple objects within the
animationUrlsarray with images, videos, and even audio.Read more about
[animationUrls](https://docs.quantum.io/docs/animation-media)
JSON
Response Body
📘The token-type was created successfully with an audio included. You can check its status using the
result.creations.idparam.
JSON
Audio NFT Preview
Here is how the minted NFT will look with an audio file added. Please note that each platform might have a different way of visualizing the audio file to the user.

Last updated