Skip to main content
PATCH
/
api
/
v1
/
templates
/
{template_id}
curl -X PATCH "https://api.foxreach.io/api/v1/templates/ctm_abc123" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Updated: Quick question about {{company}}"
  }'
{
  "data": {
    "id": "ctm_abc123",
    "name": "Cold Intro - SaaS",
    "subject": "Updated: Quick question about {{company}}",
    "body": "Hi {{firstName}},\n\nI noticed that {{company}} is...",
    "category": "email",
    "createdAt": "2025-01-10T08:00:00",
    "updatedAt": "2025-01-16T09:00:00"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.foxreach.io/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

template_id
string
required
The unique identifier of the template.

Request Body

All fields are optional.
name
string
Template name.
subject
string
Email subject line.
body
string
Email body content.
category
string
Template category.
curl -X PATCH "https://api.foxreach.io/api/v1/templates/ctm_abc123" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Updated: Quick question about {{company}}"
  }'
{
  "data": {
    "id": "ctm_abc123",
    "name": "Cold Intro - SaaS",
    "subject": "Updated: Quick question about {{company}}",
    "body": "Hi {{firstName}},\n\nI noticed that {{company}} is...",
    "category": "email",
    "createdAt": "2025-01-10T08:00:00",
    "updatedAt": "2025-01-16T09:00:00"
  }
}

Errors

StatusDescription
404Template not found

Rate Limit

  • 100 requests per minute, per API key. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (unix epoch seconds).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).
For client-side patterns (Retry-After, exponential backoff, monitoring X-RateLimit-Remaining), see Rate Limiting.