Get an asset certificate
const url = 'https://api.mintall.ai/api/v1/mc4p/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/certificate';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mintall.ai/api/v1/mc4p/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/certificateGet the Mintall Certificate for Product (MC4P) data for an asset.
An authorized asset returns the full document. A not-authorized asset
(parent product not active) returns the identity-only document: the
mintall:contentCredentials, mintall:nft, verification and
proof blocks are omitted, not null.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Successful Response
Asset MC4P certificate as a mintall:-namespaced ImageObject.
This is the lossless full expansion of one entry in the product
certificate’s mintall:images[] array. It is the image node (merge key
contentUrl) rather than a DigitalDocument wrapper, so a crawler can
pivot from the on-page summary onto this document without remapping fields.
object
The canonical-source pointer for the document.
Mirrors the product cert’s mintall:status: visibility state lives on
mc4p_access_events, not here.
object
Schema.org/EntryPoint
object
object
Schema.org/EntryPoint
object
object
Example
{ "@context": [ "https://schema.org", { "mintall": "https://mintall.ai/ns/" } ], "@type": "ImageObject", "mintall:status": { "canonicalSource": { "@type": "EntryPoint", "description": "Canonical source for this certificate.", "httpMethod": "GET" } }, "mintall:contentCredentials": { "hasManifest": false }, "mintall:nft": { "@type": "PropertyValue", "name": "Blockchain Certification" }, "verification": { "canonicalSource": { "@type": "EntryPoint", "description": "Canonical source for this certificate.", "httpMethod": "GET" } }}Asset is not an image.
Asset not found, or it has no certificate.
Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}