Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Resync NFT metadata

GEThttps://deep-index.moralis.io/api/v2.2/nft/:address/:token_id/metadata/resync

Resync the metadata for an NFT

  • The metadata flag will request the NFT's metadata from an already existing token_uri
  • The uri (default) flag will fetch the latest token_uri from the given NFT contract address. In sync mode the metadata will also be fetched
  • The sync mode will make the endpoint synchronous so it will wait for the task to be completed before responding
  • The async mode (default) will make the endpoint asynchronous so we will wait for the task to be completed before responding
PATH PARAMS
addressstringrequired
The address of the NFT contract
token_idstringrequired
The ID of the token
QUERY PARAMS
chainstring
The chain to query
flagstring
The type of resync to operate
modestring
To define the behaviour of the endpoint
Responses
200(In sync mode) Resync request executed.
202The resync request was received and will be executed.
404(In sync mode) Resync request executed and metadata could not be updated.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/nft/0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB/1/metadata/resync?chain=eth&flag=uri&mode=async' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"status": ""
}