AI message drafts
Ready writes draft texts for you from a short description. You review them and send the one you like.
#Write message drafts
Writes up to 5 draft texts from a short description. Costs 5 × your per-segment rate (no carrier fee). Needs the send_sms permission.
Parameters
Idempotency-Keystring · header- Send one to retry without a second charge: a repeat with the same key returns the first answer. A
4xxisn’t stored, so a corrected retry with the same key goes through. descriptionstringRequired- What the message should say. Up to 2000 characters. The only field accepted.
Returns
datastring[]- Usually 5 drafts. Rarely, an item is a stray line such as "Reply STOP to opt out.", so drop very short items.
credits_remaininginteger | null- Next to
data, not inside it.nullwhen Ready couldn’t read your balance after writing the drafts. The drafts are still good.
Errors
| HTTP | Code | When |
|---|---|---|
| 200 | generation_refused | Breaks texting rules. Not refunded. The body has "success": false and "refused": true. |
| 400 | description_required | description is missing or empty (Describe the message you want us to write.). |
| 400 | invalid_field | description is longer than 2000 characters, or isn’t text. |
| 400 | unknown_field | A field other than description. |
| 402 | insufficient_balance | Balance too low (Insufficient balance. Top up in Billing.). |
| 402 | client_card_required | Instead of insufficient_balance on a sub-account that pays with its own card and has not added one yet. Add one in Billing. |
| 402 | BILLING_PAST_DUE | Payment failed and no balance left, or the account was closed. FRAUD_HOLD during a security review. |
| 500 | generation_failed | Refunded. Retry. If the refund also failed, error says the credits weren’t returned; contact support and we put them back. |