Event

Professional template for event tickets, conferences, concerts, and webinars.

Dimensions: 1200x630
Template ID: event

Properties

PropertyTypeRequiredMax LengthValidation
eventName
Event name
stringYes60maxLength(60)
eventDate
Event date
stringYes40maxLength(40)
eventTime
Event time
stringYes40maxLength(40)
venue
Venue/location
stringYes80maxLength(80)
attendeeName
Attendee name
stringYes50maxLength(50)
ticketType
Ticket type
stringYes30maxLength(30)
imageUrl
QR code 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": "event",
  "eventName": "Tech Summit 2026",
  "eventDate": "March 15, 2026",
  "eventTime": "9:00 AM - 6:00 PM",
  "venue": "Convention Center - San Francisco",
  "attendeeName": "Alex Johnson",
  "ticketType": "VIP Access",
  "imageUrl": "https://example.com/qr-code.png",
  "primaryColor": "#7c3aed",
  "accentColor": "#ec4899"
}

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": "event",
        "eventName": "Tech Summit 2026",
        "eventDate": "March 15, 2026",
        "eventTime": "9:00 AM - 6:00 PM",
        "venue": "Convention Center - San Francisco",
        "attendeeName": "Alex Johnson",
        "ticketType": "VIP Access",
        "imageUrl": "https://example.com/qr-code.png",
        "primaryColor": "#7c3aed",
        "accentColor": "#ec4899"
    })
});

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);
}