Get an asset's image
GET
/mc4p/assets/{asset_id}/content
const url = 'https://api.mintall.ai/api/v1/mc4p/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/content';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/contentGet the C2PA-signed image an asset certificate describes.
This is the contentUrl a certificate carries for an asset. It redirects
to a short-lived download URL, so store the contentUrl, never the
Location. Send Accept: application/json to get {"url": ...}
instead.
An asset on a product that is not active returns 404, matching the
identity-only certificate, which carries no contentUrl.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”asset_id
required
Asset Id
string format: uuid
Responses
Section titled “Responses”With Accept: application/json: the download URL, no redirect.
Media typeapplication/json
PlatformApiAssetContentResponse
The download URL the content route redirects to.
object
url
required
Url
string
Examplegenerated
{ "url": "example"}Redirect to the image; the Location expires.
Asset not found, not active, or it has no signed image.
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}The image exists but a download URL could not be issued.