Get Template
Retrieve details of a specific image template by its ID.
ℹ️
You will need to authenticate to use this API. See authentication.
Request
GET https://api.ojo.so/v1/template/:templateId
Path Parameters
Parameter | Type | Description |
---|---|---|
templateId | string | The unique identifier of the template |
curl --request GET \
--url https://api.ojo.so/v1/template/<Replace with template ID> \
--header 'Authorization: Bearer <API Key>'
Response
Successfully retrieved the template details.
{
"id": "template-uuid-1",
"name": "Template 1",
"html": "<html><body><h1>Template 1</h1></body></html>",
"variables": {...},
"previewUrl": "https://example.com/path/to/preview1.png",
"createdAt": "2023-08-30T12:34:56Z",
"updatedAt": "2023-08-30T12:34:56Z"
}