Add contact merge history endpoints and 410 for merged contacts#523
Open
dan0505 wants to merge 2 commits into
Open
Add contact merge history endpoints and 410 for merged contacts#523dan0505 wants to merge 2 commits into
dan0505 wants to merge 2 commits into
Conversation
- 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>
861abf5 to
bf42d3b
Compare
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
VarshSuresh
reviewed
May 27, 2026
| - temporary_expectation_change | ||
| - upfront_email_collection_change | ||
| - welcome_message_change | ||
| - hide_csat_from_agents_setting_change |
Contributor
There was a problem hiding this comment.
Is this related to this PR?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Adds API spec entries for new contact merge history capabilities: an opt-in
merge_historyfield 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 canonicalLinkheader instead of 404.How?
Added
merge_history_itemandmerge_history_listschemas, theGET /contacts/{id}/merge_historyendpoint, and theinclude_merge_historyquery parameter across all relevant contact read/write endpoints.Generated with Claude Code