Retrieve a saved template as JSON for use in your own application. The current /api/generate endpoint returns template data. PDF, PNG, and JPG export runs in the LinkoPDF editor.
Getting started
API key and template ID
Open your account settings in the editor to manage your API key. Use the identifier of a template saved to the same account. Template access is restricted to its owner.
Authentication
Send the key from your backend in the Authorization header. Keep it out of public frontend code.
Authorization: Bearer YOUR_API_KEY
Retrieve template data
POST /api/generate
Send a JSON body with templateId. The endpoint looks up the template for the authenticated account and returns its saved template_data.
POST https://linkopdf.com/api/generate
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{"templateId": "YOUR_TEMPLATE_ID"}
Successful response
{
"success": true,
"template": { }
}
The template value above is abbreviated; the actual response contains your saved template data. The endpoint does not return PDF bytes or a hosted download URL, and it does not merge a supplied data object into the template.