Docs
Templates

Submit for review

Submit a DRAFT for review. The review runs asynchronously; poll the template or watch notifications.

POST
/v2/workspaces/{workspaceId}/templates/{id}/submit

Path Parameters

idnumber
workspaceIdnumber

Response Body

curl -X POST "https://lynx-api.trulyinbox.com/v2/workspaces/0/templates/0/submit"
{
  "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"
  }
}