curl -X POST "https://api.foxreach.io/api/v1/templates" \ -H "X-API-Key: otr_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Follow-up Template", "subject": "Following up on my last email", "body": "Hi {{firstName}},\n\nI wanted to follow up on my previous email about..." }'
Copy
{ "data": { "id": "ctm_new456", "name": "Follow-up Template", "subject": "Following up on my last email", "body": "Hi {{firstName}},\n\nI wanted to follow up on my previous email about...", "category": "email", "createdAt": "2025-01-15T10:00:00", "updatedAt": "2025-01-15T10:00:00" }}
Templates
Create Template
Create a new email template.
POST
https://api.foxreach.io
/
api
/
v1
/
templates
Copy
curl -X POST "https://api.foxreach.io/api/v1/templates" \ -H "X-API-Key: otr_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Follow-up Template", "subject": "Following up on my last email", "body": "Hi {{firstName}},\n\nI wanted to follow up on my previous email about..." }'
Copy
{ "data": { "id": "ctm_new456", "name": "Follow-up Template", "subject": "Following up on my last email", "body": "Hi {{firstName}},\n\nI wanted to follow up on my previous email about...", "category": "email", "createdAt": "2025-01-15T10:00:00", "updatedAt": "2025-01-15T10:00:00" }}
curl -X POST "https://api.foxreach.io/api/v1/templates" \ -H "X-API-Key: otr_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Follow-up Template", "subject": "Following up on my last email", "body": "Hi {{firstName}},\n\nI wanted to follow up on my previous email about..." }'
Copy
{ "data": { "id": "ctm_new456", "name": "Follow-up Template", "subject": "Following up on my last email", "body": "Hi {{firstName}},\n\nI wanted to follow up on my previous email about...", "category": "email", "createdAt": "2025-01-15T10:00:00", "updatedAt": "2025-01-15T10:00:00" }}