Verify a product certificate
POST
/mc4p/products/{product_id}/verify
const url = 'https://api.mintall.ai/api/v1/mc4p/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/verify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"productUrl":"example","document":{"productID":"example","url":"example","mintall:issuedFor":{"domain":"example","productID":"example"},"proof":{"jwt":"example"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.mintall.ai/api/v1/mc4p/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/verify \ --header 'Content-Type: application/json' \ --data '{ "productUrl": "example", "document": { "productID": "example", "url": "example", "mintall:issuedFor": { "domain": "example", "productID": "example" }, "proof": { "jwt": "example" } } }'Verify that the product certificate is authorized for the requesting domain.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”product_id
required
Product Id
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ProductVerificationRequest
Request body for product certificate verification.
object
productUrl
required
Producturl
string
document
Any of:
SubmittedProductDocument
The MC4P product document as a verifier found it on a page.
proof present means a full document (the signature checks run). proof
absent means an identity-only document. Unknown keys are ignored so any
serialization of the document validates.
object
mintall:issuedFor
proof
Any of:
SubmittedProof
object
jwt
required
Jwt
string
null
null
Examplegenerated
{ "productUrl": "example", "document": { "productID": "example", "url": "example", "mintall:issuedFor": { "domain": "example", "productID": "example" }, "proof": { "jwt": "example" } }}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ProductVerificationResponse
object
status
required
Status
string
productId
required
Productid
string
checks
required
ProductVerificationChecksResponse
Per-check verification results.
None means the check was not evaluated for this request (for example the
signature checks when no document was submitted), as opposed to False,
which means the check ran and failed. Agents reading this response must not
treat skipped checks as failures.
object
warnings
required
Warnings
Array<string>
errors
required
Errors
Array<string>
Example
{ "status": "verified"}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": {} } ]}