Certificate

An elegant certificate template for course completions, achievements, and awards.

Dimensions: 1200x630
Template ID: certificate

Properties

PropertyTypeRequiredMax LengthValidation
recipientName
Recipient name
stringYes50maxLength(50)
courseName
Course/achievement name
stringYes60maxLength(60)
description
Description
stringYes100maxLength(100)
completionDate
Completion date
stringYes30maxLength(30)
instructorName
Instructor/signatory name
stringYes40maxLength(40)
imageUrl
Seal/logo URL
string (URL)Yes-url (HTTPS only)
primaryColor
Primary color
string (hex)Yes-color (hex)
accentColor
Accent color
string (hex)Yes-color (hex)

Example

{
  "template": "certificate",
  "recipientName": "John Smith",
  "courseName": "Advanced Web Development",
  "description": "For successfully completing the course with distinction",
  "completionDate": "March 7, 2026",
  "instructorName": "Dr. Jane Anderson",
  "imageUrl": "https://example.com/seal.png",
  "primaryColor": "#1e3a8a",
  "accentColor": "#d4af37"
}

Code examples

const response = await fetch("https://assets.qbacode.com/api/v1/generate-asset", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
        "template": "certificate",
        "recipientName": "John Smith",
        "courseName": "Advanced Web Development",
        "description": "For successfully completing the course with distinction",
        "completionDate": "March 7, 2026",
        "instructorName": "Dr. Jane Anderson",
        "imageUrl": "https://example.com/seal.png",
        "primaryColor": "#1e3a8a",
        "accentColor": "#d4af37"
    })
});

if (response.ok) {
  const blob = await response.blob();
  const imageUrl = URL.createObjectURL(blob);
  document.getElementById("preview").src = imageUrl;
} else {
  const error = await response.json();
  console.error("Error:", error);
}