Skip to content

Add App API transactional message management methods (CDP-6267)#231

Merged
mike-engel merged 1 commit into
mainfrom
cdp-6267
Jul 7, 2026
Merged

Add App API transactional message management methods (CDP-6267)#231
mike-engel merged 1 commit into
mainfrom
cdp-6267

Conversation

@mike-engel

@mike-engel mike-engel commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

This adds more missing methods from the App API. This adds the transactional message management endpoints, complementing the existing sendEmail/sendPush/etc. send methods.

Method Endpoint
listTransactionalMessages GET /transactional
getTransactionalMessage GET /transactional/{id}
getTransactionalMessageContents GET /transactional/{id}/contents
getTransactionalMessageLanguage GET /transactional/{id}/language/{language}
updateTransactionalMessageLanguage PUT /transactional/{id}/language/{language}
getTransactionalMessageDeliveries GET /transactional/{id}/messages
getTransactionalMessageMetrics GET /transactional/{id}/metrics
getTransactionalMessageLinkMetrics GET /transactional/{id}/metrics/links
updateTransactionalMessageContent PUT /transactional/{id}/content/{content_id}

Assisted by AI 🤖


Note

Medium Risk
PUT methods can change live transactional templates in production workspaces; risk is mitigated by following existing API patterns and limiting live tests to read-only calls.

Overview
Adds nine APIClient methods for managing transactional messages via the App API (list/get metadata, contents, per-language translations, delivery listings, delivery and link metrics, and PUT updates for language and content variants). New option types (MetricsPeriod, TransactionalMetricsOptions, TransactionalLinkMetricsOptions, TransactionalDeliveriesOptions) type query filters for deliveries and metrics; list/filter endpoints use the existing buildQueryString helper and the same MissingParamError validation as other client methods.

docs/app.md documents each new method. Unit tests cover paths, query strings, PUT bodies, and required-param errors. Live tests call listTransactionalMessages and read-only id-scoped endpoints when CIO_TEST_TRANSACTIONAL_ID is set; mutating updates stay unit-tested only.

Reviewed by Cursor Bugbot for commit e40a6fe. Bugbot is set up for automated code reviews on this repo. Configure here.

Batch 3 of the App API backfill. Adds nine methods to APIClient:

- listTransactionalMessages / getTransactionalMessage
- getTransactionalMessageContents / getTransactionalMessageLanguage
- updateTransactionalMessageLanguage / updateTransactionalMessageContent
- getTransactionalMessageDeliveries / getTransactionalMessageMetrics
- getTransactionalMessageLinkMetrics

Complements the existing sendEmail/sendPush/etc. send methods. Reuses the
buildQueryString helper for deliveries/metrics query params.

Includes unit tests (100% coverage), live integration coverage (workspace
list + id-scoped reads gated on CIO_TEST_TRANSACTIONAL_ID), and docs in
docs/app.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mike-engel mike-engel self-assigned this Jul 7, 2026
@mike-engel
mike-engel merged commit ae4e2df into main Jul 7, 2026
11 checks passed
@mike-engel
mike-engel deleted the cdp-6267 branch July 7, 2026 13:51
@mike-engel mike-engel mentioned this pull request Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants