Templates API
Retrieve All Templates
GET https://marketing.qreq.com/api/templates
curl --request GET \
--url 'https://marketing.qreq.com/api/templates' \
--header 'Authorization: Bearer {api_key}'
Retrieve Single Template
GET https://marketing.qreq.com/api/templates/{id}
curl --request GET \
--url 'https://marketing.qreq.com/api/templates/{id}' \
--header 'Authorization: Bearer {api_key}'
Create Template
POST https://marketing.qreq.com/api/templates
name(string, required)type(string, required, e.g., email, sms, whatsapp)content(string, required)
curl --request POST \
--url 'https://marketing.qreq.com/api/templates' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"name":"Welcome Template","type":"email","content":"Welcome to our platform"}'
Update Template
PUT https://marketing.qreq.com/api/templates/{id}
- Optional:
name(string) - Optional:
type(string, e.g., email, sms, whatsapp) - Optional:
content(string)
curl --request PUT \
--url 'https://marketing.qreq.com/api/templates/{id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"content":"Updated content"}'
Delete Template
DELETE https://marketing.qreq.com/api/templates/{id}
curl --request DELETE \
--url 'https://marketing.qreq.com/api/templates/{id}' \
--header 'Authorization: Bearer {api_key}'