[api-sync 2026-07-31] gradientlabs-go: split outbound conversation start into chat/email/phone - #101
Open
gmtuca wants to merge 2 commits into
Open
[api-sync 2026-07-31] gradientlabs-go: split outbound conversation start into chat/email/phone#101gmtuca wants to merge 2 commits into
gmtuca wants to merge 2 commits into
Conversation
POST /outbound/conversations has been removed from the public API and
replaced by /outbound/conversations/{chat,email,phone}.
StartOutboundConversation, its params type, and CustomerSource (which
has no replacement in the new API) are gone. SupportPlatform moves to
its own file now that it outlives the outbound start params.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
gmtuca
force-pushed
the
api-client-sync/2026-07-31
branch
from
July 31, 2026 13:43
55a4f0e to
a16536e
Compare
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.
POST /outbound/conversationshas been removed from the public API and replaced by three channel-specific endpoints. This SDK follows suit:Client.StartOutboundConversationClient.StartOutboundChatConversation→POST /outbound/conversations/chatClient.StartOutboundEmailConversation→POST /outbound/conversations/emailClient.StartOutboundPhoneConversation→POST /outbound/conversations/phoneAlso removed:
StartOutboundConversationParamsand theCustomerSourcetype/constants (the field has no replacement in the new API).SupportPlatformand its constants are unchanged, just moved tosupport_platform.gonow that they outlive the outbound start params.StartOutboundConversationResponseis kept as the shared{conversation_id}response of all three methods.Migration
ChannelChannelVoiceStartOutboundPhoneConversationChannelEmailStartOutboundEmailConversationChannelWebStartOutboundChatConversationCustomerSourcehas no replacement.CustomerIDis now always your own customer ID — the one echoed back in tool and webhook payloads. Identifiers for third-party platforms move toCustomerSupportPlatformIdentifiers(the existingCustomerSupportPlatformIdentifiertype already used byStartConversation), keyed by platform. Zendesk requires typezendesk_support_user; Salesforce requiressalesforce_contact_id.SupportPlatformis now required on chat and email. The API no longer auto-selects the highest-priority connected platform.ToPhoneNumberandFromPhoneNumber(E.164; thefromnumber must already be provisioned for your company).SubjectandBodyare required together and forbidden individually. Chat takesBodyonly.Resourcesis nowmap[string]anyrather thanjson.RawMessage, matchingStartConversationParams.Resources.Version
version.go:0.3.1→0.4.0(minor bump, by request — note this is still a breaking change for callers, so the version alone will not signal it). The module stays pre-1.0, sogo.modneeds no/vNsuffix. No tag is created by this PR.Two notes for whoever tags the release:
version.goonmainhad already drifted from the tag line — it said0.3.1while the latest tag isv0.3.11.api-client-sync/2026-07-22also bumpsversion.goto0.4.0. Whichever of the two lands second must be re-bumped to0.5.0.Verification
gofmt -l .is empty;go build ./... && go vet ./... && go test ./...all pass (the repo has no test files).🤖 Generated with Claude Code