Skip to content

Add contact merge history endpoints and 410 for merged contacts#523

Open
dan0505 wants to merge 2 commits into
mainfrom
dan0505/contact-merge-history-410
Open

Add contact merge history endpoints and 410 for merged contacts#523
dan0505 wants to merge 2 commits into
mainfrom
dan0505/contact-merge-history-410

Conversation

@dan0505
Copy link
Copy Markdown
Contributor

@dan0505 dan0505 commented May 27, 2026

Why?

Adds API spec entries for new contact merge history capabilities: an opt-in merge_history field on contact responses, a dedicated paginated endpoint for listing merge history, and a status change where merged contact lookups now return 410 Gone with a canonical Link header instead of 404.

How?

Added merge_history_item and merge_history_list schemas, the GET /contacts/{id}/merge_history endpoint, and the include_merge_history query parameter across all relevant contact read/write endpoints.

Generated with Claude Code

@dan0505 dan0505 self-assigned this May 27, 2026
- Add merge_history field (opt-in via include_merge_history param) to contact responses
- Add GET /contacts/{contact_id}/merge_history paginated endpoint (max 150 per page)
- Add include_merge_history query param to 6 contact endpoints
- Add merge_history_item and merge_history_list schemas
- Merged contacts now return 410 Gone with Link header instead of 404

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@dan0505 dan0505 force-pushed the dan0505/contact-merge-history-410 branch from 861abf5 to bf42d3b Compare May 27, 2026 14:17
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- temporary_expectation_change
- upfront_email_collection_change
- welcome_message_change
- hide_csat_from_agents_setting_change
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this related to this PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, I see this is a diff from dev-docs

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