Skip to content

Update enterprise contact form to new growth API endpoint#2798

Merged
stnguyen90 merged 4 commits intomainfrom
copilot/update-enterprise-contact-us-endpoint
Mar 13, 2026
Merged

Update enterprise contact form to new growth API endpoint#2798
stnguyen90 merged 4 commits intomainfrom
copilot/update-enterprise-contact-us-endpoint

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

Migrates the enterprise contact form submission from the legacy /feedback/sales/enterprise endpoint to the new /conversations/enterprises growth endpoint.

Changes

  • Endpoint: /feedback/sales/enterprise/conversations/enterprises
  • Removed: subject param (not part of new API)
  • Added: platform: 'appwrite' param
  • UTM params (utmSource, utmReferral, utmMedium) already aligned with new spec via getReferrerAndUtmSource()
-const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/feedback/sales/enterprise`, {
+const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/conversations/enterprises`, {
     body: JSON.stringify({
-        email,
-        subject: companyName,
-        cloudEmail,
-        companyName,
+        firstName,
+        lastName,
+        email,
+        message: useCase,
         companyName,
         companySize,
         companyWebsite,
-        firstName,
-        lastName,
-        message: useCase,
+        cloudEmail,
+        platform: 'appwrite',
         ...getReferrerAndUtmSource()
     })
 });

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ations/enterprises

Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
Copilot AI changed the title [WIP] Update enterprise contact us to use new growth endpoint Update enterprise contact form to new growth API endpoint Mar 12, 2026
…PUBLIC_GROWTH_ENDPOINT)

Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
@stnguyen90 stnguyen90 marked this pull request as ready for review March 12, 2026 21:17
@stnguyen90 stnguyen90 requested a review from ChiragAgg5k March 12, 2026 21:19
@stnguyen90 stnguyen90 merged commit c4a8281 into main Mar 13, 2026
5 checks passed
@stnguyen90 stnguyen90 deleted the copilot/update-enterprise-contact-us-endpoint branch March 13, 2026 03:27
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.

3 participants