Event
Professional template for event tickets, conferences, concerts, and webinars.
Dimensions: 1200x630
Template ID: event
Properties
| Property | Type | Required | Max Length | Validation |
|---|---|---|---|---|
eventNameEvent name | string | Yes | 60 | maxLength(60) |
eventDateEvent date | string | Yes | 40 | maxLength(40) |
eventTimeEvent time | string | Yes | 40 | maxLength(40) |
venueVenue/location | string | Yes | 80 | maxLength(80) |
attendeeNameAttendee name | string | Yes | 50 | maxLength(50) |
ticketTypeTicket type | string | Yes | 30 | maxLength(30) |
imageUrlQR code URL | string (URL) | Yes | - | url (HTTPS only) |
primaryColorPrimary color | string (hex) | Yes | - | color (hex) |
accentColorAccent 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);
}