Validate VMC or CMC logo format (encoded)
PUT https://www.digicert.com/services/v2/util/validate-vmc-encoded-logo
Use this endpoint to check if the format of an SVG file is compatible with the requirements for Verified Mark Certificates (VMC) or a Common Mark Certificate (CMC).
Notice
This endpoint accepts compressed logo data, formatted as a base64-encoded string. To submit raw SVG data, use the Validate VMC or CMC logo format (SVG) endpoint.
Request format
To submit a request to the Validate VMC or CMC logo format (encoded) endpoint:
Set the
Content-Type
header toapplication/json
.Format the data for your SVG logo as a compressed, base64-encoded string.
For example, in a bash shell, run this command:
echo '<XML content for your SVG logo>' | gzip | base64
In the JSON payload, submit the string containing the encoded logo data as the value of the
logo
parameter.Omit the custom header
X-DC-DEVKEY
. This operation does not require authentication with an API key.
Response format
If the logo format meets VMC or CMC requirements, the endpoint returns a status of 204 No Content.
If there is a formatting issue with the logo, the endpoint returns an error message with a status of 400 Bad Request. The error message provides:
A brief description of the formatting issue.
The line and column number where you can find the problem when you open the file in a text editor.
To learn more about formatting a logo for VMC or CMC, visit Getting Ready for BIMI: Prep Your Logo.
To resolve issues with the SVG format of your logo:
Open the SVG file in a text editor.
Update the content at the locations displayed in the error messages.
Save the file.
Submit another request with your updated SVG data.
Example requests and responses
Request parameters
Name | Req/Opt | Type | Description |
---|---|---|---|
logo | required | string | Compressed logo data, formatted as a base64-encoded string. |