Skip to content

feat(gateway): enrich webhook payloads with airtable_record_id and download_event_id#589

Merged
FredericoAndrade merged 1 commit into
mainfrom
feature/cc/gateway-payload-enrichment
Apr 19, 2026
Merged

feat(gateway): enrich webhook payloads with airtable_record_id and download_event_id#589
FredericoAndrade merged 1 commit into
mainfrom
feature/cc/gateway-payload-enrichment

Conversation

@FredericoAndrade
Copy link
Copy Markdown
Contributor

Summary

  • Download webhook payload now includes airtable_record_id (from _airtable_record_id post meta) to enable Make.com to join Downloads records against the main Airtable tables (Videos, Captions, Lexicons) for metadata like language and resource name
  • Intake webhook payload includes the same airtable_record_id plus download_event_id (ID of the most recent redirect event for the person+post) so Make.com can update the correct Downloads record directly without a search step
  • Adds DownloadEventRepository::find_redirect_id() as the first read method on that repository

Test plan

  • Trigger a hard-policy download and verify the webhook payload contains airtable_record_id (non-null for posts with _airtable_record_id meta, null for posts without)
  • Submit an intake form and verify payload contains both download_event_id and airtable_record_id
  • Verify Make.com scenario correctly maps airtable_record_id → Post Airtable ID field on Downloads record

🤖 Generated with Claude Code

…wnload_event_id

Download payload now includes airtable_record_id (post meta _airtable_record_id)
to enable joins against main Airtable tables (Videos, Captions, Lexicons).

Intake payload includes the same field plus download_event_id (most recent
redirect event for the person+post) so Make.com can update the correct
Downloads record directly without a search step.

Adds DownloadEventRepository::find_redirect_id() as the first read method
on that repository.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@FredericoAndrade FredericoAndrade merged commit ed0bc8e into main Apr 19, 2026
6 checks passed
@FredericoAndrade FredericoAndrade deleted the feature/cc/gateway-payload-enrichment branch April 19, 2026 18:15
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.

1 participant