Skip to Content
Get Template

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

ParameterTypeDescription
templateIdstringThe 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": "...base64 encoded HTML...", "variables": {...}, "previewUrl": "https://example.com/path/to/preview1.png", "createdAt": "2023-08-30T12:34:56Z", "updatedAt": "2023-08-30T12:34:56Z" }