GET Get One Templates
Base URLs
Demo URL: https://demoapi.openletterconnect.com/api/v1
Production URL: https://api.openletterconnect.com/api/v1
{{base_url}}/templates/{{id}}
Description
This endpoint is used to retrieve detailed information about a specific template by its ID. By providing the template ID, you can access attributes such as the template's title, URL, type, thumbnail, creator information, and associated product details. The response will include all relevant data related to the specified template, making it useful for users who need to view or manage individual templates.
AUTHORIZATION
Bearer Token
- Token:
{{jwt_token}}
Example Request
curl --location -g '{{base_url}}/templates/8'
Example Response
{
"message": "Success",
"data": {
"id": "8",
"title": "My Template 3",
"templateUrl": "https://api.openletterconnect.com/api/v1/s3/openletterconnect/org-1/user-1/templates/upload/json/1701792981367-template.json",
"templateType": "json",
"thumbnailUrl": "https://api.openletterconnect.com/api/v1/s3/openletterconnect/org-1/user-1/templates/upload/thumbnail/1701775937282-logo.png",
"creator": {
"id": "2",
"fullName": "Usman Iqbal"
},
"product": {
"id": "3",
"paperType": "60# Statement",
"paperSize": "8.5x11",
"deliveryType": "First Class",
"productType": "Professional letters",
"envelopeType": "#10 Grey",
"postageType": "Live",
"name": "Professional Letters, First Class",
"meta": null
}
}
}