Skip to content

SMS

Receive texts on a Cooper inbox.

Search first with GET /api/v1/phone-numbers/available?area_code=650. An empty list means that area code has no numbers in stock; by default the search then returns overlay or nearby numbers (fallback nearby) or any US number (fallback any). Provision a US local number with POST /api/v1/inboxes/{id}/phone-number and {"area_code":"650"} or a number from the search as {"phone_number":"+16505550100"}. Idempotency-Key replays the same number. GET reads it. DELETE releases it. The same account waits 30 days before provisioning that E.164 again, and can provision at most 3 numbers per 24 hours. A verified owner is required. Free returns HTTP 402. Starter caps at 3. Pro caps at 25. The number can receive SMS into the inbox.

FreeStarterPro
NumbersNoneUp to 3 at $3/mo each3 included, up to 25
SegmentsNone100 per number / month1,500 included, plus 100 per extra number
Extra segments—$10 per 500$10 per 500

Each added number is $3/month with 100 segments. Pro includes 3 numbers and 1,500 segments. Extra segments are $10 per 500. A billable number is added to your Stripe subscription (lookup key cooper_phone_number_monthly, prorated) before Cooper buys it; if Stripe refuses, nothing is bought and the call returns HTTP 503 sms_billing_failed. The provision response has billing.status included or billed. Release lowers the quantity. POST /api/v1/billing/sms-segments with {"packs":2} sets how many 500-segment packs (cooper_sms_500_monthly) are on the subscription; each adds 500 outbound segments a month. An increase is invoiced immediately. A decrease is not credited, and packs already used this period cannot be lowered. Grandfathered accounts need a Starter or Pro subscription for numbers. Lookup keys: cooper_phone_number_monthly, cooper_sms_500_monthly.

POST /api/v1/inboxes/{id}/sms with {"to","text"} returns HTTP 409 outbound_not_registered. A recipient who replied STOP returns HTTP 409 recipient_opted_out. The first message to a recipient adds an opt-out footer. Twilio answers STOP and HELP. Cooper stores STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT, OPTOUT and REVOKE as an opt-out for that number pair, and START, YES or UNSTOP clears it. Delivery is reported back: the message status becomes delivered, undelivered or failed, and delivery_events carries Twilio's error code. SHAFT content and URL shorteners are rejected. The body, including the footer, must be 320 characters or fewer. GET /api/v1/phone-numbers lists the account's numbers. GET /api/v1/phone-numbers/available searches inventory. List and read SMS threads with the existing thread routes and channel=sms.

Owners opt in at /sms-opt-in. POST /api/v1/inboxes/{id}/owners/{ownerId}/phone sends a confirmation code from the toll-free number after that opt-in. POST .../phone/confirm stores consent on the verified phone. Approval emails and the daily digest then text that phone when a send needs approval or unread mail is older than 24 hours. Those account notification texts are sent on Avatar 8 LLC's verified campaign. They have no action link. They count toward the monthly segment allowance. A failed text does not fail the email. Questions: ops@avatar33.com.

When SMS is on for the account, MCP adds cooper_provision_phone_number, cooper_get_phone_number, cooper_release_phone_number, cooper_send_sms, cooper_list_sms_threads, cooper_get_sms_thread, and cooper_wait_for_sms. initialize reports version 1.10.0. Provision and send are marked destructive and open-world. Release requires confirm true.