{"id":49,"date":"2026-07-08T10:18:26","date_gmt":"2026-07-08T10:18:26","guid":{"rendered":"https:\/\/blog.skndan.com\/jsontoimg\/?page_id=49"},"modified":"2026-11-17T13:33:51","modified_gmt":"2026-11-17T13:33:51","slug":"certificates","status":"publish","type":"page","link":"https:\/\/blog.skndan.com\/jsontoimg\/use-cases\/certificates\/","title":{"rendered":"Certificate Generator API: Create PDF &#038; PNG Certificates from JSON"},"content":{"rendered":"<h1>Certificate Generator API: Automated PDF &amp; PNG Certificates from JSON<\/h1>\n<p>jsontoimg provides a dedicated certificate generator API that automates the creation of verified completion certificates, diplomas, licenses, and accreditation awards. With one visual template in J2I Studio and one JSON object per recipient, our render engine fills names, dates, course titles, and scannable verification QR codes\u2014delivering high-resolution PNGs for LinkedIn and email, or vector-sharp PDFs for high-quality printing.<\/p>\n<h2>The Anatomy of an Automated Certificate<\/h2>\n<p>A robust digital certificate requires more than static text replacement. It requires dynamic vector handling, tamper-evident verification, and reliable batch delivery:<\/p>\n<ol>\n<li><strong>Auto-Fitting Text Layers<\/strong>: Names vary dramatically in length. In J2I Studio, set the <code>full_name<\/code> layer to auto-fit so long names like &quot;Mariana Fernanda de Oliveira Rodrigues&quot; shrink proportionately to fit the plate without overflowing margins.<\/li>\n<li><strong>Dynamic Code Layers (QR &amp; Barcodes)<\/strong>: Add a native <code>Code<\/code> layer set to format <code>qrcode<\/code>. You don&#39;t need to generate separate QR images\u2014simply pass the verification URL in <code>layers.qr.text<\/code>. jsontoimg draws the vector QR code directly onto the canvas.<\/li>\n<li><strong>Multi-Page Vector PDF Output<\/strong>: Print-ready certificates demand vector crispness. Specifying <code>&quot;format&quot;: &quot;pdf&quot;<\/code> generates vector-embedded PDF files billed at 1 credit per page.<\/li>\n<li><strong>Tamper-Evident Verification IDs<\/strong>: Mint an <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc9562\">RFC 9562<\/a> UUID (v4 or v7) per recipient. Print the credential ID on the plate and embed its verification URL into the QR code, turning the certificate into an unforgeable database record.<\/li>\n<\/ol>\n<h2>Generating a Single Certificate via REST<\/h2>\n<p>Issue an instant PDF or PNG certificate using <code>POST \/api\/v1\/render<\/code>:<\/p>\n<pre><code class=\"language-bash\">curl -X POST &quot;https:\/\/app.jsontoimg.com\/api\/v1\/render?wait=60&quot; \\\n  -H &quot;Authorization: Bearer $JSONTOIMG_API_KEY&quot; \\\n  -H &quot;Content-Type: application\/json&quot; \\\n  -d &#39;{\n    &quot;template&quot;: &quot;tpl_course_certificate&quot;,\n    &quot;version&quot;: 1,\n    &quot;format&quot;: &quot;pdf&quot;,\n    &quot;layers&quot;: {\n      &quot;recipient_name&quot;: { &quot;text&quot;: &quot;Ada Lovelace&quot; },\n      &quot;course_title&quot;: { &quot;text&quot;: &quot;Advanced Distributed Systems &amp; Cloud Architecture&quot; },\n      &quot;issue_date&quot;: { &quot;text&quot;: &quot;November 17, 2026&quot; },\n      &quot;credential_id&quot;: { &quot;text&quot;: &quot;CRD-9482-UUIDv7&quot; },\n      &quot;qr_code&quot;: { &quot;text&quot;: &quot;https:\/\/verify.example.com\/crd\/9482&quot; }\n    }\n  }&#39;\n<\/code><\/pre>\n<h2>Batch Processing: Issuing Hundreds of Certificates<\/h2>\n<p>When graduating a cohort of 200 or 2,000 students, avoid firing hundreds of isolated single requests. Use <code>POST \/api\/v1\/renders\/batch<\/code> to process jobs in chunks of up to 50 certificates per request:<\/p>\n<ul>\n<li><strong>Cohort of 200<\/strong>: Four sequential or parallel batches of 50 jobs.<\/li>\n<li><strong>Webhook Delivery<\/strong>: Receive a webhook notification (<code>render.completed<\/code>) when each batch finishes, or stream events via SSE.<\/li>\n<li><strong>Failures Never Count<\/strong>: Failed jobs do not consume credits; your application can simply re-queue failed IDs without double-billing.<\/li>\n<\/ul>\n<p>For a full code walkthrough on batching registration lists and handling webhook callbacks, read our <a href=\"https:\/\/jsontoimg.com\/blog\/certificate-generator-api-guide\">Batch Certificate Generation Guide<\/a>.<\/p>\n<h2>Print Legibility &amp; Contrast Standards<\/h2>\n<p>Certificates are frequently printed and framed. Ensure your template design conforms to accessible contrast standards:<\/p>\n<ul>\n<li>Maintain <a href=\"https:\/\/www.w3.org\/WAI\/WCAG21\/Understanding\/contrast-minimum.html\">WCAG 2.1 contrast minimums<\/a>: 4.5:1 for body copy and 3:1 for large display headers. Light gold text on cream paper often disappears when printed.<\/li>\n<li>Test edge cases in J2I Studio before running cohorts: verify names with diacritics, hyphenated surnames, and long course descriptions.<\/li>\n<\/ul>\n<h2>Related Resources &amp; Tutorials<\/h2>\n<ul>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/QR_code\">QR code (Wikipedia)<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\">All image generation use cases<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/certificate-of-completion-template-fields\">Certificate of completion template fields<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/tools\/free-certificate-generator\">Test our free certificate generator online<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/docs\/generate\/pdf\">PDF generation docs<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/name-badges\">Name badge generator<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/certificate-generator-api-guide\">Batch Certificate Generation Guide<\/a> \u2014 How to process registration CSVs into 50 PDFs at a time.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/how-to-create-a-certificate-generator-with-jsontoimg\">QR Code Verification Tutorial<\/a> \u2014 Step-by-step implementation of tamper-evident verification.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/product\/pdf-generation-api\">Programmatic PDF Generation API<\/a> \u2014 Multi-page PDF generation features and pricing.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/event-tickets\">Event Ticket Generator API<\/a> \u2014 Generate scannable passes and badges with QR codes.<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/pricing\">Explore Pricing<\/a> \u2014 Monthly tiers and lifetime non-expiring prepaid credit packs.<\/li>\n<\/ul>\n<h2>Frequently Asked Questions<\/h2>\n<h3>What is a certificate generator API?<\/h3>\n<p>A certificate generator API is a programmatic service that takes structured JSON data (names, course titles, dates, credential UUIDs) and dynamically renders personalized, high-resolution certificates (PNG, JPG, or PDF) based on visual templates.<\/p>\n<h3>Does jsontoimg support QR codes for verification?<\/h3>\n<p>Yes. With native Code layers, you specify format <code>qrcode<\/code> and provide the destination URL in <code>layers.&lt;layer_name&gt;.text<\/code>. The API renders the vector QR code directly onto the certificate without requiring external QR generation services.<\/p>\n<h3>Can I generate multi-page certificates or diplomas?<\/h3>\n<p>Yes. Templates designed with multiple pages in J2I Studio render directly as multi-page PDFs when requested with <code>&quot;format&quot;: &quot;pdf&quot;<\/code>. Each PDF page costs exactly 1 credit.<\/p>\n<h3>How does batching work for graduating classes?<\/h3>\n<p>You can submit up to 50 certificate render jobs in a single request to <code>POST \/api\/v1\/renders\/batch<\/code>. Track batch status via webhooks or server-sent events (SSE).<\/p>\n<h3>How much does certificate generation cost?<\/h3>\n<p>jsontoimg Starter is $29\/mo for 1,000 certificates or PDF pages ($0.029\/cert). Prepaid packs start at $5 for 250 certificates ($0.020\/cert) with credits that never expire.<\/p>\n<p><a href=\"https:\/\/app.jsontoimg.com\/login\">Get 25 free images \u2192<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An API certificate generator: name, course, date, and a QR Code layer. PNG for email or PDF billed per page.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":45,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-49","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":7,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/49\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/49\/revisions\/398"}],"up":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/45"}],"wp:attachment":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/media?parent=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}