Certificate / business card / flyer
About this tool
How to use it
- Choose this tool.
- Choose what to make: certificate, business card or flyer.
- Fill in the texts, such as the name, title and date.
- Pick the look and colours, and add a logo if you like, then press Generate.
- Download the design.
What you get back
Try Certificate / business card / flyer in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/render/designs" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'design=certificate' \
-F 'fields={"recipient":"Ada Lovelace","title":"of Achievement"}' \
-F 'template=classic'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.designs({
"design": "certificate",
"fields": "{\"recipient\":\"Ada Lovelace\",\"title\":\"of Achievement\"}",
"template": "classic"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->designs([
'design' => 'certificate',
'fields' => '{"recipient":"Ada Lovelace","title":"of Achievement"}',
'template' => 'classic',
]);
echo $result->requestId;