8 Templates · PDF / JPG / PNG · Instant Download
Generate professional certificates instantly.
Fill in the details, pick a template and format, then download your certificate.
Follow our WhatsApp Channels
Overview
CertSter exposes a single endpoint: /api/certificate.
Use GET to list templates, and POST to generate a certificate.
The POST endpoint streams the file back directly — no polling needed.
Filename is auto-set to Certificate_<Name>_<Template>-Ahm7xMakki.pdf.
Endpoints
GET
/api/certificate?action=templates
Returns the full list of available certificate templates with their IDs.
RESPONSE
{
"success": true,
"count": 8,
"templates": [
{ "id": 1, "name": "Modern" },
{ "id": 2, "name": "Dark Background" },
...
]
}
POST
/api/certificate
Generates a certificate and streams back the file binary directly. Takes 3–8 seconds.
Field Type Status Description
name string required Recipient's full name
date string required Date shown on the certificate
signature string required Signing authority name
details string required Body text / reason for the certificate
templateId number required Template number 1–8 (from /api/certificate?action=templates)
format string optional "pdf" (default), "jpg", or "png"
returnUrl boolean optional If true, returns JSON with the render URL instead of the file stream
CURL — get URL only (returnUrl: true) Copy
RESPONSE HEADERS (file stream)
Content-Type: application/pdf
Content-Disposition: attachment; filename="Certificate_Muhammad_Makki_Modern-Ahm7xMakki.pdf"
Content-Length: <bytes>
X-Template-Name: Modern
X-File-Name: Certificate_Muhammad_Makki_Modern-Ahm7xMakki.pdf
RESPONSE — returnUrl: true
{
"success": true,
"renderUrl": "https://...",
"template": "Modern",
"format": "pdf",
"fields": { "name": "Muhammad Makki", "date": "01/01/2025", "signature": "Dr. Smith" }
}
Error codes
400
Missing or invalid fields — response includes required fields list
502
Templated API did not return a render URL — retry
500
Internal server error
405
Wrong HTTP method — use GET or POST