Retrieve a template and its JSON Schema
GET
header
AuthorizationBearer <token>Authorization: Bearer dr_live_… or dr_test_…
slug*stringOK
application/json- response
id*stringobject*unknownslug*stringname*stringstatus*stringValue in
"draft""published"latest_version*number|nullrequired_fields*array<string>language*stringDefault language, used when a render names none.
languages*array<string>Every language the template renders in (pass one as language), default first. From the latest published version, or the draft if never published.
updated_at*stringFormat
date-timejson_schema*sample_data*curl -X GET 'https://druckling-nine.vercel.app/v1/templates/string'Example Response200
{ "id": "string", "object": "template", "slug": "string", "name": "string", "status": "draft", "latest_version": 0, "required_fields": [ "string" ], "language": "string", "languages": [ "string" ], "updated_at": "2019-08-24T14:15:22Z", "json_schema": { "property1": null, "property2": null }, "sample_data": { "property1": null, "property2": null }}