Bird: what the real API answered (partial acceptance, 2026-11-13) #96

Merged
calvin merged 2 commits from messaging-bird-real into master 2026-11-13 14:34:40 +00:00
Owner

Real run against Bird eu1 from a local Karta (module on, local database, key read from a file at run time, never logged; all deleted after). Two sends were made; Bird accepted none (0 messages sent): 422 E01001 (callback URL must be https) and, after fixing that locally, 422 E12056 SMSSenderNotConfigured (sender "Shiloh" is not configured in the workspace; the key cannot list senders).

Confirmed on 2026-11-13: host eu1.platform.bird.com/v1, Authorization: Bearer, GET /sms/messages[?reference=] shape {"data": [], "next_cursor"...} (Karta reads data), error body {"error": {"code","name","message","type","param","request_id","doc_url"}}, 60 sends/min. Wrong, fixed: the documented descriptive codes (SMSDestinationNotEnabled...) are the error's name; a recipient error is now recognised by name too. Fixtures are the real bodies (no key, no number). Also: Conversations.ensure loads the schema before String.to_existing_atom (a flaky missing-atom failure on a first reply).

Still unconfirmed (nothing was accepted): the 202 answer, idempotency replay, look-up with a message, states, webhooks, inbound. The guide lists them and what is needed: add the sender in Bird, rerun sections 2 to 4.

Checks: format, credo --strict, compile --warnings-as-errors, docs, messaging suites (272 tests).

🤖 Generated with Claude Code

Real run against Bird eu1 from a local Karta (module on, local database, key read from a file at run time, never logged; all deleted after). Two sends were made; **Bird accepted none** (0 messages sent): `422 E01001` (callback URL must be https) and, after fixing that locally, `422 E12056 SMSSenderNotConfigured` (sender "Shiloh" is not configured in the workspace; the key cannot list senders). Confirmed on 2026-11-13: host `eu1.platform.bird.com/v1`, `Authorization: Bearer`, `GET /sms/messages[?reference=]` shape `{"data": [], "next_cursor"...}` (Karta reads `data`), error body `{"error": {"code","name","message","type","param","request_id","doc_url"}}`, 60 sends/min. Wrong, fixed: the documented descriptive codes (`SMSDestinationNotEnabled`...) are the error's `name`; a recipient error is now recognised by name too. Fixtures are the real bodies (no key, no number). Also: `Conversations.ensure` loads the schema before `String.to_existing_atom` (a flaky missing-atom failure on a first reply). Still unconfirmed (nothing was accepted): the 202 answer, idempotency replay, look-up with a message, states, webhooks, inbound. The guide lists them and what is needed: add the sender in Bird, rerun sections 2 to 4. Checks: format, credo --strict, compile --warnings-as-errors, docs, messaging suites (272 tests). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Bird: error bodies and look-up shape as the real API answered on 2026-11-13
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was canceled
356a203a3b
Fixtures taken from real eu1 answers (https callback, sender not configured,
empty look-up by reference); a recipient error is recognised by the error's
name as well as its code; the acceptance guide records what was confirmed and
what is still open. Conversations.ensure loads the schema before reading the
kind atom (a first reply could fail with a missing atom).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Keep secrets out of the query log: log dumped parameters, not Ecto's cast ones
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
22f937849a
Ecto's debug log prints cast (pre-dump) parameters, i.e. the plaintext of an
encrypted column; the database always got ciphertext. Ecto's log is off and
Karta.Repo.Log logs the dumped parameters. Tests inspect SQL parameters, the log
at debug level and the tables for the key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
calvin merged commit 72e1be4a87 into master 2026-11-13 14:34:40 +00:00
calvin deleted branch messaging-bird-real 2026-11-13 14:34:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
external/karta!96
No description provided.