SMS acceptance: proving it with a real key
Karta's SMS connector was built from Bird's documentation and tested against handwritten fixtures of Bird's answers and events. Only a first, partial run against the real API has been made (see below): no SMS has been delivered. These steps prove it with a real workspace key, once, by hand. You need the owner's Bird workspace key, the callback signing secret, a number the owner names for the test, and (for the reply) a number the workspace owns.
Write down at each step what you saw. Anything that differs from this page is a finding to fix, not to work around.
The run of 2026-11-13 (partial: no message was accepted)
Done once from a local Karta (module on, a local database; the module stays off
on live) with the owner's eu1 key, which has no sms_management:read and no
webhooks:read scope. Sections 1, 2 and 4 were followed; no SMS reached Bird's
network: both sends were refused by Bird's validation, so the count of messages
sent is 0.
Confirmed on 2026-11-13 (a real answer was seen):
- Region and host:
https://eu1.platform.bird.com/v1; the key of the other region is401. HeaderAuthorization: Bearer bk_...is accepted (it is the header, not a guess any more). GET /v1/sms/messagesanswers200with{"data": [], "next_cursor": null, "prev_cursor": null, "refresh_cursor": null};?reference=<x>is accepted and answers the same shape. Karta reads the list fromdata, and an empty list is "not there" (tested with the real answer).- Error bodies are
{"error": {"code", "name", "message", "type", "param", "request_id", "doc_url"}}.options.callback_urlmust behttps: anhttpaddress is422E01001ValidationError("URL scheme must be https"), so a Karta whose public address is not https cannot send (live is https; a local one needsKARTA_MESSAGING_PUBLIC_URL=https://...). A sender the workspace has not configured is422E12056SMSSenderNotConfigured("Add the sender under SMS senders before sending from it"). Both are permanent in Karta and leave the connector connected. - The rate limit is 60 sends a minute (
ratelimit-policy: "sms_send";q=60;w=60,ratelimit: "sms_send";r=59;t=29); noRetry-Afterwas seen (none was asked for). - Without
sms_management:readthe senders cannot be listed (403E02035InsufficientScope).
Wrong, fixed: the codes SMSDestinationNotEnabled and the like are the error's
name, not its code (the code is E+digits): Karta now recognises a recipient
error by the name too, and keeps the E-code as the error code.
Still unconfirmed (nothing was accepted, so nothing was seen): the 202 answer
(id, segments, cost), whether a repeated Idempotency-Key is answered with
the first message, the look-up with a message present, the states a message passes
through, the webhook (signature, event names, fields, sms.received's text field)
and the cost. These need a sender the workspace has: add the sender Shiloh
under SMS senders (or name one that exists) and run sections 2 to 4 again.
0. Before
- In Bird, make or find a workspace API key for the region (
bk_eu1_...orbk_us1_...). Check that the destination country is enabled in the workspace (otherwise Bird answers422 SMSDestinationNotEnabled). - Open the workspace's webhook/callback settings, rotate the callback signing
secret once, and read it (
whsec_...). Without the rotation Bird shows no secret. - Choose the sender: an alphanumeric one (3 to 11 characters) works for sending to most countries; the reply in step 5 needs a number the workspace owns.
- On Karta (
KARTA_MESSAGING=1): make a connector of kindbird_smswith the key, the secret and the sender (SMS through Bird). Check the server's country in Messaging settings if you will use a local number.
1. Authentication and the region
Send one SMS (step 2). If Bird answers 401, the header or the key is wrong:
the connector pauses with unauthorized. Check that Bird expects
Authorization: Bearer bk_... (the documentation names the key, not the header).
If it answers 421, the key is for the other region.
2. Send one SMS to the number the owner names
curl -sS https://karta.example/messaging/v1/messages \
-H "Authorization: Bearer $KARTA_KEY" -H 'Idempotency-Key: sms-acceptance-1' \
-H 'Content-Type: application/json' \
-d '{"to": "<the number>", "text": "Karta SMS test 1", "channels": ["sms"],
"reference": "sms-acceptance", "from": "<sender>"}'
Expect: 202; a few seconds later GET /messaging/v1/messages/<id> shows state: sent and a provider_id that looks like Bird's message id; the phone receives
the text with the sender you chose. In Bird's console the message exists with the
reference and the metadata karta_message_id.
3. The delivery report
Expect, within about a minute, state: delivered on the message and a
messaging.message.status webhook event (if you made a webhook) with channel: "sms" and a cost with an amount and currency. In the console the thread shows
the cost.
If the state stays sent: look at the connector page's last events, Karta's logs
for /messaging/v1/hooks/ and Bird's callback log. A 401 there means the
signing secret is wrong (rotate again and update the connector); no request at
all means Bird does not reach Karta's public address (KARTA_MESSAGING_PUBLIC_URL).
4. Idempotency, and what Karta does not trust
The lookup Karta makes after a server error or a timeout (GET /v1/sms/messages?reference=<attempt id>) is an assumption too: check that Bird answers it with the message you sent (the shape of the list is not in Bird's documentation; Karta reads results, data or items). If it does not, Karta treats the outcome as unknown and never sends again, which is safe but means a server error stops a message. Do not skip this check.
Repeat the exact request of step 2 with the same Idempotency-Key: Karta answers
202 with the header Idempotent-Replayed: true and the phone receives no
second text.
5. An inbound SMS
Needs a number the workspace owns. From the owner's phone, reply to that number.
Expect a messaging.message.received event and, in the console, a conversation
with the owner's number and the text. Check the exact field names Bird used in
the body (from, and the text field - Karta reads text, body and
content.text) against the delivery log in Bird; if the text is empty in Karta,
that field name is the finding.
6. Errors, on purpose
- Send to a number in a country that is not enabled: expect
failed, classpermanent, codeSMSDestinationNotEnabled. - Send with
"from": "ab": expectfailedwithinvalid_senderbefore any call. - Send with an alphanumeric sender to a destination that does not allow one:
expect
SMSAlphaNotSupported. - (If the owner agrees) empty the test wallet: expect
402,insufficient_balance, the connector paused, andUse againbringing it back after top-up.
7. The report
Record in docs/suite/release-1.0/karta-messaging.md: the key's region, the
header that worked, the real field names of sms.received, the cost shown, the
time of the delivery report, anything Bird did that this page did not say.