Fix PCM auth: login for API token and multi webhook secrets.
Deploy Beta / unit-tests (push) Successful in 8s
Deploy Beta / docker (push) Successful in 14s
Deploy Beta / deploy-beta (push) Successful in 1m34s

PCM DirectMail v3 needs POST /auth/login (apiKey+apiSecret) before design/order calls; accept each subscription's copy-only signature secret via PCM_WEBHOOK_SECRETS.
This commit is contained in:
2026-08-09 06:02:32 -05:00
parent 1ef6624a8b
commit 7496af72d0
8 changed files with 299 additions and 33 deletions
+3 -2
View File
@@ -471,7 +471,8 @@ SMTP2GO_SMS_API_KEY=...
# Postcards (PCM Integrations)
POSTCARD_PROVIDER=pcm # pcm|lob|click2mail|postgrid
PCM_API_KEY=...
PCM_WEBHOOK_SECRET=...
PCM_API_SECRET=...
PCM_WEBHOOK_SECRETS=...
PCM_RETURN_ADDRESS={...}
# Social (native)
@@ -522,7 +523,7 @@ TIANJI_WEBSITE_ID=...
alternates); `POSTCARD_PROVIDER=pcm`.
- PCM iframe designer; save `design_id` on `MessageTemplate`; postcard campaign audience;
inbound PCM webhooks → `ProviderEvent`; campaign completion notify email.
- Client prerequisites: PCM Integrations account + API key, A2P 10DLC for SMS.
- Client prerequisites: PCM Integrations account + API key/secret, A2P 10DLC for SMS.
- **Exit:** realtor mails a postcard batch and sees delivery tracking.
### Phase 4 — Social automation