Send a single iMessage, SMS, or email from a Tuco line
POST/api/messagesmessage – text content to send.messageType – one of:
"imessage""sms""email"fromLineId – ID of the Tuco line that should send the message.recipientPhone or recipientEmail, orleadId (to send to an existing lead using their stored contact details).recipientName – friendly name for the recipient.scheduledDate – ISO‑8601 timestamp to schedule the send in the future.batchId – free‑form string to group related messages (for reporting).timezone – IANA timezone (for example, "America/New_York").sendWindowStart / sendWindowEnd – e.g. "09:00" and "17:00".allowedDaysOfWeek – array of day indexes or names (e.g. [1,2,3,4,5] for weekdays).201 Created)
400 with a clear error message. If the workspace is in read‑only mode (for example, due to billing) you receive a 402 with code: "READ_ONLY". Authentication failures return 401.