Docs
Templates

Create a template

Create a DRAFT warmup template

POST
/v2/workspaces/{workspaceId}/templates

Path Parameters

workspaceIdnumber
namestring

Template name (trimmed; 3-60 chars; unique per workspace, case-insensitive).

subjectstring
Lengthlength <= 100
bodystring

Body in basic HTML (p, br, strong, em, u, ul, ol, li, and span with a preset font-family / font-size); plain text is accepted and becomes paragraphs. Anything heavier is rejected. Spintax and merge tags stay as text syntax.

Response Body

curl -X POST "https://lynx-api.trulyinbox.com/v2/workspaces/0/templates" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "subject": "string",    "body": "string"  }'
{
  "data": {
    "id": 0,
    "name": "string",
    "subject": "string",
    "body": "string",
    "status": "DRAFT",
    "improvedSubject": "string",
    "improvedBody": "string",
    "reviewExplanation": {},
    "reviewScore": 0,
    "createdByUserId": 0,
    "ownerName": "string",
    "labels": [
      {
        "id": 0,
        "name": "string"
      }
    ],
    "reviewStartedAt": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "statusChangedAt": "string",
    "approvedOnce": true,
    "pausedReason": "string"
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}